From 2f5addc1745b1f1e036afadfb35d343ed961c36c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yago=20Gonz=C3=A1lez?= Date: Sat, 25 Mar 2017 11:21:37 +0100 Subject: [PATCH] i18n: Add missed strings. --- static/js/subs.js | 4 ++-- static/js/timerender.js | 4 ++-- static/styles/settings.css | 5 +++-- .../settings/account-settings.handlebars | 4 ++-- .../templates/settings/bot-settings.handlebars | 17 ++++++++--------- .../settings/display-settings.handlebars | 2 +- .../settings/muted-topics-settings.handlebars | 6 +++--- .../templates/stream_sidebar_actions.handlebars | 1 + .../templates/subscription_settings.handlebars | 8 ++++---- templates/zerver/dev_login.html | 2 +- templates/zerver/settings_overlay.html | 2 +- templates/zerver/settings_sidebar.html | 2 +- 12 files changed, 29 insertions(+), 28 deletions(-) diff --git a/static/js/subs.js b/static/js/subs.js index 521afe39f3..c8c12d640f 100644 --- a/static/js/subs.js +++ b/static/js/subs.js @@ -594,8 +594,8 @@ exports.setup_page = function (callback) { name: "stream-filter-toggle", selected: 0, values: [ - { label: "Subscribed" }, - { label: "All streams" }, + { label: i18n.t("Subscribed") }, + { label: i18n.t("All streams") }, ], callback: function () { actually_filter_streams(); diff --git a/static/js/timerender.js b/static/js/timerender.js index f9e31a3388..331d7231aa 100644 --- a/static/js/timerender.js +++ b/static/js/timerender.js @@ -24,9 +24,9 @@ exports.render_now = function (time) { var days_old = Math.round(start_of_other_day.diffDays(start_of_today)); if (days_old === 0) { - return ["Today", true]; + return [i18n.t("Today"), true]; } else if (days_old === 1) { - return ["Yesterday", true]; + return [i18n.t("Yesterday"), true]; } else if (days_old >= 365) { // For long running servers, searching backlog can get ambiguous // without a year stamp. Only show year if message is over a year old. diff --git a/static/styles/settings.css b/static/styles/settings.css index ce752e5b1a..6e08481171 100644 --- a/static/styles/settings.css +++ b/static/styles/settings.css @@ -626,12 +626,13 @@ input[type=checkbox].inline-block { white-space: pre; } -.edit_bot_form .control-label, #create_bot_form .control-label, #create_alert_word_form .control-label, +#get_api_key_box .control-label, .admin-emoji-form .control-label, .admin-filter-form .control-label, -.default-stream-form .control-label { +.default-stream-form .control-label, +.edit_bot_form .control-label { width: 10em; text-align: right; margin-right: 20px; diff --git a/static/templates/settings/account-settings.handlebars b/static/templates/settings/account-settings.handlebars index e8a0a3d9c1..4284df256a 100644 --- a/static/templates/settings/account-settings.handlebars +++ b/static/templates/settings/account-settings.handlebars @@ -8,7 +8,7 @@

{{t "Email" }}: {{page_params.email}} - [Change] + [{{t "Change" }}]

@@ -84,7 +84,7 @@
- +
diff --git a/static/templates/settings/bot-settings.handlebars b/static/templates/settings/bot-settings.handlebars index 2a33f6b0ba..a6c6214e5a 100644 --- a/static/templates/settings/bot-settings.handlebars +++ b/static/templates/settings/bot-settings.handlebars @@ -6,12 +6,12 @@
- {{#tr this}}

+ {{#tr this}} Looking for our Integrations or API documentation? -

{{/tr}} +