mirror of
https://github.com/element-hq/element-web
synced 2024-11-29 04:48:50 +03:00
Change wording for old room link
This commit is contained in:
parent
64423e1f7d
commit
ec01f6ffb1
2 changed files with 8 additions and 15 deletions
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue