diff --git a/res/home.html b/res/home.html index d199844312..f8c05ea185 100644 --- a/res/home.html +++ b/res/home.html @@ -3,37 +3,37 @@
-

Welcome to Riot.im

-

Decentralised, encrypted chat & collaboration powered by

+

_t("Welcome to Riot.im")

+

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

-

Search the room directory

+

_t("Search the room directory")

- Lots of rooms already exist in Matrix, linked to existing networks (Slack, IRC, Gitter etc) or independent. - Check out the directory! + _t("Lots of rooms already exist in Matrix, linked to existing networks (Slack, IRC, Gitter etc) or independent. + Check out the directory!")
-

Chat with Riot Bot

+

_t("Chat with Riot Bot")

- Get started with some tips from Riot Bot! + _t("Get started with some tips from Riot Bot!")
-

General discussion about Matrix

+

_t("General discussion about Matrix")

@@ -41,33 +41,33 @@ Matrix HQ - Discussion of all things Matrix! + _t("Discussion of all things Matrix!")
Riot - Riot/Web & Desktop chat + _t("Riot/Web & Desktop chat")
#riot-ios - Riot/iOS & matrix-ios-sdk chat + _t("Riot/iOS & matrix-ios-sdk chat")
#riot-android - Riot/Android & matrix-android-sdk chat + _t("Riot/Android & matrix-android-sdk chat")
-

Matrix technical discussions

-

Running Matrix services

+

_t("Matrix technical discussions")

+

_t("Running Matrix services")

@@ -75,32 +75,32 @@ Synapse Support Community - Community-run support for Synapse + _t("Community-run support for Synapse")
#dendrite:matrix.org - Admin support for Dendrite + _t("Admin support for Dendrite")
Synapse Homeowners - Announcements about Synapse releases + _t("Announcements about Synapse releases")
IRC Matrix Bridges - Support for those using and running matrix-appservice-irc + _t("Support for those using and running matrix-appservice-irc")
-

Building services on Matrix

+

_t("Building services on Matrix")

@@ -108,46 +108,46 @@ #matrix-dev:matrix.org - Support for those using the Matrix spec + _t("Support for those using the Matrix spec")
End-to-end crypto in Matrix - Design and implementation of E2E in Matrix + _t("Design and implementation of E2E in Matrix")
#vr:matrix.org - Implementing VR services with Matrix + _t("Implementing VR services with Matrix")
#webrtc:matrix.org - Implementing VoIP services with Matrix + _t("Implementing VoIP services with Matrix")
Matrix Identity - Discussion of the Identity Service API + _t("Discussion of the Identity Service API")
Matrix Bridging - Support for those using, running and writing other bridges + _t("Support for those using, running and writing other bridges")
-

Contributing code to Matrix and Riot

+

_t("Contributing code to Matrix and Riot")

@@ -155,21 +155,21 @@ #riot-dev - Dev chat for the Riot/Web dev team + _t("Dev chat for the Riot/Web dev team")
#dendrite-dev - Dev chat for the Dendrite dev team + _t("Dev chat for the Dendrite dev team")
Riot-Web Translations - Co-ordination for Riot/Web translators + _t("Co-ordination for Riot/Web translators")
diff --git a/src/components/structures/HomePage.js b/src/components/structures/HomePage.js index 8b5b2f3c41..bdd4874df3 100644 --- a/src/components/structures/HomePage.js +++ b/src/components/structures/HomePage.js @@ -61,10 +61,7 @@ module.exports = React.createClass({ this.setState({ page: "Couldn't load home page" }); } - // We parse the JSON ourselves rather than use the JSON - // parameter, since this throws a parse error on empty - // which breaks if there's no config.json and we're - // loading from the filesystem (see above). + body.replaceAll(/_t\(['"](.*?)['"]\)/, (match)=>{ return sanitizehtml_t(match[1]) }); this.setState({ page: body }); } );