Change wording for old room link

This commit is contained in:
Travis Ralston 2019-04-11 10:40:25 -06:00
parent 64423e1f7d
commit ec01f6ffb1
2 changed files with 8 additions and 15 deletions

View file

@ -119,21 +119,13 @@ export default class AdvancedRoomSettingsTab extends React.Component {
let oldRoomLink;
if (this.state.hasPreviousRoom) {
let name = _t("this room");
const room = MatrixClientPeg.get().getRoom(this.props.roomId);
if (room && room.name) name = room.name;
oldRoomLink = (
<div>
{_t(
"This is the upgraded version of another room. <a>Click here to visit the old room</a>.",
{}, {
'a': (sub) => {
return (
<AccessibleButton element='a' onClick={this._onOldRoomClicked}>
{sub}
</AccessibleButton>
);
},
},
)}
</div>
<AccessibleButton element='a' onClick={this._onOldRoomClicked}>
{_t("View older messages in %(roomName)s.", {roomName: name})}
</AccessibleButton>
);
}

View file

@ -599,7 +599,8 @@
"Voice & Video": "Voice & Video",
"This room is not accessible by remote Matrix servers": "This room is not accessible by remote Matrix servers",
"Upgrade this room to the recommended room version": "Upgrade this room to the recommended room version",
"This is the upgraded version of another room. <a>Click here to visit the old room</a>.": "This is the upgraded version of another room. <a>Click here to visit the old room</a>.",
"this room": "this room",
"View older messages in %(roomName)s": "View older messages in %(roomName)s",
"Room information": "Room information",
"Internal room ID:": "Internal room ID:",
"Room version": "Room version",