Change wording for old room link
parent
64423e1f7d
commit
ec01f6ffb1
|
@ -119,21 +119,13 @@ export default class AdvancedRoomSettingsTab extends React.Component {
|
||||||
|
|
||||||
let oldRoomLink;
|
let oldRoomLink;
|
||||||
if (this.state.hasPreviousRoom) {
|
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 = (
|
oldRoomLink = (
|
||||||
<div>
|
<AccessibleButton element='a' onClick={this._onOldRoomClicked}>
|
||||||
{_t(
|
{_t("View older messages in %(roomName)s.", {roomName: name})}
|
||||||
"This is the upgraded version of another room. <a>Click here to visit the old room</a>.",
|
</AccessibleButton>
|
||||||
{}, {
|
|
||||||
'a': (sub) => {
|
|
||||||
return (
|
|
||||||
<AccessibleButton element='a' onClick={this._onOldRoomClicked}>
|
|
||||||
{sub}
|
|
||||||
</AccessibleButton>
|
|
||||||
);
|
|
||||||
},
|
|
||||||
},
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -599,7 +599,8 @@
|
||||||
"Voice & Video": "Voice & Video",
|
"Voice & Video": "Voice & Video",
|
||||||
"This room is not accessible by remote Matrix servers": "This room is not accessible by remote Matrix servers",
|
"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",
|
"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",
|
"Room information": "Room information",
|
||||||
"Internal room ID:": "Internal room ID:",
|
"Internal room ID:": "Internal room ID:",
|
||||||
"Room version": "Room version",
|
"Room version": "Room version",
|
||||||
|
|
Loading…
Reference in New Issue