Closed
Bug 1065523
Opened 12 years ago
Closed 12 years ago
Locale picker screen displays short locale display name, not capitalized region-decorated name
Categories
(Firefox for Android Graveyard :: Locale switching and selection, defect)
Tracking
(firefox32 wontfix, firefox33 fixed, firefox34 fixed, firefox35 fixed)
VERIFIED
FIXED
Firefox 35
People
(Reporter: tecgirl, Assigned: rnewman)
Details
Attachments
(3 files)
|
63.68 KB,
image/png
|
Details | |
|
1.48 KB,
patch
|
nalexander
:
review+
|
Details | Diff | Splinter Review |
|
1.37 KB,
patch
|
nalexander
:
review+
lmandel
:
approval-mozilla-aurora+
Sylvestre
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
When choosing an English language, I am able to choose from:
Release: UK, US / Beta: UK, US / Aurora: South Africa, UK, US / Nightly: US only (??)
When choosing a region of the English language the Language screen displays only "English" and not the region to let the user know which variant they've chosen.
Updated•12 years ago
|
Component: Settings and Preferences → Locale switching and selection
OS: Mac OS X → Android
Hardware: x86 → All
Comment 1•12 years ago
|
||
Are you using an en-US only build? The multi locale build is at http://ftp.mozilla.org/pub/mozilla.org/mobile/nightly/latest-mozilla-central-android/fennec-35.0a1.multi.android-arm.apk and using it I have many languages to choose from.
| Assignee | ||
Comment 2•12 years ago
|
||
I think there are two things here:
* Nightly doesn't package most of our locales. The only English dialect we ship in Nightly is en_US. Localizers work on Aurora and up.
* We use the locale's own display string in the locale picker label. These tend to be short (and non-capitalized, which was half fixed in Bug 1014602).
I assume you're mainly concerned about the latter?
| Assignee | ||
Updated•12 years ago
|
Summary: Chosen regions of English language do not display on Language screen → Locale picker screen displays short locale display name, not capitalized region-decorated name
| Reporter | ||
Comment 3•12 years ago
|
||
Perhaps I should have included the screenshot from Aurora, where I chose South African English, and on the Language screen just "English" is displayed. Yes, the concern is that if more than one variant is available then we should display it.
| Assignee | ||
Comment 4•12 years ago
|
||
Dep landed, I'm touching this file, so might as well fix this. Works on my KitKat device.
Attachment #8487372 -
Flags: review?(nalexander)
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → rnewman
Status: NEW → ASSIGNED
| Assignee | ||
Comment 5•12 years ago
|
||
What I think was happening here: we were taking a locale *tag* ("en-US") and giving it to the Java Locale constructor to parse. It parsed that as "en" (because it expects _ not -), so we'd get "English".
And because it was the display string from the locale, in e.g., French we'd get "français", lowercase.
The fix is to just use the same code path that we use for the list picker itself -- make a descriptor from the tag, and ask it for its display string.
Attachment #8487376 -
Flags: review?(nalexander)
Comment on attachment 8487372 [details] [diff] [review]
Part 0: enable KitKat-specific code in locale picker. v1
Review of attachment 8487372 [details] [diff] [review]:
-----------------------------------------------------------------
lgtm.
Attachment #8487372 -
Flags: review?(nalexander) → review+
Comment on attachment 8487376 [details] [diff] [review]
Part 1: locale picker screen displays short locale display name, not capitalized region-decorated name. v1
Review of attachment 8487376 [details] [diff] [review]:
-----------------------------------------------------------------
Include the helpful explanation in the commit comment; and will there be a Part 2?
Attachment #8487376 -
Flags: review?(nalexander) → review+
| Assignee | ||
Comment 8•12 years ago
|
||
(In reply to Nick Alexander :nalexander from comment #7)
> Include the helpful explanation in the commit comment; and will there be a
> Part 2?
Nope, only 0 and 1 :)
| Assignee | ||
Comment 9•12 years ago
|
||
Comment 10•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/37ed4ec67482
https://hg.mozilla.org/mozilla-central/rev/9aa76517b185
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 35
Updated•11 years ago
|
Status: RESOLVED → VERIFIED
| Assignee | ||
Comment 11•11 years ago
|
||
Comment on attachment 8487376 [details] [diff] [review]
Part 1: locale picker screen displays short locale display name, not capitalized region-decorated name. v1
Approval Request Comment
[Feature/regressing bug #]:
Original locale picker work in 32.
[User impact if declined]:
Displayed locale in Settings will omit region, won't be capitalized.
[Describe test coverage new/current, TBPL]:
Manual.
[Risks and why]:
Very low risk: just uses the same text display for the picker itself as we do for the list contents.
[String/UUID change made/needed]:
None.
Attachment #8487376 -
Flags: approval-mozilla-aurora?
Comment 12•11 years ago
|
||
Comment on attachment 8487376 [details] [diff] [review]
Part 1: locale picker screen displays short locale display name, not capitalized region-decorated name. v1
Aurora+
Given that this shipped in 32, should/can we uplift to beta 33 as well?
Attachment #8487376 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Flags: needinfo?(rnewman)
Updated•11 years ago
|
status-firefox32:
--- → wontfix
status-firefox33:
--- → affected
status-firefox34:
--- → affected
status-firefox35:
--- → fixed
| Assignee | ||
Comment 13•11 years ago
|
||
Comment on attachment 8487376 [details] [diff] [review]
Part 1: locale picker screen displays short locale display name, not capitalized region-decorated name. v1
(In reply to Lawrence Mandel [:lmandel] from comment #12)
> Given that this shipped in 32, should/can we uplift to beta 33 as well?
If you're happy with the risk (very low) for the reward (could be regarded as polish), then yes, I'd take this for beta.
Attachment #8487376 -
Flags: approval-mozilla-beta?
Flags: needinfo?(rnewman)
Updated•11 years ago
|
Attachment #8487376 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 14•11 years ago
|
||
Updated•11 years ago
|
QA Contact: ioana.chiorean
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•