Clean up Custom Server Help dialog
This commit is contained in:
parent
99150b9b49
commit
b0e4a9b08b
2 changed files with 19 additions and 12 deletions
|
@ -16,9 +16,12 @@ limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const React = require("react");
|
const React = require("react");
|
||||||
const sanitizeHtml = require("sanitize-html");
|
|
||||||
import { _t } from 'matrix-react-sdk/lib/languageHandler';
|
import { _t } from 'matrix-react-sdk/lib/languageHandler';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This is identical to `CustomServerDialog` except for replacing "this app"
|
||||||
|
* with "Riot".
|
||||||
|
*/
|
||||||
module.exports = React.createClass({
|
module.exports = React.createClass({
|
||||||
displayName: 'VectorCustomServerDialog',
|
displayName: 'VectorCustomServerDialog',
|
||||||
statics: {
|
statics: {
|
||||||
|
@ -32,13 +35,17 @@ module.exports = React.createClass({
|
||||||
{ _t('Custom Server Options') }
|
{ _t('Custom Server Options') }
|
||||||
</div>
|
</div>
|
||||||
<div className="mx_Dialog_content">
|
<div className="mx_Dialog_content">
|
||||||
<span dangerouslySetInnerHTML={{__html: sanitizeHtml(_t(
|
<p>{_t(
|
||||||
"You can use the custom server options to sign into other Matrix "+
|
"You can use the custom server options to sign into other " +
|
||||||
"servers by specifying a different Home server URL.<br/>This allows "+
|
"Matrix servers by specifying a different homeserver URL. This " +
|
||||||
"you to use Riot with an existing Matrix account on a different home "+
|
"allows you to use Riot with an existing Matrix account on a " +
|
||||||
"server.<br/><br/>You can also set a custom identity server but you won't "+
|
"different homeserver.",
|
||||||
"be able to invite users by email address, or be invited by email address yourself.",
|
)}</p>
|
||||||
))}} />
|
<p>{_t(
|
||||||
|
"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.",
|
||||||
|
)}</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="mx_Dialog_buttons">
|
<div className="mx_Dialog_buttons">
|
||||||
<button onClick={this.props.onFinished} autoFocus={true}>
|
<button onClick={this.props.onFinished} autoFocus={true}>
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
{
|
{
|
||||||
"Riot is not supported on mobile web. Install the app?": "Riot is not supported on mobile web. Install the app?",
|
|
||||||
"Riot Desktop on %(platformName)s": "Riot Desktop on %(platformName)s",
|
"Riot Desktop on %(platformName)s": "Riot Desktop on %(platformName)s",
|
||||||
"Unknown device": "Unknown device",
|
"Unknown device": "Unknown device",
|
||||||
"%(appName)s via %(browserName)s on %(osName)s": "%(appName)s via %(browserName)s on %(osName)s",
|
"%(appName)s via %(browserName)s on %(osName)s": "%(appName)s via %(browserName)s on %(osName)s",
|
||||||
"You need to be using HTTPS to place a screen-sharing call.": "You need to be using HTTPS to place a screen-sharing call.",
|
"You need to be using HTTPS to place a screen-sharing call.": "You need to be using HTTPS to place a screen-sharing call.",
|
||||||
"Custom Server Options": "Custom Server Options",
|
|
||||||
"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.",
|
|
||||||
"Dismiss": "Dismiss",
|
|
||||||
"powered by Matrix": "powered by Matrix",
|
"powered by Matrix": "powered by Matrix",
|
||||||
|
"Custom Server Options": "Custom Server Options",
|
||||||
|
"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.",
|
||||||
|
"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.",
|
||||||
|
"Dismiss": "Dismiss",
|
||||||
"Welcome to Riot.im": "Welcome to Riot.im",
|
"Welcome to Riot.im": "Welcome to Riot.im",
|
||||||
"Decentralised, encrypted chat & collaboration powered by [matrix]": "Decentralised, encrypted chat & collaboration powered by [matrix]",
|
"Decentralised, encrypted chat & collaboration powered by [matrix]": "Decentralised, encrypted chat & collaboration powered by [matrix]",
|
||||||
"Search the room directory": "Search the room directory",
|
"Search the room directory": "Search the room directory",
|
||||||
|
|
Loading…
Reference in a new issue