cnit wrote: > Also I believe that localized translations (eg. SMW_LanguageRu.php and > so on) should also provide a PHP-format string to correctly display > local dates, according to their "uselang" variable.
Umm, can you be more specific as to what you want? Are you talking about attributes of Type:Date? The post 0.6 SMW code in Subversion and on ontoworld.org allows you to control date datatype display, using [[main display unit:=%d %b ]] in attribute pages and [[date of birth:=*%b %d]] in inline queries. See e.g. http://ontoworld.org/wiki/Attribute:Birthday That just relies on PHP's strftime() implementation to format the date. PHP's strftime() is multilingual if you call setlocale() first, but I don't believe MediaWiki calls setlocale(). Instead it seems to have its own date formatting code in DateFormatter.php using its own localization strings. Internally MediaWiki uses different format string syntax than strftime(). Would you like SMW to by default display attributes of Type:Date according to the user's date and time preference in My Preferences? I'd rather not introduce a new way to display dates in addition to what MediaWiki provides, so maybe exposing ways to format dates with a non-localized strftime() was a mistake. > My wiki project is multilangual and it uses three different values for > uselang (to provide the localized menus and so on). I'm curious how you do this. If I set my language in My Preferences, I don't see localized SMW strings. To see them I set $wgLanguageCode in LocalSettings.php. Am I doing something wrong? Thanks for your insight on these issues, it should help get localization right. -- =S Page ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel