From f5ba6fa95293b973505b56685b031226f56ef4c8 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Sat, 3 Jun 2017 15:36:03 +0100 Subject: [PATCH] i18n things Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> (cherry picked from commit d878c72) Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/globals/UpdateCheckBar.js | 10 +++++----- src/i18n/strings/en_EN.json | 5 +++++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/components/views/globals/UpdateCheckBar.js b/src/components/views/globals/UpdateCheckBar.js index c39754c85f..0a9029222a 100644 --- a/src/components/views/globals/UpdateCheckBar.js +++ b/src/components/views/globals/UpdateCheckBar.js @@ -27,7 +27,7 @@ export default React.createClass({ getInitialState: function() { return { - message: 'Checking for an update...', + message: _t('Checking for an update...'), done: false, }; }, @@ -45,16 +45,16 @@ export default React.createClass({ let message; switch (state) { case updateStateEnum.ERROR: - message = 'Error encountered when checking for an update.'; + message = _t('Error encountered when checking for an update.'); break; case updateStateEnum.TIMEOUT: - message = 'Update Check timed out, try again later.'; + message = _t('Update Check timed out, try again later.'); break; case updateStateEnum.NOTAVAILABLE: - message = 'No update found.'; + message = _t('No update found.'); break; case updateStateEnum.DOWNLOADING: - message = 'Update is being downloaded.'; + message = _t('Update is being downloaded.'); done = false; break; } diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index e148248cc6..2bce407061 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -158,6 +158,11 @@ "Today": "Today", "Yesterday": "Yesterday", "OK": "OK", + "Checking for an update...": "Checking for an update...", + "Error encountered when checking for an update.": "Error encountered when checking for an update.", + "Update Check timed out, try again later.": "Update Check timed out, try again later.", + "No update found.": "No update found.", + "Update is being downloaded.": "Update is being downloaded.", "You need to be using HTTPS to place a screen-sharing call.": "You need to be using HTTPS to place a screen-sharing call.", "Welcome page": "Welcome page", "With your current browser, the look and feel of the application may be completely incorrect, and some or all features may not function. If you want to try it anyway you can continue, but you are on your own in terms of any issues you may encounter!": "With your current browser, the look and feel of the application may be completely incorrect, and some or all features may not function. If you want to try it anyway you can continue, but you are on your own in terms of any issues you may encounter!"