From b0190f6a65a57c6d2f73bfdbc72aa77e045a1d1d Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 29 Sep 2017 11:22:06 -0600 Subject: [PATCH] i18n for remaining strings Signed-off-by: Travis Ralston --- src/components/views/rooms/PinnedEventsPanel.js | 4 ++-- src/i18n/strings/en_EN.json | 2 ++ src/i18n/strings/en_US.json | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/views/rooms/PinnedEventsPanel.js b/src/components/views/rooms/PinnedEventsPanel.js index d86d4b58..ec50ae07 100644 --- a/src/components/views/rooms/PinnedEventsPanel.js +++ b/src/components/views/rooms/PinnedEventsPanel.js @@ -136,7 +136,7 @@ module.exports = React.createClass({ _getPinnedTiles: function() { if (this.state.pinned.length == 0) { - return
No pinned messages.
; + return
{ _t("No pinned messages.") }
; } return this.state.pinned.map(pinnedEvent => { @@ -151,7 +151,7 @@ module.exports = React.createClass({ }, render: function() { - let tiles =
Loading...
; + let tiles =
{ _t("Loading...") }
; if (this.state && !this.state.loading) { tiles = this._getPinnedTiles(); } diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index d403c7c1..7f2d1185 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -216,6 +216,8 @@ "Pin Message": "Pin Message", "Unpin Message": "Unpin Message", "Jump to message": "Jump to message", + "No pinned messages.": "No pinned messages.", + "Loading...": "Loading...", "Please set a password!": "Please set a password!", "This will allow you to return to your account after signing out, and sign in on other devices.": "This will allow you to return to your account after signing out, and sign in on other devices.", "You have successfully set a password and an email address!": "You have successfully set a password and an email address!", diff --git a/src/i18n/strings/en_US.json b/src/i18n/strings/en_US.json index cc42d785..66042713 100644 --- a/src/i18n/strings/en_US.json +++ b/src/i18n/strings/en_US.json @@ -202,6 +202,8 @@ "Pin Message": "Pin Message", "Unpin Message": "Unpin Message", "Jump to message": "Jump to message", + "No pinned messages.": "No pinned messages.", + "Loading...": "Loading...", "Checking for an update...": "Checking for an update...", "Error encountered (%(errorDetail)s).": "Error encountered (%(errorDetail)s).", "No update available.": "No update available.",