Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Bug 1034227 - [email] cookie cache DOM not localized on app restart #21364

Merged

Conversation

jrburke
Copy link
Contributor

@jrburke jrburke commented Jul 3, 2014

In mail_app.js, if it knows a cachedNode will be used for startup, it passes it to mozL10n.translateFragment first. This fixes the root of the issue.

The change in tmpl.js for bug 1005760 is also removed because now the l10n.js MutationObservers translate the nodes on insertion, so it is just doing extra unneeded work to do this in tmpl.js. This can be confirmed by doing the following:

  • Load email with one account configured, open Compose, then close it. Assume start language is English.
  • Change the Language in Settings app to "Accented English".
  • Go back to email and open the Compose card, it is still correctly translated to Accented English.

@try-server-hook
Copy link

jrburke James Burke (jrburke) started tests. Results

jrburke added a commit that referenced this pull request Jul 4, 2014
Bug 1034227 - [email] cookie cache DOM not localized on app restart r=asuth,gandalf
@jrburke jrburke merged commit 3db3f62 into mozilla-b2g:master Jul 4, 2014
@jrburke jrburke deleted the bug1034227-email-cache-localize branch July 4, 2014 06:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants