Skip to content

Commit b0e4a9b

Browse files
committed
Clean up Custom Server Help dialog
1 parent 99150b9 commit b0e4a9b

2 files changed

Lines changed: 18 additions & 11 deletions

File tree

‎src/components/views/auth/VectorCustomServerDialog.js‎

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@ limitations under the License.
1616
*/
1717

1818
const React = require("react");
19-
const sanitizeHtml = require("sanitize-html");
2019
import { _t } from 'matrix-react-sdk/lib/languageHandler';
2120

21+
/**
22+
* This is identical to `CustomServerDialog` except for replacing "this app"
23+
* with "Riot".
24+
*/
2225
module.exports = React.createClass({
2326
displayName: 'VectorCustomServerDialog',
2427
statics: {
@@ -32,13 +35,17 @@ module.exports = React.createClass({
3235
{ _t('Custom Server Options') }
3336
</div>
3437
<div className="mx_Dialog_content">
35-
<span dangerouslySetInnerHTML={{__html: sanitizeHtml(_t(
36-
"You can use the custom server options to sign into other Matrix "+
37-
"servers by specifying a different Home server URL.<br/>This allows "+
38-
"you to use Riot with an existing Matrix account on a different home "+
39-
"server.<br/><br/>You can also set a custom identity server but you won't "+
40-
"be able to invite users by email address, or be invited by email address yourself.",
41-
))}} />
38+
<p>{_t(
39+
"You can use the custom server options to sign into other " +
40+
"Matrix servers by specifying a different homeserver URL. This " +
41+
"allows you to use Riot with an existing Matrix account on a " +
42+
"different homeserver.",
43+
)}</p>
44+
<p>{_t(
45+
"You can also set a custom identity server, but you won't be " +
46+
"able to invite users by email address, or be invited by email " +
47+
"address yourself.",
48+
)}</p>
4249
</div>
4350
<div className="mx_Dialog_buttons">
4451
<button onClick={this.props.onFinished} autoFocus={true}>

‎src/i18n/strings/en_EN.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"Riot is not supported on mobile web. Install the app?": "Riot is not supported on mobile web. Install the app?",
32
"Riot Desktop on %(platformName)s": "Riot Desktop on %(platformName)s",
43
"Unknown device": "Unknown device",
54
"%(appName)s via %(browserName)s on %(osName)s": "%(appName)s via %(browserName)s on %(osName)s",
65
"You need to be using HTTPS to place a screen-sharing call.": "You need to be using HTTPS to place a screen-sharing call.",
6+
"powered by Matrix": "powered by Matrix",
77
"Custom Server Options": "Custom Server Options",
8-
"You can use the custom server options to sign into other Matrix servers by specifying a different Home server URL.<br/>This allows you to use Riot with an existing Matrix account on a different home server.<br/><br/>You can also set a custom identity server but you won't be able to invite users by email address, or be invited by email address yourself.": "You can use the custom server options to sign into other Matrix servers by specifying a different Home server URL.<br/>This allows you to use Riot with an existing Matrix account on a different home server.<br/><br/>You can also set a custom identity server but you won't be able to invite users by email address, or be invited by email address yourself.",
8+
"You can use the custom server options to sign into other Matrix servers by specifying a different homeserver URL. This allows you to use Riot with an existing Matrix account on a different homeserver.": "You can use the custom server options to sign into other Matrix servers by specifying a different homeserver URL. This allows you to use Riot with an existing Matrix account on a different homeserver.",
9+
"You can also set a custom identity server, but you won't be able to invite users by email address, or be invited by email address yourself.": "You can also set a custom identity server, but you won't be able to invite users by email address, or be invited by email address yourself.",
910
"Dismiss": "Dismiss",
10-
"powered by Matrix": "powered by Matrix",
1111
"Welcome to Riot.im": "Welcome to Riot.im",
1212
"Decentralised, encrypted chat &amp; collaboration powered by [matrix]": "Decentralised, encrypted chat &amp; collaboration powered by [matrix]",
1313
"Search the room directory": "Search the room directory",

0 commit comments

Comments
 (0)