mozilla-b2g/gaia — pull request #21364 by jrburke (2014-07-03 19:17:06+00:00)
Title: Bug 1034227 - [email] cookie cache DOM not localized on app restart

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.