diff --git a/src/components/views/settings/tabs/room/BridgeSettingsTab.js b/src/components/views/settings/tabs/room/BridgeSettingsTab.js
index 82382e7828..9e6bdf8958 100644
--- a/src/components/views/settings/tabs/room/BridgeSettingsTab.js
+++ b/src/components/views/settings/tabs/room/BridgeSettingsTab.js
@@ -1,5 +1,5 @@
/*
-Copyright 2019 New Vector Ltd
+Copyright 2019 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -33,17 +33,6 @@ export default class BridgeSettingsTab extends React.Component {
roomId: PropTypes.string.isRequired,
};
- constructor() {
- super();
-
- this.state = {
- };
- }
-
- componentWillMount() {
-
- }
-
_renderBridgeCard(event, room) {
const content = event.getContent();
if (!content || !content.channel || !content.protocol) {
@@ -56,21 +45,18 @@ export default class BridgeSettingsTab extends React.Component {
let creator = null;
if (content.creator) {
- const pill = ;
- creator = (
{
- _t("This bridge was provisioned by %(pill)s", {
- pill,
- })
- }
);
+ creator = { _t("This bridge was provisioned by ", {}, {
+ user: ,
+ })}
;
}
- const bot = ( {_t("This bridge is managed by the %(pill)s bot user.", {
- pill: {_t("This bridge is managed by the bot user.", {}, {
+ user: );
let channelLink = channelName;
if (channel.external_url) {
- channelLink = {channelName};
+ channelLink = {channelName};
}
let networkLink = networkName;
if (network && network.external_url) {
- networkLink = {networkName};
+ networkLink = {networkName};
}
const chanAndNetworkInfo = (
- (_t("Bridged into %(channelLink)s %(networkLink)s, on %(protocolName)s", {
+ _t("Bridged into , on ", {}, {
channelLink,
networkLink,
protocolName,
- }))
+ })
);
let networkIcon = null;
@@ -101,9 +87,13 @@ export default class BridgeSettingsTab extends React.Component {
MatrixClientPeg.get().getHomeserverUrl(),
network.avatar, 32, 32, "crop",
);
- networkIcon = ;
+ networkIcon = ;
}
let channelIcon = null;
@@ -112,13 +102,16 @@ export default class BridgeSettingsTab extends React.Component {
MatrixClientPeg.get().getHomeserverUrl(),
channel.avatar, 32, 32, "crop",
);
- console.log(channel.avatar);
- channelIcon = ;
+ channelIcon = ;
}
- const heading = _t("Connected to %(channelIcon)s %(channelName)s on %(networkIcon)s %(networkName)s", {
+ const heading = _t("Connected to on ", { }, {
channelIcon,
channelName,
networkName,
@@ -127,7 +120,7 @@ export default class BridgeSettingsTab extends React.Component {
return (
-
{heading}
+
{heading}
{_t("Connected via %(protocolName)s", { protocolName })}
{creator}
diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json
index 6fcfd2eb95..1f66891857 100644
--- a/src/i18n/strings/en_EN.json
+++ b/src/i18n/strings/en_EN.json
@@ -763,10 +763,10 @@
"Room version:": "Room version:",
"Developer options": "Developer options",
"Open Devtools": "Open Devtools",
- "This bridge was provisioned by %(pill)s": "This bridge was provisioned by %(pill)s",
- "This bridge is managed by the %(pill)s bot user.": "This bridge is managed by the %(pill)s bot user.",
- "Bridged into %(channelLink)s %(networkLink)s, on %(protocolName)s": "Bridged into %(channelLink)s %(networkLink)s, on %(protocolName)s",
- "Connected to %(channelIcon)s %(channelName)s on %(networkIcon)s %(networkName)s": "Connected to %(channelIcon)s %(channelName)s on %(networkIcon)s %(networkName)s",
+ "This bridge was provisioned by ": "This bridge was provisioned by ",
+ "This bridge is managed by the bot user.": "This bridge is managed by the bot user.",
+ "Bridged into , on ": "Bridged into , on ",
+ "Connected to on ": "Connected to on ",
"Connected via %(protocolName)s": "Connected via %(protocolName)s",
"Bridge Info": "Bridge Info",
"Below is a list of bridges connected to this room.": "Below is a list of bridges connected to this room.",