Last modified: 2014-02-12 23:32:50 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T50326, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48326 - with $wgLanguageCode = "it" number are formatted us-style
with $wgLanguageCode = "it" number are formatted us-style
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
1.20.x
PC Windows 7
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-10 15:53 UTC by Maurizio Torchio
Modified: 2014-02-12 23:32 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Maurizio Torchio 2013-05-10 15:53:44 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"...
Comment 1 Nemo 2013-05-10 16:00:33 UTC
Can you link this wiki?
What's the style you see and where? It should be 12 345,678
Comment 2 Maurizio Torchio 2013-05-13 07:47:56 UTC
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.
Comment 3 Nemo 2013-05-13 08:39:33 UTC
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
Comment 4 [[kgh]] 2013-05-13 11:13:39 UTC
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.
Comment 5 Maurizio Torchio 2013-05-13 11:45:37 UTC
"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)
Comment 6 [[kgh]] 2013-05-13 11:50:31 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links