Closed Bug 1432854 Opened 6 years ago Closed 6 years ago

Tab counter doesn't show native numbers for non-arabic numeral languages

Categories

(Firefox for Android Graveyard :: Awesomescreen, defect)

defect
Not set
normal

Tracking

(firefox59 wontfix, firefox60 verified)

VERIFIED FIXED
Firefox 60
Tracking Status
firefox59 --- wontfix
firefox60 --- verified

People

(Reporter: xsoh.k7, Assigned: xsoh.k7)

References

Details

Attachments

(1 file, 2 obsolete files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:59.0) Gecko/20100101 Firefox/59.0
Build ID: 20171221220104

Steps to reproduce:

-Set Android to Arabic language.
-Open Firefox for Android.
-See tab count.


Actual results:

The shown numbers are (1, 2, 3...).


Expected results:

It should be (١, ٢, ٣...)
Blocks: rtl-meta
Component: Toolbar → Awesomescreen
I was able to reproduce this with Nexus 5 (Android 6.0.1) and Honor 8 (Android 7.0) on latest Nightly build and 59 Beta. Marking as NEW.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Hello, thanks for the patch. I tested with a Try build from https://treeherder.mozilla.org/#/jobs?repo=try&revision=0b1ed6ba1190ae9f3cddd9d620b818c7e365d32a&selectedJob=159421962 (use target.apk (2) for the Arabic single-locale build) and it looks fine.

Two issues though:
1. Can you please upload a complete patch including a commit message (Bug 1432854 - <Brief description of your patch>) and comitter details (name and email) please?
2. For bonus points - with your current patch, the tab count display isn't updated after changing the locale and continues using the old number style until the next tab event occurs. Could you fix that as well? You should be able to start at [1] to notify the BrowserToolbar about the locale change and then forward this until you reach the tab counter.

[1] https://dxr.mozilla.org/mozilla-central/rev/5454ed95c82a956009db2f4b04d008ec8753e61e/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java#2823
Flags: needinfo?(xsoh.k7)
(In reply to Jan Henning [:JanH] from comment #3)
Hello Jan,
Thanks for this great reply. It really helped me. Now I did fix to notify after changing the locale but I'm not sure if removing the condition check in TabCounter[1] will be OK 
Flags: needinfo?(xsoh.k7)
(In reply to Suhail Alkowaileet from comment #5)
> It really helped me. Now I did fix to notify
> after changing the locale but I'm not sure if removing the condition check
> in TabCounter[1] will be OK

Well yeah, that tab event sort of does the trick, but doesn't fit exactly what you need. In the general case having that check is still necessary I think, so you should rather leave it in place.
Instead, just add an onLocaleReady method in the BrowserToolbar and from there call the TabCounter's plain setCount method.
Assignee: nobody → xsoh.k7
Attachment #8948892 - Attachment is obsolete: true
(In reply to Jan Henning [:JanH] from comment #6)
Thank you Jan!
Attachment #8945175 - Attachment is obsolete: true
Comment on attachment 8949396 [details]
Bug 1432854 - Fix Tab counter doesn't show native numbers for non-arabic numeral languages

https://reviewboard.mozilla.org/r/218734/#review225024

Looks fine, thanks.
Attachment #8949396 - Flags: review+
Pushed by mozilla@buttercookie.de:
https://hg.mozilla.org/integration/autoland/rev/64cdff8ffa9b
Fix Tab counter doesn't show native numbers for non-arabic numeral languages r=JanH
https://hg.mozilla.org/mozilla-central/rev/64cdff8ffa9b
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 60
Verified as fixed on latest Nightly build.
Device: Samsung Galaxy S8(Android 7.0) and Nexus 6P(Android 8.1.0).
It's late in the 59 beta cycle now, so I think it's best for this change to stay in the 60 release.
Status: RESOLVED → VERIFIED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: