Last modified: 2014-02-12 23:32:50 UTC
I use the extension semantic bundle 1.8.0.4, so I do not now if it's a problem with mediawiki or semantic mediawiki, but if I set $wgLanguageCode = "it", number are formatted US-Style (in properties of type quantity or number, but maybe also in other instances). If I switch to $wgLanguageCode = "de" everything works fine (I mean, I get the correct european number format: "." as thousand separator and "," ad decimal separator). But I need to use $wgLanguageCode = "it"...
Can you link this wiki? What's the style you see and where? It should be 12 345,678
Hi, I can't link because it's still behind a firewall. I've several properties of type quantity and number (semantic mediawiki), used in different templates. If I try to assign to them, i.e., the value 1,47 they just don't get it. (Nothing appears to the right of the properties in the factbox). If I assign 1.47 they get it (and 1.47 is displayed). If I assign 1470 then 1,470 is displayed. I don't think the problem is in the way I use the properties because, as I said, if I switch to $wgLanguageCode = "de" everything works fine (1470 becomes 1.470 and 1,47 is accepted and diplayed as 1,47). Thanks for any help.
Thanks, now I get it. This seems definitely a SMW problem (kgh, ideas?), but it's possible you're doing something wrong. I suggest you to check carefully what sort of format SMW expects and to use formatnum carefully if needed: https://www.mediawiki.org/wiki/Help:Magic_words#Formatting
I think it should work without a problem for "it", too. Just check the messages "MediaWiki:Smw_kiloseparator" and "MediaWiki:Smw_decseparator" to see the standard set for your wiki. The relevant parameter is indeed $wgLanguageCode. Thus a user cannot change this behaviour by changing the interface language of the user account.
"MediaWiki:Smw_kiloseparator" were "," "MediaWiki:Smw_decseparator" were "." I changed them to "." and "," respectively, and now everything seems to work. Thank you so much kgh! (Still, I believe there's a bug, because $wgLanguageCode = "it" should have set "MediaWiki:Smw_kiloseparator" to "." and "MediaWiki:Smw_decseparator" to "," by default)
I think it is more likely that "en" was used during the installation of you MediaWiki instance. I think that "it" is correctly localised. However, overriding these messages works fine, too. :) Closing this bug as RESOLVED INVALID.