Extension talk:Polyglot
From MediaWiki.org
Contents |
[edit] Bug report
I tried to use your extension by creating a page XYZ/de in addition to a page called XYZ, and the link I get in the 'in other languages' is showing the text "De:XYZ/de", and points to the "De:XYZ/de" page, which obviously is wrong.
Note that I am using MW 1.9.2.
- Yes, this will not work in 1.9; I'm overriding MediaWiki's default handling of interlanguage-links using a hook that doesn't yet exist in 1.9 -- Duesentrieb ⇌ 20:32, 25 April 2007 (UTC)
[edit] Switching vom Events/de to Events/th
If I for example select a page "Events" with language "de" it is redirected to "Events/de" as expected, but if I than change the the language to "th" I expect to see page "Events/th", but that doesn't work. I have to return to "Events" to get "Events/th". Is it possible to automatically cut off the language code if it already exist to allow a switch from one language to another?
- No, because that would make it impossible to look at, say, the th page when your interface is de. All pages must be accessible somehow to everyone, otherwise things get confusing, and hard to maintain. The "main" page basically serves as a magic redirect that simply "knows" where the user wants to go. Treat it like that and all should be fine. -- Duesentrieb ⇌ 13:11, 8 June 2007 (UTC)
[edit] Display all possible Languages?
For a multi-language wiki with a limited number of available languages, it would be nice to have the language selector appear all the time, with all languages, non-exitant pages in red. This way we would know what articles in which language are still missing and could simply click the red link to create them.
To do this, modify polyglot.php as follows:
find
$links[$lang] = $t->getFullText();
and remove the if clause in front of it This does cancle the check for existing sites, all links to all possibly available languages are added.
[edit] ToDo
1 Missing languages are not yet displayed red:
'class' => 'new'
has to be added to the links, if
if (!$nt->exists())
2 All languages, including the main language are linked with /language to a subpage. Polyglot displays a link to Main_page/de and Main_Page/en on the main Page, even if Main_Page is english and no link to a sub-page is needed.

