Page MenuHomePhabricator

Use "ar-u-nu-latn" instead "ar" for whole Arabic Wikipedia or just for its <input type="number">
Open, LowPublic

Description

Author: dlmnc0d+xkrz5c

Description:
Numbers inconsistency on UI

As this bug on Mozilla https://bugzilla.mozilla.org/show_bug.cgi?id=984142 and https://en.wikipedia.org/wiki/IETF_language_tag for disabling Arabic number on <input type="number">, using ar-u-nu-latn may be needed.

Please consider using it (or any similar solution) on document root of MediaWiki page or just on <input type="number" lang="ar-u-nu-latn"> when wgTranslateNumerals has false value (https://github.com/wikimedia/operations-mediawiki-config/blob/94324d93a58634a70ad3cc84263e2b901bc8923f/wmf-config/InitialiseSettings.php#L3919) to prevent UI inconsistency (which you can see on the attachment) OR change Arabic Wikipedia language code to ar-u-nu-latn.


Version: wmf-deployment
Severity: normal
See Also:
T72109: mediawiki.language should respect $wgTranslateNumerals in convertNumber()

Attached:

Details

Reference
bz62725

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:55 AM
bzimport set Reference to bz62725.
bzimport added a subscriber: Unknown Object (MLST).

I merged this task with T117215, the description of that task is cited below:
This task is a split in 3 tasks of a major task T115561 .

Approval :
We voted in Arabic Wikipedia for the exclusive use of Western Arabic numerals (WAN) (0, 1, 2 ) instead of allowing the use of Eastern Arabic numerals (EAN) (٠‎ - ١‎ - ٢) when editing.
21 for / none against
https://ar.wikipedia.org/wiki/%D9%88%D9%8A%D9%83%D9%8A%D8%A8%D9%8A%D8%AF%D9%8A%D8%A7:%D8%A7%D9%84%D9%85%D9%8A%D8%AF%D8%A7%D9%86/%D8%B3%D9%8A%D8%A7%D8%B3%D8%A7%D8%AA/10/2015

And the related policy have been updated
https://ar.wikipedia.org/w/index.php?title=%D9%88%D9%8A%D9%83%D9%8A%D8%A8%D9%8A%D8%AF%D9%8A%D8%A7%3A%D8%AF%D9%84%D9%8A%D9%84_%D8%A7%D9%84%D8%A3%D8%B3%D9%84%D9%88%D8%A8&type=revision&diff=17231844&oldid=16952006

Task :

Each time we see a new project in Arabic or a major update, we face the same problem : Eastern Arabic numerals are used automaticcaly (see for example the date in the page in Arabic wikipedia https://ar.wikipedia.org/w/index.php?title=%D8%A7%D9%84%D9%85%D8%A8%D8%B9%D9%84_%28%D9%8A%D8%A7%D9%81%D8%B9%29&action=history). So we ask for a change manually. It was the case, for example, in Wikiversity (T31796) and it seems that we are facing the same problem in Wikidata (see the Arabic version of the project https://www.wikidata.org/wiki/Wikidata:%D8%A7%D9%84%D8%B5%D9%81%D8%AD%D8%A9_%D8%A7%D9%84%D8%B1%D8%A6%D9%8A%D8%B3%D9%8A%D8%A9). Please try to fix the problem from the source and for the existent and future Arabic projects by setting Western numbers by default for all Arbuc projects using Mediawiki.

Thank you.

Moved to MediaWiki to verify whether there is support for such a language code, since the Wikimedia configuration was already handled.

Hi @Nemo_bis , is there something new? Did you verify the support? It's been a long time sine your last comment here.

Is there a possibility to do the same as in the old ticket below. It seems that the problem is already fixed for Arabic Egyptian Wikipedia
https://phabricator.wikimedia.org/rMW883bcb5a0bebcf2663ae1cecf58b59eeb0a7c138
@Meno25 what do you think ?
Even in Wikidata or wikispecies when I select Egyptian Arabic I see western and not eastern numbers. That's what we need western numbers for all Arabic projects even the multilingual ones.

@Meno25 what do you think ?

A few notes:

I merged this task with T117215, the description of that task is cited below:

  • Merging this task with T117215 is incorrect. The two tasks are different. T117215 is about Arabic Wikimedia wikis configuration (which is already done, so, that task is resolved). What you are asking for here is changing the default MediaWiki configuration which would affect all wikis that use Arabic as a content language (not just Wikimedia wikis).
  • Problem statement: Currently on non-Arabic Wikimedia wikis (like Wikidata, Commons or the Incubator), when using Arabic (ar) as the interface language and viewing Special:RecentChanges for example (see screenshot), the numbers displayed are Eastern Arabic numerals not Western Arabic numerals.

  • Solution: This problem was already solved for Egyptian Arabic (arz) in this commit by using $digitTransformTable (When using Egyptian Arabic (arz) as the interface language, you got to correctly view SpeciaRecentChanges using Western Arabic numerals.)
  • Request: What Helmoony is requesting here is to make the same commit for Arabic (ar) as well.

Personally, I believe that this request is reasonable. Western Arabic numerals are being increasingly used in different aspects of life in the Arab countries (as they are gradually replacing Eastern Arabic numerals), so, I believe that it is reasonable to make this change in MediaWiki.

A few examples that show the use of western Arabic numerals on governmental car plates in different Arab countries:
Abu Dhabi, Saudi Arabia, Lebanon, Tunisia, Libya, etc

  • Recommandations: @Helmoony Personally I would recommend that you start a discussion about this issue on the Arabic Wikipedia Village Pump (also notifying other sister Arabic wikis as well) and when the discussion concludes, file a new task here on Phabricator linking to the discussion.

@Meno25 , there is already an approval
Approval :
We voted in Arabic Wikipedia for the exclusive use of Western Arabic numerals (WAN) (0, 1, 2 ) instead of allowing the use of Eastern Arabic numerals (EAN) (٠‎ - ١‎ - ٢) when editing.
21 for / none against
https://ar.wikipedia.org/wiki/%D9%88%D9%8A%D9%83%D9%8A%D8%A8%D9%8A%D8%AF%D9%8A%D8%A7:%D8%A7%D9%84%D9%85%D9%8A%D8%AF%D8%A7%D9%86/%D8%B3%D9%8A%D8%A7%D8%B3%D8%A7%D8%AA/10/2015

And the related policy have been updated
https://ar.wikipedia.org/w/index.php?title=%D9%88%D9%8A%D9%83%D9%8A%D8%A8%D9%8A%D8%AF%D9%8A%D8%A7%3A%D8%AF%D9%84%D9%8A%D9%84_%D8%A7%D9%84%D8%A3%D8%B3%D9%84%D9%88%D8%A8&type=revision&diff=17231844&oldid=16952006

@Meno25 + sister projects are notified :

https://ar.wikinews.org/wiki/%D9%88%D9%8A%D9%83%D9%8A_%D8%A7%D9%84%D8%A3%D8%AE%D8%A8%D8%A7%D8%B1:%D8%A7%D9%84%D9%85%D9%8A%D8%AF%D8%A7%D9%86#.D8.A5.D8.B3.D8.AA.D8.B9.D9.85.D8.A7.D9.84_.D8.A7.D9.84.D8.A3.D8.B1.D9.82.D8.A7.D9.85_.D8.A7.D9.84.D8.B9.D8.B1.D8.A8.D9.8A.D8.A9_.D9.81.D9.82.D8.B7_.D9.81.D9.8A_.D9.85.D9.8A.D8.AF.D9.8A.D8.A7_.D9.88.D9.8A.D9.83.D9.8A

https://ar.wikisource.org/wiki/%D9%88%D9%8A%D9%83%D9%8A_%D9%85%D8%B5%D8%AF%D8%B1:%D8%A7%D9%84%D9%85%D9%8A%D8%AF%D8%A7%D9%86#.D8.A5.D8.B3.D8.AA.D8.B9.D9.85.D8.A7.D9.84_.D8.A7.D9.84.D8.A3.D8.B1.D9.82.D8.A7.D9.85_.D8.A7.D9.84.D8.B9.D8.B1.D8.A8.D9.8A.D8.A9_.D9.81.D9.82.D8.B7_.D9.81.D9.8A_.D9.85.D9.8A.D8.AF.D9.8A.D8.A7_.D9.88.D9.8A.D9.83.D9.8A

https://ar.wikiquote.org/wiki/%D9%88%D9%8A%D9%83%D9%8A_%D8%A7%D9%84%D8%A7%D9%82%D8%AA%D8%A8%D8%A7%D8%B3:%D8%A7%D9%84%D9%85%D9%8A%D8%AF%D8%A7%D9%86#.D8.A5.D8.B3.D8.AA.D8.B9.D9.85.D8.A7.D9.84_.D8.A7.D9.84.D8.A3.D8.B1.D9.82.D8.A7.D9.85_.D8.A7.D9.84.D8.B9.D8.B1.D8.A8.D9.8A.D8.A9_.D9.81.D9.82.D8.B7_.D9.81.D9.8A_.D9.85.D9.8A.D8.AF.D9.8A.D8.A7_.D9.88.D9.8A.D9.83.D9.8A

https://ar.wiktionary.org/wiki/%D9%88%D9%8A%D9%83%D8%A7%D9%85%D9%88%D8%B3:%D8%A7%D9%84%D9%85%D9%8A%D8%AF%D8%A7%D9%86#.D8.A5.D8.B3.D8.AA.D8.B9.D9.85.D8.A7.D9.84_.D8.A7.D9.84.D8.A3.D8.B1.D9.82.D8.A7.D9.85_.D8.A7.D9.84.D8.B9.D8.B1.D8.A8.D9.8A.D8.A9_.D9.81.D9.82.D8.B7_.D9.81.D9.8A_.D9.85.D9.8A.D8.AF.D9.8A.D8.A7_.D9.88.D9.8A.D9.83.D9.8A

https://ar.wikiversity.org/wiki/%D9%88%D9%8A%D9%83%D9%8A_%D8%A7%D9%84%D8%AC%D8%A7%D9%85%D8%B9%D8%A9:%D8%A7%D9%84%D9%85%D9%8A%D8%AF%D8%A7%D9%86#.D8.A5.D8.B3.D8.AA.D8.B9.D9.85.D8.A7.D9.84_.D8.A7.D9.84.D8.A3.D8.B1.D9.82.D8.A7.D9.85_.D8.A7.D9.84.D8.B9.D8.B1.D8.A8.D9.8A.D8.A9_.D9.81.D9.82.D8.B7_.D9.81.D9.8A_.D9.85.D9.8A.D8.AF.D9.8A.D8.A7_.D9.88.D9.8A.D9.83.D9.8A

https://ar.wikibooks.org/wiki/%D9%88%D9%8A%D9%83%D9%8A_%D8%A7%D9%84%D9%83%D8%AA%D8%A8:%D8%A7%D9%84%D9%85%D9%8A%D8%AF%D8%A7%D9%86#.D8.A5.D8.B3.D8.AA.D8.B9.D9.85.D8.A7.D9.84_.D8.A7.D9.84.D8.A3.D8.B1.D9.82.D8.A7.D9.85_.D8.A7.D9.84.D8.B9.D8.B1.D8.A8.D9.8A.D8.A9_.D9.81.D9.82.D8.B7_.D9.81.D9.8A_.D9.85.D9.8A.D8.AF.D9.8A.D8.A7_.D9.88.D9.8A.D9.83.D9.8A

@Meno25 There is no opposition in the sister projects (notifications made more than 3 weeks ago). How can we assign now the task to someone?

@Helmoony: After you have found someone who has agreed to work on this, you can use "Add Action... > Assign/Claim" to set that name.

@Meno25 There is no opposition in the sister projects (notifications made more than 3 weeks ago). How can we assign now the task to someone?

You can submit a patch to Gerrit for review yourself. See this guide written by Addshore.