Closed
Bug 1030546
Opened 10 years ago
Closed 10 years ago
[Emergency call] "Cancel" button is not localized
Categories
(Firefox OS Graveyard :: Gaia::Dialer, defect)
Firefox OS Graveyard
Gaia::Dialer
Tracking
(blocking-b2g:2.0+, b2g-v2.0 verified, b2g-v2.1 verified)
People
(Reporter: theo, Assigned: drs)
References
Details
(Keywords: l12y, regression, Whiteboard: [in-sprint=v2.0-S5][planned-sprint])
Attachments
(3 files, 2 obsolete files)
5.77 KB,
patch
|
drs
:
review+
|
Details | Diff | Splinter Review |
780 bytes,
patch
|
etienne
:
review+
|
Details | Diff | Splinter Review |
3.03 MB,
video/mp4
|
Details |
STR:
1. Enable passcode
2. Switch to French
3. On lockscreen, tap on "Appel d’urgence" (Emergency call)
4. The dial pad displays a "Cancel" button that is not localized.
Added qawanted to test on 2.0
Tested on Flame 2.1
Gaia 1bcd355855626640b2532f2ccb1f814711f7a6ad
Gecko https://hg.mozilla.org/mozilla-central/rev/da1dbcff9493
BuildID 20140625160202
Version 33.0a1
ro.build.version.incremental=109
ro.build.date=Mon Jun 16 16:51:29 CST 2014
Comment 1•10 years ago
|
||
Confirm: it's not localized, and probably the design is way too easy to break ("Cancel" barely fits).
I see l10n was changed in bug 999195, not sure if there's a relation.
Comment 2•10 years ago
|
||
Code seems correct, and app should have access to system.properties, which has "cancel"
https://github.com/mozilla-b2g/gaia/blob/master/apps/emergency-call/index.html#L88
Keywords: l12y
Comment 3•10 years ago
|
||
It's a regression from bug 960915. As emergency-call code has been forked from system, locale resources have never been.
It affects 2.0 and 2.1.
:gweng, you were the owner of that bug. Can you confirm my analysis?
Comment 4•10 years ago
|
||
I think you're right, and this can be solved by copying the necessary resource to resolve this bug.
If this is not an emergent issue, I may be able to solve it at next week since this bug was caused by the bug I'd resolved, or we need to NI emergency-call owner like Etienne on the Wiki page.
Flags: needinfo?(gweng)
Updated•10 years ago
|
blocking-b2g: 2.0? → 2.0+
Updated•10 years ago
|
Blocks: emergencycall-as-app
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → drs+bugzilla
Assignee | ||
Updated•10 years ago
|
OS: Linux → All
Hardware: x86_64 → All
Target Milestone: --- → 2.0 S5 (4july)
Assignee | ||
Comment 5•10 years ago
|
||
PR: https://github.com/mozilla-b2g/gaia/pull/21241
I grepped for /l10n/i within ./apps/emergency-call/ and moved all of the strings that it uses from the dialer to shared.
It's kind of weird that none of the strings in ./shared/locales/ are localized in anything other than English. It's also weird that only the "cancel" key is localized within the dialer (e.g. "phoneNumberInput", "keypadDelete", etc. should be too).
Attachment #8448945 -
Flags: review?(etienne)
Assignee | ||
Updated•10 years ago
|
Status: NEW → ASSIGNED
Comment 6•10 years ago
|
||
(In reply to Doug Sherk (:drs) from comment #5)
> It's kind of weird that none of the strings in ./shared/locales/ are
> localized in anything other than English. It's also weird that only the
> "cancel" key is localized within the dialer (e.g. "phoneNumberInput",
> "keypadDelete", etc. should be too).
The sooner we get rid of those locales on Github, the faster developers will understand that those are not real locales ;-)
Real locales live here
https://hg.mozilla.org/gaia-l10n/
Comment 7•10 years ago
|
||
Comment on attachment 8448945 [details] [diff] [review]
Share keypad localization data across the dialer and emergency-call apps.
Review of attachment 8448945 [details] [diff] [review]:
-----------------------------------------------------------------
r+ for the move to shared/locales/keypad.ini
But I'd like to ask Francesco what's the best way to format this patch.
Just touching the .en-US.properties files maybe?
Attachment #8448945 -
Flags: review?(etienne) → review+
Updated•10 years ago
|
Flags: needinfo?(francesco.lodolo)
Comment 8•10 years ago
|
||
Personally I wouldn't touch locales files outside of en-US: they're not used, patch has less noise, and final target is to get rid of them completely.
So far they've been synced periodically with the actual translation by :tchevalier
Flags: needinfo?(francesco.lodolo)
Comment hidden (obsolete) |
Assignee | ||
Comment 10•10 years ago
|
||
(In reply to Francesco Lodolo [:flod] from comment #8)
> Personally I wouldn't touch locales files outside of en-US: they're not
> used, patch has less noise, and final target is to get rid of them
> completely.
>
> So far they've been synced periodically with the actual translation by
> :tchevalier
I spoke with Francesco on IRC and he told me how to structure my patch correctly, so I made those changes and I'm carrying r+. I also updated the PR.
Attachment #8449577 -
Attachment is obsolete: true
Attachment #8449588 -
Flags: review+
Assignee | ||
Comment 11•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-b2g-v2.0:
--- → affected
status-b2g-v2.1:
--- → fixed
Resolution: --- → FIXED
Assignee | ||
Comment 12•10 years ago
|
||
Comment on attachment 8449588 [details] [diff] [review]
Share keypad localization data across the dialer and emergency-call apps.
[Approval Request Comment]
[Bug caused by] (feature/regressing bug #): bug 960915
[User impact] if declined: The "Cancel" button on the emergency call screen won't be localized.
[Testing completed]: I tried it on a Flame, and Etienne probably did too.
[Risk to taking this patch] (and alternatives if risky): Low, other than needing to deal with the strings being moved.
[String changes made]: Added keypad.ini file which is a manifest for a refactor of some strings from the dialer. This file is shared between the dialer and the emergency-call apps. Unfortunately, there's no way to structure this patch that I can think of that doesn't, at the very least, involve moving around strings.
Attachment #8449588 -
Flags: approval-gaia-v2.0?(release-mgmt)
Assignee | ||
Updated•10 years ago
|
Whiteboard: NO_UPLIFT
Assignee | ||
Updated•10 years ago
|
Whiteboard: NO_UPLIFT → NO_UPLIFT [in-sprint=v2.0-S5]
Target Milestone: 2.0 S5 (4july) → 2.0 S6 (18july)
Assignee | ||
Comment 13•10 years ago
|
||
For the v2.0 uplift.
Attachment #8451884 -
Flags: review?(etienne)
Assignee | ||
Updated•10 years ago
|
Attachment #8449588 -
Flags: approval-gaia-v2.0?(release-mgmt)
Assignee | ||
Updated•10 years ago
|
Whiteboard: NO_UPLIFT [in-sprint=v2.0-S5] → NO_UPLIFT [in-sprint=v2.0-S5][planned-sprint]
Comment 14•10 years ago
|
||
Comment on attachment 8451884 [details] [diff] [review]
Import dialer.xxx.properties into emergency call app to fix cancel button.
Review of attachment 8451884 [details] [diff] [review]:
-----------------------------------------------------------------
lgtm, just confirming: this is compatible with the build time magic making the emergency-call app part of the system app right?
Attachment #8451884 -
Flags: review?(etienne) → review+
Assignee | ||
Comment 15•10 years ago
|
||
(In reply to Etienne Segonzac (:etienne) from comment #14)
> Comment on attachment 8451884 [details] [diff] [review]
> Import dialer.xxx.properties into emergency call app to fix cancel button.
>
> Review of attachment 8451884 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> lgtm, just confirming: this is compatible with the build time magic making
> the emergency-call app part of the system app right?
Yes.
v2.0: https://github.com/mozilla-b2g/gaia/commit/6b2c470734da5fe4fa261cc345fd9a0ae5535420
Assignee | ||
Updated•10 years ago
|
Whiteboard: NO_UPLIFT [in-sprint=v2.0-S5][planned-sprint] → [in-sprint=v2.0-S5][planned-sprint]
Comment 16•10 years ago
|
||
This issue has been successfully verified on Flame v2.1&v2.0.
See attachment: verified_v2.1.mp4
Reproducing rate: 0/5
Flame2.0 build:
Gaia-Rev 8d1e868864c8a8f1e037685f0656d1da70d08c06
Gecko-Rev https://hg.mozilla.org/releases/mozilla-b2g32_v2_0/rev/c756bd8bf3c3
Build-ID 20141127000203
Version 32.0
Device-Name flame
FW-Release 4.4.2
FW-Incremental eng.cltbld.20141127.034818
FW-Date Thu Nov 27 03:48:29 EST 2014
Bootloader L1TC00011880
Flame2.1 build:
Gaia-Rev 5372b675e018b6aac97d95ff5db8d4bd16addb9b
Gecko-Rev https://hg.mozilla.org/releases/mozilla-b2g34_v2_1/rev/f34377ae402b
Build-ID 20141127001201
Version 34.0
Device-Name flame
FW-Release 4.4.2
FW-Incremental eng.cltbld.20141127.035005
FW-Date Thu Nov 27 03:50:16 EST 2014
Bootloader L1TC00011880
Comment 17•10 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•