Page MenuHomePhabricator

Assamese Vs Latin numerals in templates using parser functions, Set "$wgTranslateNumerals = false;" for aswiki
Closed, ResolvedPublic

Description

Need to Set "$wgTranslateNumerals = false;" in LocalSettings.php of Assamese Wikipedia, http://as.wikipedia.org.

The following demonstrates the problem:
Latin Numerals: 0 1 2 3 4 5 6 7 8 9 Assamese Numerals: ০ ১ ২ ৩ ৪ ৫ ৬ ৭ ৮ ৯ (Bengali unicode)

Correct:

  • {{#expr: 2 + 3}}: 5
  • {{CURRENTYEAR}}: ২০১১

Error:

  • {{#expr: ২ + ৩}}: এক্সপ্রেশন ত্রুটি: অপরিচিত বিরামচিহ্ন ক্যারেক্টার "�"
  • {{#expr: 2 + ৩}}: এক্সপ্রেশন ত্রুটি: অপরিচিত বিরামচিহ্ন ক্যারেক্টার "�"
  • {{#expr: {{CURRENTYEAR}} + 10}}: এক্সপ্রেশন ত্রুটি: অপরিচিত বিরামচিহ্ন ক্যারেক্টার "{"

Probable solutions:

  1. {{#expr: {{formatnum: {{CURRENTYEAR}}|R}} + 10}}: 2021
  2. Set "$wgTranslateNumerals = false;" in LocalSettings.php

The first solution is not acceptable since there are a lot of templates where functions like {{CURRENTYEAR}}, {{CURRENTDAY}} etc are used. So, we need to modify LocalSettings.php as shown above.

See templates like "Infobox Indian Jurisdiction", "Infobox Settlement" etc. You can also see how modification using "formatnum" works in the template "For year month day" in Assamese Wikipedia.

We have conducted a poll and the community agrees to this. See:
https://secure.wikimedia.org/wikipedia/as/wiki/Wikipedia:Community_Votes#Assamese_Vs_Latin_numerals_in_templates_using_parser_functions


Version: unspecified
Severity: major

Details

Reference
bz31371

Event Timeline

bzimport raised the priority of this task from to High.Nov 21 2014, 11:57 PM
bzimport set Reference to bz31371.
bzimport added a subscriber: Unknown Object (MLST).
Psneog created this task.Oct 5 2011, 9:03 AM

Rest of my comment in bug 14145 applies here too:

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.

Psneog added a comment.Oct 5 2011, 4:43 PM

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.

Sam, did you take comment 1 into account when complying with the request in the
original call, and it so can you please provide insight in how you weighed pros
and cons?

*** Bug 34174 has been marked as a duplicate of this bug. ***

instead of magic word {{CURRENTYEAR}} Bengali Wikipedia use this {{#time:xnY}}

Only big issue is #time parser function can't read local language month names
https://bugzilla.wikimedia.org/show_bug.cgi?id=19412

Psneog added a comment.Feb 3 2012, 6:44 PM

*** Bug 34193 has been marked as a duplicate of this bug. ***

Psneog added a comment.Feb 3 2012, 7:19 PM

*** Bug 34174 has been marked as a duplicate of this bug. ***

Psneog added a comment.Feb 3 2012, 7:22 PM

*** Bug 34193 has been marked as a duplicate of this bug. ***

(In reply to comment #4)

Sam, did you take comment 1 into account when complying with the request in the
original call,

Looks not: the request was satisfied.

MarcoAurelio edited projects, added Bengali-Sites; removed Shell.Dec 13 2016, 10:14 AM
MarcoAurelio removed a subscriber: wikibugs-l-list.