Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit ed10cd5

Browse files
MTRNorddbkr
authored andcommitted
Add missing Robot string to translation
1 parent ba35ca3 commit ed10cd5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/components/views/login/CaptchaForm.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ module.exports = React.createClass({
6666
// * jumping straight to a hosted captcha page (but we don't support that yet)
6767
// * embedding the captcha in an iframe (if that works)
6868
// * using a better captcha lib
69-
warning.innerHTML = "Robot check is currently unavailable on desktop - please use a <a href='https://riot.im/app'>web browser</a>.";
69+
warning.innerHTML = _tJsx(
70+
"Robot check is currently unavailable on desktop - please use a <a>web browser</a>",
71+
/<a>(.*?)<\/a>/,
72+
(sub) => { return "<a href='https://riot.im/app'>{ sub }</a>"; }
73+
);
7074
this.refs.recaptchaContainer.appendChild(warning);
7175
}
7276
else {

src/i18n/strings/en_EN.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,5 +969,6 @@
969969
"Automatically replace plain text Emoji": "Automatically replace plain text Emoji",
970970
"Failed to upload image": "Failed to upload image",
971971
"Failed to update group": "Failed to update group",
972-
"Hide avatars in user and room mentions": "Hide avatars in user and room mentions"
972+
"Hide avatars in user and room mentions": "Hide avatars in user and room mentions",
973+
"Robot check is currently unavailable on desktop - please use a <a>web browser</a>": "Robot check is currently unavailable on desktop - please use a <a>web browser</a>"
973974
}

0 commit comments

Comments
 (0)