From da69d03b1d763088bc5a2275d39c682cb3e213ae Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Thu, 8 Jun 2017 13:50:53 +0100 Subject: [PATCH] i18n powered by [matrix] sanely --- res/home.html | 2 +- src/components/structures/HomePage.js | 3 ++- src/i18n/strings/de_DE.json | 2 +- src/i18n/strings/en_EN.json | 2 +- src/i18n/strings/ru.json | 2 +- src/i18n/strings/th.json | 2 +- 6 files changed, 7 insertions(+), 6 deletions(-) diff --git a/res/home.html b/res/home.html index 3072fcacb7..3ba2e96419 100644 --- a/res/home.html +++ b/res/home.html @@ -122,7 +122,7 @@

_t("Welcome to Riot.im")

-

_t("Decentralised, encrypted chat & collaboration powered by") [matrix]

+

_t("Decentralised, encrypted chat & collaboration powered by [matrix]")

diff --git a/src/components/structures/HomePage.js b/src/components/structures/HomePage.js index 6e2bd51f26..a9f2bbd0bc 100644 --- a/src/components/structures/HomePage.js +++ b/src/components/structures/HomePage.js @@ -48,7 +48,8 @@ module.exports = React.createClass({ translate: function(s) { s = sanitizeHtml(_t(s)); // ugly fix for https://github.com/vector-im/riot-web/issues/4243 - s = s.replace(/Riot\.im/, 'Riot.im'); + s = s.replace(/Riot\.im/, 'Riot.im'); + s = s.replace(/\[matrix\]/, '[matrix]'); return s; }, diff --git a/src/i18n/strings/de_DE.json b/src/i18n/strings/de_DE.json index d1c33a822b..b9578e8282 100644 --- a/src/i18n/strings/de_DE.json +++ b/src/i18n/strings/de_DE.json @@ -171,7 +171,7 @@ "OK": "OK", "Login": "Anmeldung", "Welcome to Riot.im": "Willkommen bei Riot.im", - "Decentralised, encrypted chat & collaboration powered by": "Dezentralisierter, verschlüsselter Chat & Zusammenarbeit unterstützt von", + "Decentralised, encrypted chat & collaboration powered by [matrix]": "Dezentralisierter, verschlüsselter Chat & Zusammenarbeit unterstützt von [matrix]", "Search the room directory": "Durchsuche Raum-Verzeichnis", "Chat with Riot Bot": "Chatte mit dem Riot-Bot", "Get started with some tips from Riot Bot!": "Beginne mit einigen Tipps vom Riot-Bot!", diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index afc8cc687e..c6f461e0e7 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -163,7 +163,7 @@ "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!", "Welcome to Riot.im": "Welcome to Riot.im", - "Decentralised, encrypted chat & collaboration powered by": "Decentralised, encrypted chat & collaboration powered by", + "Decentralised, encrypted chat & collaboration powered by [matrix]": "Decentralised, encrypted chat & collaboration powered by [matrix]", "Search the room directory": "Search the room directory", "Chat with Riot Bot": "Chat with Riot Bot", "Get started with some tips from Riot Bot!": "Get started with some tips from Riot Bot!", diff --git a/src/i18n/strings/ru.json b/src/i18n/strings/ru.json index 1fa04d956b..8075a28ec6 100644 --- a/src/i18n/strings/ru.json +++ b/src/i18n/strings/ru.json @@ -170,7 +170,7 @@ "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!": "Еали ваш браузер не корректно отображает информацию и все или некоторые фукции отключены, вы можете и дальше этим браузеом пользоваться но но ваши проблемы останутся с вами!", "Login": "Войти", "Welcome to Riot.im": "Добро пожаловать на Riot.im", - "Decentralised, encrypted chat & collaboration powered by": "Децентрализованное, шифрованное общение и сотрудничество на основе", + "Decentralised, encrypted chat & collaboration powered by [matrix]": "Децентрализованное, шифрованное общение и сотрудничество на основе [matrix]", "Search the room directory": "Поиск по директории комнат", "Chat with Riot Bot": "Пообщаться с Riot Bot" } diff --git a/src/i18n/strings/th.json b/src/i18n/strings/th.json index f2f6d17c78..66df9f4b42 100644 --- a/src/i18n/strings/th.json +++ b/src/i18n/strings/th.json @@ -195,5 +195,5 @@ "This will allow you to return to your account after signing out, and sign in on other devices.": "เพื่อคุณจะได้กลับมายังบัญชีเดิมของคุณได้ หลังจากออกจากระบบ แล้วกลับเข้าสู่ระบบในอุปกรณ์อื่น ๆ", "Design and implementation of E2E in Matrix": "การออกแบบและใช้งาน E2E ใน Matrix", "Discussion of the Identity Service API": "พูดคุยเกี่ยวกับ Identity Service API", - "Decentralised, encrypted chat & collaboration powered by": "แชทและประสานงานบนระบบที่ทั้งเข้ารหัสได้และกระจายศูนย์กลาง โดยใช้เทคโนโลยีจาก" + "Decentralised, encrypted chat & collaboration powered by [matrix]": "แชทและประสานงานบนระบบที่ทั้งเข้ารหัสได้และกระจายศูนย์กลาง โดยใช้เทคโนโลยีจาก [matrix]" }