Thanks, Brion, for updating LanguageEt file, but it seems that my patch was not OK after all. There are problems with namespaces on et.wikipedia and et.wiktionary now... quick fix would be welcome. People panic... (actually, right now they are having some bad dreams).
The problem: {{ns:4}} gives "Wikipedia" on et.wikipedia, should be "Vikipeedia". On wiktionary it gives "Wiktionary", should be "Vikisõnaraamat". No such problems occured on my test wikis (I think LocalSettings.php saved me somehow).
I'm not sure I'm getting it right this time, so someone please have a look, is this the problem? --
The file contained lines NS_WIKIPEDIA => $wgMetaNamespace, NS_WIKIPEDIA_TALK => $wgMetaNamespace . '_arutelu',
I guess it should be:
NS_PROJECT => $wgMetaNamespace, NS_PROJECT_TALK => $wgMetaNamespace . '_arutelu',
instead? I can't do any testing at the moment -- can't reach my office computer.
If the fix above is not enough -- I see some Languge files contain
if($wgMetaNamespace === FALSE) $wgMetaNamespace = str_replace( ' ', '_', $wgSitename );
LanguageEt doesn't. Should it?
Also there are problems with showing dates (monthnames or abbreviations)... but first things first. Please help!
Klaus
Klaus-Eduard Runnel wrote:
The problem: {{ns:4}} gives "Wikipedia" on et.wikipedia, should be "Vikipeedia". On wiktionary it gives "Wiktionary", should be "Vikisõnaraamat". No such problems occured on my test wikis (I think LocalSettings.php saved me somehow).
Because the old files had incorrectly hardcoded the namespace, the $wgMetaNamespace configuration variables had not been set.
Since this was never set for the wiktionary, the 'Vikisõnaraamat:x' pages were stored in article namespace and I've had to adjust things to clean them up. There were some project-namepace pages, which would have been accessible as Vikipeedia:x which are now at Vikisõnaraamat:x.
Should be working now, but check that pages are where they're expected.
Also there are problems with showing dates (monthnames or abbreviations)... but first things first. Please help!
Will take a look.
-- brion vibber (brion @ pobox.com)
On Tue, 08 Feb 2005 17:58:43 -0800, Brion Vibber brion@pobox.com wrote:
Because the old files had incorrectly hardcoded the namespace, the $wgMetaNamespace configuration variables had not been set.
Since this was never set for the wiktionary, the 'Vikisõnaraamat:x' pages were stored in article namespace and I've had to adjust things to clean them up. There were some project-namepace pages, which would have been accessible as Vikipeedia:x which are now at Vikisõnaraamat:x.
Should be working now, but check that pages are where they're expected.
I can't thank you enough, it does seem to work :)
Also there are problems with showing dates (monthnames or abbreviations)... but first things first. Please help!
Will take a look.
Took a look myself meanwhile -- getMonthAbbreviation, getMonthName, etc. should not be there or should not return things like: $wgMonthAbbreviationsEt[$key-1]; which are now in $wgAllMessages. Also, getMessage() should be changed, I think.
Klaus
Klaus
Tried the patch below (for LanguageEt 1.23), found a wiki to test it on... No problems so far, except that {{CURRENTDAYNAME}} does not seem to work. I could not understand why.
Klaus
1345,1373d1344 < function getMathNames() { < global $wgMathNamesEt; < return $wgMathNamesEt; < } < < function getMonthName( $key ) < { < global $wgMonthNamesEt; < return $wgMonthNamesEt[$key-1]; < } < < /* by default we just return base form */ < function getMonthNameGen( $key ) < { < global $wgMonthNamesEt; < return $wgMonthNamesEt[$key-1]; < } < < function getMonthAbbreviation( $key ) < { < global $wgMonthAbbreviationsEt; < return $wgMonthAbbreviationsEt[$key-1]; < } < < function getWeekdayName( $key ) < { < global $wgWeekdayNamesEt; < return $wgWeekdayNamesEt[$key-1]; < } 1393,1397c1364,1374 < function getMessage( $key ) < { < global $wgAllMessagesEt; < return $wgAllMessagesEt[$key]; < } ---
function getMessage( $key ) { global $wgAllMessagesEt; if( isset( $wgAllMessagesEt[$key] ) ) { return $wgAllMessagesEt[$key]; } else { return Language::getMessage( $key ); }
The dates look quite ugly at the moment (see et.wiktionary.org main page for example), it would be great if someone submitted the patch. I opened a bug (http://bugzilla.wikimedia.org/show_bug.cgi?id=1498) for this one as well, not for long I hope.
Klaus
Klaus-Eduard Runnel wrote:
The dates look quite ugly at the moment (see et.wiktionary.org main page for example), it would be great if someone submitted the patch. I opened a bug (http://bugzilla.wikimedia.org/show_bug.cgi?id=1498) for this one as well, not for long I hope.
Committed and installed the patch there.
-- brion vibber (brion @ pobox.com)
wikitech-l@lists.wikimedia.org