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:
parent
0825d3e22f
commit
ac25b62fdc
6 changed files with 99 additions and 87 deletions
|
@ -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 || {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue