Page MenuHomePhabricator

localized numbering list in Burmese Wikipedia (mywiki) and Burmese Wiktionary (mywikt)
Closed, ResolvedPublic

Description

Currently in Burmese Wikipedia (mywiki) and Burmese Wiktionary (mywikt), the number list (#) generates English numbers. List item should be in localized Burmese numerals. (၁, ၂, ၃, ၄, ၅, ၆, ၇, ၈, ၉, ၁၀)

# item1
# item2
# item3

displays as

1. item1
2. item2
3. item3

It should be localized as the following.

၁။ item1
၂။ item2
၃။ item3

For full stop, Burmese uses a break character as

Event Timeline

Also for other languages in the Burmese alphabet, right?

Yes, except for Shan (shn). Shan language used 1234 numerals.

The Shan translator on translatewiki says that the Burmese numbers should be used in Shan, too:

https://translatewiki.net/wiki/Thread:User_talk:Saimawnkham/Numbered_list

Change 755003 had a related patch set uploaded (by Amire80; author: Amire80):

[mediawiki/core@master] DNM Show numbered lists with Burmese numerals in relevant languages

https://gerrit.wikimedia.org/r/755003

These days, it can actually be done using a fairly simple patch, although the @counter-style CSS feature, which makes it possible, became usable in Firefox and Chrome very recently.

This is now being tested locally in the Burmese Wikipedia using this change to Common.css: https://my.wikipedia.org/w/index.php?title=MediaWiki:Common.css&type=revision&diff=730313&oldid=635434 . Pretty much the same code should be added to i18n-counter-styles.css and i18n-ordered-lists.less under resources/src/mediawiki.skinning. The Burmese period requires a custom @counter-style, but this is actually documented in the w3c document about counter-styles.

It appears to work well in the Burmese Wikipedia. l made a patch similar to what is done there. If no one complains in the next few days, the core patch should be merged, and after it's deployed in the train, the Common.css code should be deleted.

OK, looks like there were no negative comments, so it's safe to review and merge.

Hi, I'm the one who requested this localized numbering list, you can see the localized numbering list request message on my Translatewiki at this link, Pa'O, Karen, Mon, Palaung, Burmese this ၁ ၂ ၃ ၄ ၅ ၆ ၇ ၈ ၉ ၀ numbering is used in Burma language, I really look forward to incorporating this ၁ ၂ ၃ ၄ ၅ ၆ ၇ ၈ ၉ ၀ numbering into the wiki project, thank you very much.

Change 755003 merged by jenkins-bot:

[mediawiki/core@master] Show numbered lists with Burmese numerals in relevant languages

https://gerrit.wikimedia.org/r/755003

matmarex subscribed.

The patch will be deployed to Wikimedia wikis this week, per the usual schedule (https://www.mediawiki.org/wiki/MediaWiki_1.38/Roadmap).

Hi, in Shan language (shn), Shan numbered is incorrect, Shan numbered is as follows.
႐=0
႑=1
႒=2
႓=3
႔=4
႕=5
႖=6
႗=7
႘=8
႙=9

  1. item1 = 1. item1 = ႑။ item1
  2. item2 = 2. item1 = ႒။ item1
  3. item3 = 3. item1 = ႓။ item1

I can understand Shan language, thank you very much.

Hi, in Shan language (shn), Shan numbered is incorrect, Shan numbered is as follows.
႐=0
႑=1
႒=2
႓=3
႔=4
႕=5
႖=6
႗=7
႘=8
႙=9

  1. item1 = 1. item1 = ႑။ item1
  2. item2 = 2. item1 = ႒။ item1
  3. item3 = 3. item1 = ႓။ item1

I can understand Shan language, thank you very much.

Please see https://translatewiki.net/wiki/Thread:User_talk:Saimawnkham/Numbered_list
For Shan, ၁၂၃၄၅၆၇၈၉၀ was used a long time ago. ႐႑႒႓႔႕႖႗႘႙ was created and used in the late 1960s. But ႐႑႒႓႔႕႖႗႘႙ was less used because it didn't match with Shan characters style.

Hi,

A spoke about to a Shan speaker: https://translatewiki.net/wiki/Thread:User_talk:Saimawnkham/Numbered_list

He said that he prefers ၁၂၃၄၅၆၇၈၉၀. Can you please discuss it with him?