-
{ _tJsx("Sorry, your browser is not able to run Riot.", /(.*?)<\/b>/, (sub) => {sub} ) }
+
{ _t("Sorry, your browser is not able to run Riot.", {}, { 'b': (sub) => {sub} }) }
{ _t("Riot uses many advanced browser features, some of which are not available or experimental in your current browser.") }
- { _tJsx('Please install Chrome or Firefox for the best experience.',
- [
- /(.*?)<\/a>/,
- / (.*?)<\/a>/,
- ],
- [
- (sub) => {sub} ,
- (sub) => {sub} ,
- ]
+ { _t('Please install Chrome or Firefox for the best experience.',
+ {},
+ {
+ 'chromeLink': (sub) => {sub} ,
+ 'firefoxLink': (sub) => {sub} ,
+ },
)}
- { _tJsx('Safari and Opera work too.',
- [
- /(.*?)<\/a>/,
- / (.*?)<\/a>/,
- ],
- [
- (sub) => {sub} ,
- (sub) => {sub} ,
- ]
+ { _t('Safari and Opera work too.',
+ {},
+ {
+ 'safariLink': (sub) => {sub} ,
+ 'operaLink': (sub) => {sub} ,
+ },
)}
diff --git a/src/components/views/globals/PasswordNagBar.js b/src/components/views/globals/PasswordNagBar.js
index bf71fa2c..a04d48e0 100644
--- a/src/components/views/globals/PasswordNagBar.js
+++ b/src/components/views/globals/PasswordNagBar.js
@@ -20,7 +20,7 @@ import React from 'react';
import sdk from 'matrix-react-sdk';
import Modal from 'matrix-react-sdk/lib/Modal';
import dis from 'matrix-react-sdk/lib/dispatcher';
-import { _t, _tJsx } from 'matrix-react-sdk/lib/languageHandler';
+import { _t } from 'matrix-react-sdk/lib/languageHandler';
export default React.createClass({
onUpdateClicked: function() {
@@ -49,10 +49,10 @@ export default React.createClass({
alt="Warning"
/>
- { _tJsx(
+ { _t(
"To return to your account in future you need to set a password ",
- /(.*?)<\/u>/,
- (sub) => { return { sub } ; },
+ {},
+ { 'u': (sub) => { sub } },
) }
diff --git a/src/components/views/settings/Notifications.js b/src/components/views/settings/Notifications.js
index fe6e6776..be03b4d7 100644
--- a/src/components/views/settings/Notifications.js
+++ b/src/components/views/settings/Notifications.js
@@ -17,7 +17,7 @@ limitations under the License.
import React from 'react';
import Promise from 'bluebird';
import sdk from 'matrix-react-sdk';
-import { _t, _tJsx } from 'matrix-react-sdk/lib/languageHandler';
+import { _t } from 'matrix-react-sdk/lib/languageHandler';
import MatrixClientPeg from 'matrix-react-sdk/lib/MatrixClientPeg';
import UserSettingsStore from 'matrix-react-sdk/lib/UserSettingsStore';
import SettingsStore, {SettingLevel} from "matrix-react-sdk/lib/settings/SettingsStore";
@@ -564,10 +564,11 @@ module.exports = React.createClass({
"vectorRuleId": "_keywords",
"description" : (
- { _tJsx('Messages containing keywords ',
- /(.*?)<\/span>/,
- (sub) =>
+ { _t('Messages containing keywords ',
+ {},
+ { 'span': (sub) =>
{sub}
+ },
)}
),
diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json
index e1a6024b..c1857e31 100644
--- a/src/i18n/strings/en_EN.json
+++ b/src/i18n/strings/en_EN.json
@@ -72,7 +72,6 @@
"Away": "Away",
"A new version of Riot is available.": "A new version of Riot is available.",
"To return to your account in future you need to set a password ": "To return to your account in future you need to set a password ",
- "Toolbox": "Toolbox",
"Set Password": "Set Password",
"Error encountered (%(errorDetail)s).": "Error encountered (%(errorDetail)s).",
"Checking for an update...": "Checking for an update...",
@@ -100,18 +99,19 @@
"Unavailable": "Unavailable",
"Changelog": "Changelog",
"Back": "Back",
+ "Send Custom Event": "Send Custom Event",
"You must specify an event type!": "You must specify an event type!",
"Event sent!": "Event sent!",
"Failed to send custom event.": "Failed to send custom event.",
"Event Type": "Event Type",
- "Event Content": "Event Content",
"State Key": "State Key",
- "Edit": "Edit",
- "Filter results": "Filter results",
- "Send Custom Event": "Send Custom Event",
+ "Event Content": "Event Content",
"Send Account Data": "Send Account Data",
- "Explore Account Data": "Explore Account Data",
+ "Filter results": "Filter results",
"Explore Room State": "Explore Room State",
+ "Edit": "Edit",
+ "Explore Account Data": "Explore Account Data",
+ "Toolbox": "Toolbox",
"Developer Tools": "Developer Tools",
"You have successfully set a password!": "You have successfully set a password!",
"You have successfully set a password and an email address!": "You have successfully set a password and an email address!",
@@ -149,8 +149,8 @@
"Direct Chat": "Direct Chat",
"Sorry, your browser is not able to run Riot.": "Sorry, your browser is not able to run Riot.",
"Riot uses many advanced browser features, some of which are not available or experimental in your current browser.": "Riot uses many advanced browser features, some of which are not available or experimental in your current browser.",
- "Please install Chrome or Firefox for the best experience.": "Please install Chrome or Firefox for the best experience.",
- "Safari and Opera work too.": "Safari and Opera work too.",
+ "Please install Chrome or Firefox for the best experience.": "Please install Chrome or Firefox for the best experience.",
+ "Safari and Opera work too.": "Safari and Opera work too.",
"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!",
"I understand the risks and wish to continue": "I understand the risks and wish to continue",
"Couldn't load home page": "Couldn't load home page",