summaryrefslogtreecommitdiff
path: root/web-ui/app/js
diff options
context:
space:
mode:
authorCaio Carrara <ccarrara@thoughtworks.com>2016-06-27 16:21:56 -0300
committerCaio Carrara <ccarrara@thoughtworks.com>2016-06-27 16:40:50 -0300
commitd5176c2373e36e63fc207f70c9e5b120f232f75a (patch)
tree40724335d390432d886837722830dbdb8ba59acc /web-ui/app/js
parentadf2d0581393eb590349bd43211cd927feeb722e (diff)
Update use of interpolation on translations
See: #727
Diffstat (limited to 'web-ui/app/js')
-rw-r--r--web-ui/app/js/helpers/view_helper.js3
-rw-r--r--web-ui/app/js/views/i18n.js4
2 files changed, 3 insertions, 4 deletions
diff --git a/web-ui/app/js/helpers/view_helper.js b/web-ui/app/js/helpers/view_helper.js
index c12e6aaf..ed9e0559 100644
--- a/web-ui/app/js/helpers/view_helper.js
+++ b/web-ui/app/js/helpers/view_helper.js
@@ -73,8 +73,7 @@ define(
function prependFrom(mail) {
return i18n.t(
- 'On __date__, <__from__> wrote:\n',
- {'date': new Date(mail.header.date).toString(), 'from': mail.header.from}
+ 'reply-author-line', {'date': new Date(mail.header.date).toString(), 'from': mail.header.from}
);
}
diff --git a/web-ui/app/js/views/i18n.js b/web-ui/app/js/views/i18n.js
index f843b845..29a1beca 100644
--- a/web-ui/app/js/views/i18n.js
+++ b/web-ui/app/js/views/i18n.js
@@ -28,8 +28,8 @@ function(i18n, i18n_backend, I18n_detector) {
return result.replace('-', '_');
};
- function t(i18n_key) {
- var result = i18n.t(i18n_key);
+ function t(i18n_key, options) {
+ var result = i18n.t(i18n_key, options);
var safe_string = new Handlebars.SafeString(result);
return safe_string.string;
}