mozilla-b2g/gaia — pull request #21363 by jrburke (2014-07-03 19:11:54+00:00)
Title: Bug 1005760 - [email] on language change, cached card templates not updated

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.