> You were not wrong. > In fact, what you just said--the "global" declaration--was the one thing > that I had not thought to include in my object-method code. When I > declared $wgLanguageCode as a global variable, I gained access to it. So > now my repetition of Julian or Gregorian dates displays exactly as I > wanted it to--in the language of the wiki. Some of my wikis has the menu links which pass different &uselang= parameters, to change $wgContLang accordingly. So, while my $wgLanguageCode is always "ru", $wgContLang can be "en" - MW automatically switches the interface to that language. This gives a simple way to have multilanguage wiki, without building a farm. Otherwise it would be a strange wiki - with Russian menus and buttons and English text of pages.
(Actually, I also have a farm, but for different purposes - just to host completely different sites). I still haven't checked, whether the MW/SMW will change the formatting of dates according to $wgContLang (I've used dates only at Cyrillic parts of the wiki. Maybe it will change in the future). Dmitriy ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Semediawiki-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
