Improve implementation of i18n for Install Flow following comments on #611

* Move install flow i18n logic to install_view.js (from options.js)
* Switch to using placeholders (instead of jQuery) for i18n messages with html.
* Switch to using moustache template instead of jQuery for i18n substitution.

// FREEBIE
This commit is contained in:
Sam Lanning 2016-01-17 10:54:34 +00:00 committed by lilia
parent 0825d3e22f
commit ac25b62fdc
6 changed files with 99 additions and 87 deletions

View file

@ -158,8 +158,8 @@
};
// Translate
window.i18n = function(message) {
return chrome.i18n.getMessage(message);
window.i18n = function(message, substitutions) {
return chrome.i18n.getMessage(message, substitutions);
};
window.textsecure = window.textsecure || {};