Closed
Bug 999193
Opened 11 years ago
Closed 11 years ago
Clean up bootstrap mozL10n API use in Email
Categories
(Firefox OS Graveyard :: Gaia::E-Mail, defect)
Firefox OS Graveyard
Gaia::E-Mail
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: zbraniecki, Assigned: zbraniecki)
References
Details
Attachments
(1 file)
Email currently works around the bug in mozL10n.ready.
This should be fixed https://github.com/mozilla-b2g/gaia/blob/master/apps/email/js/l10n.js#L7-L13 once we fix bug 993188.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → gandalf
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•11 years ago
|
||
I moved away from using mozL10n.ready because the code does not benefit from the callack being fired on language change.
It overall seems that the whole app does not carry retranslation of strings provided by JS code. Not sure if it's a bug, but it's a separate issue.
Assignee | ||
Updated•11 years ago
|
Attachment #8416827 -
Flags: review?(jrburke)
Comment 2•11 years ago
|
||
Comment on attachment 8416827 [details] [review]
pull request
Tested on device and confirmed marionette tests still pass locally. Thanks!
Attachment #8416827 -
Flags: review?(jrburke) → review+
Comment 3•11 years ago
|
||
To clarify a bit more:
The once makes sense here because we are setting a module export value, which only registered once anyway.
I tested switching the language and it works for for the displayed cards and any new cards, but if a card template was already loaded, it is not getting translated. I filed bug 1005760 to track that fix.
Assignee | ||
Comment 4•11 years ago
|
||
Patch: https://github.com/mozilla-b2g/gaia/commit/906fcc826e052b9c58743da18fc4a9c10cad08dc
Merge: https://github.com/mozilla-b2g/gaia/commit/91477e77b834b02770de3f2feddd4fab839a8cf4
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•