You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-20 16:22:28 +03:00
Change wording for old room link
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user