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({
name: "settings-toggle",
values: [
{ label: "Settings", key: "settings" },
{ label: "Organization", key: "organization" },
{ label: i18n.t("Settings"), key: "settings" },
{ label: i18n.t("Organization"), key: "organization" },
],
callback: function (name, key) {
$(".sidebar li").hide();

View File

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

View File

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

View File

@@ -241,6 +241,6 @@
</table>
</div>
<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>