Last modified: 2011-03-13 18:06:06 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 5662 - {{NUMBEROFARTICLES}} is not formatted according to user language
{{NUMBEROFARTICLES}} is not formatted according to user language
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
unspecified
All All
: Lowest minor with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-04-19 23:18 UTC by David Benbennick
Modified: 2011-03-13 18:06 UTC (History)
0 users

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


Attachments

Description David Benbennick 2006-04-19 23:18:55 UTC
On the Commons, {{NUMBEROFARTICLES}} displays with a comma as the numeric
separator: 29,949.  That's fine for English, but Spanish wants to use . and
other languages might use other separators.  MediaWiki currently has a very
inflexible support for different separators in a few cases.  For example,
[[MediaWiki:Sitestatstext]] takes variable $2 which is NUMBEROFARTICLES with the
localized separator.

A more flexible solution would be if {{NUMBEROFARTICLES|.}} did the obvious
thing (the variable acts like a template, and uses the first argument as the
separator).  Then we could localize that number in places that MediaWiki hasn't
thought of, for example the Spanish version of the Main Page, [[Commons:Portada]].

Obviously the same issue applies to all other numeric variables.
Comment 1 Antoine "hashar" Musso (WMF) 2006-04-20 20:17:31 UTC
On the special page:
http://commons.wikimedia.org/wiki/Special:Statistics
we use $wgLang which can be the user prefered language, that's why
the numbers are correctly formatted.

But {{NUMBEROFARTICLES}} in an article or in a template is formatted
using $wgContLang which is the site language for content. There is
only one such language which is english for commons.

There is no real way to fix this issue :/


Comment 2 David Benbennick 2006-04-20 21:26:16 UTC
What's wrong with my proposed solution, taking the separator as a parameter? 
That is certainly within the realm of possibility, whether or not it is feasible
in the current MediaWiki code.
Comment 3 sanbec 2006-04-21 08:29:34 UTC
To close wiht a "WONTFIX" is not a good solution. There are many solutions: the
proposed by David or i.e. to force the variable to use the language defined in a
parameter, instead the predetermined by $wgContLang

{{NUMBEROFARTICLES}} uses the $wgContLang localization

{{NUMBEROFARTICLES|es}} (or {{NUMBEROFARTICLES/es}}) uses the spanish localization
{{NUMBEROFARTICLES|en}} uses the english localization

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


Navigation
Links