i18n: Fix a smattering of strings that weren't getting translated.

These are some strings I spotted in English when playing around a bit
with the UI set to German, where our translations are near complete.

It'd be great to have a more systematic way of spotting this kind of
omission.  Probably a fairly simple linter could catch a lot of cases.
This commit is contained in:
Greg Price
2017-06-23 12:56:08 -07:00
committed by Tim Abbott
parent 038a2c7692
commit 4b765ae304
4 changed files with 7 additions and 7 deletions

View File

@@ -665,8 +665,8 @@ $(function () {
var settings_toggle = components.toggle({ var settings_toggle = components.toggle({
name: "settings-toggle", name: "settings-toggle",
values: [ values: [
{ label: "Settings", key: "settings" }, { label: i18n.t("Settings"), key: "settings" },
{ label: "Organization", key: "organization" }, { label: i18n.t("Organization"), key: "organization" },
], ],
callback: function (name, key) { callback: function (name, key) {
$(".sidebar li").hide(); $(".sidebar li").hide();

View File

@@ -7,7 +7,7 @@ var exports = {};
name: String toggle_name, name: String toggle_name,
selected: Integer selected_index, selected: Integer selected_index,
values: Array<Object> [ values: Array<Object> [
{ label: String title } { label: i18n.t(String title) }
], ],
callback: function () { callback: function () {
// .. on value change. // .. on value change.

View File

@@ -123,9 +123,9 @@ $(document).ready(function () {
name: "info-overlay-toggle", name: "info-overlay-toggle",
selected: 0, selected: 0,
values: [ values: [
{ label: "Keyboard shortcuts", key: "keyboard-shortcuts" }, { label: i18n.t("Keyboard shortcuts"), key: "keyboard-shortcuts" },
{ label: "Message formatting", key: "markdown-help" }, { label: i18n.t("Message formatting"), key: "markdown-help" },
{ label: "Search operators", key: "search-operators" }, { label: i18n.t("Search operators"), key: "search-operators" },
], ],
callback: function (name, key) { callback: function (name, key) {
$(".overlay-modal").hide(); $(".overlay-modal").hide();

View File

@@ -241,6 +241,6 @@
</table> </table>
</div> </div>
<hr/> <hr/>
<a href="/help/keyboard-shortcuts" target="_blank">Detailed keyboard shortcuts documentation</a> <a href="/help/keyboard-shortcuts" target="_blank">{% trans %}Detailed keyboard shortcuts documentation{% endtrans %}</a>
</div> </div>
</div> </div>