Last modified: 2013-09-02 10:18:37 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 14145 - Add a preference option to disable $wgTranslateNumerals when using a language with digit transforms
Add a preference option to disable $wgTranslateNumerals when using a language...
Status: NEW
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
unspecified
All All
: Low enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: i18n
Depends on:
Blocks: 34193 40760
  Show dependency treegraph
 
Reported: 2008-05-15 23:19 UTC by Mohamed Magdy
Modified: 2013-09-02 10:18 UTC (History)
8 users (show)

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


Attachments

Description Mohamed Magdy 2008-05-15 23:19:10 UTC
Currently, when you use a language which have digit transforms, it is enabled by default. and this is a user preference, they might want the default numerals or they want the transformed numerals. So I'm proposing to add a preference option to disable $wgTranslateNumerals when using a language with digit transforms. e.g. Arabic.

--user:alnokta
Comment 1 Siebrand Mazeland 2008-08-17 20:33:54 UTC
Component: User preferences -> i18n
Comment 2 Niklas Laxström 2009-01-31 17:11:03 UTC
Is it likely enough that this warrants adding a new user preference?
Comment 3 bluehairedlawyer 2009-02-21 00:47:24 UTC
I take in the numeric transform relates to sortable tables???

If so try putting

var wgSeparatorTransformTable = null;
var wgDigitTransformTable = null;

in you monobook.js file (or whatever that is in Arabic)
Comment 4 bluehairedlawyer 2009-02-21 00:52:41 UTC
No never mind, that'll only work for the tables...
Comment 5 Mohamed Magdy 2009-02-22 13:46:31 UTC
Comment  #2 -> yes. keep in mind that it should be visible only in languages with digit transform. ar fa ur etc.
Comment 6 Niklas Laxström 2009-02-22 14:34:26 UTC
It will be hard to implement, because there is no separation between content and interface number translation.
Comment 7 Prabhakar Sarma Neog 2011-10-05 08:51:14 UTC
It would have been better if it could be implemented. Se discussion and poll in Assamese wikipedia: 
https://secure.wikimedia.org/wikipedia/as/wiki/Wikipedia:Community_Votes#Assamese_Vs_Latin_numerals_in_templates_using_parser_functions
Comment 8 Niklas Laxström 2011-10-05 14:17:46 UTC
You are asking for an user preference option, but that would not affect the result of magic words at all.

I don't understand why you want to sacrifice usability of readers to get some convenience for advanced editors editing templates. It seems to me that you have not thought out this issue properly.
Comment 9 Prabhakar Sarma Neog 2011-10-05 16:50:57 UTC
Thanks.

@Niklas: Right, we could have solved the problem by editing some templates or even patching the code related to the magic words like {{CURRENTDAY}} etc. But, we, or at least the Assamese community are accustomed using Latin numerals and symbols in mathematics starting from primary schools and even in our daily lives. Some other Indian language communities, like the Hindi users also follow the same convention.  Apart from that English numerals are very common in India and almost everyone can understand them.   

Basically this is the reason we have adopted this approach.
Comment 10 Siddhartha Ghai 2013-09-02 10:18:37 UTC
(In reply to comment #9)
> Thanks.
> 
> @Niklas: Right, we could have solved the problem by editing some templates or
> even patching the code related to the magic words like {{CURRENTDAY}} etc.
> But,
> we, or at least the Assamese community are accustomed using Latin numerals
> and
> symbols in mathematics starting from primary schools and even in our daily
> lives. Some other Indian language communities, like the Hindi users also
> follow
> the same convention.  Apart from that English numerals are very common in
> India
> and almost everyone can understand them.   
> 
> Basically this is the reason we have adopted this approach.

The numeral problem is a general one for indic languages. The problem is two-fold: inputting different numeral systems (parser function support) and viewing different numerals on a per-user basis.

For users being able to see numerals of their choice, you could try the numeral converter gadget as used on hindi wikipedia [1]. Its a javascript-based gadget which uses a cookie to set preference of a user on a browser. It is also usable for IP users. Code is also availaible on mediawiki[2].

For input support for parsers, the module convert on english wikipedia somewhat solves this problem. See this user discussion on english wikipedia for a possible solution [3].

[1]: http://hi.wikipedia.org/wiki/%E0%A4%AE%E0%A5%80%E0%A4%A1%E0%A4%BF%E0%A4%AF%E0%A4%BE%E0%A4%B5%E0%A4%BF%E0%A4%95%E0%A4%BF:Gadget-Numeral_converter.js and http://hi.wikipedia.org/wiki/%E0%A4%AE%E0%A5%80%E0%A4%A1%E0%A4%BF%E0%A4%AF%E0%A4%BE%E0%A4%B5%E0%A4%BF%E0%A4%95%E0%A4%BF:Gadget-Numeral_converter.css

[2]: http://www.mediawiki.org/wiki/MediaWiki:Gadget-Numerakri.js and http://www.mediawiki.org/wiki/MediaWiki:Gadget-Numerakri.css

[3]: http://en.wikipedia.org/wiki/User_talk:Johnuniq#Module:Convert_and_non-arabic_digits

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


Navigation
Links