Migrate more strings to translation keys (#11522)
This commit is contained in:
parent
e650397bac
commit
bf68e4afb6
69 changed files with 4870 additions and 3876 deletions
|
@ -288,7 +288,7 @@ export default class CreateRoomDialog extends React.Component<IProps, IState> {
|
|||
"Everyone in <SpaceName/> will be able to find and join this room.",
|
||||
{},
|
||||
{
|
||||
SpaceName: () => <b>{this.props.parentSpace?.name ?? _t("Unnamed Space")}</b>,
|
||||
SpaceName: () => <b>{this.props.parentSpace?.name ?? _t("common|unnamed_space")}</b>,
|
||||
},
|
||||
)}
|
||||
|
||||
|
@ -302,7 +302,7 @@ export default class CreateRoomDialog extends React.Component<IProps, IState> {
|
|||
"Anyone will be able to find and join this room, not just members of <SpaceName/>.",
|
||||
{},
|
||||
{
|
||||
SpaceName: () => <b>{this.props.parentSpace?.name ?? _t("Unnamed Space")}</b>,
|
||||
SpaceName: () => <b>{this.props.parentSpace?.name ?? _t("common|unnamed_space")}</b>,
|
||||
},
|
||||
)}
|
||||
|
||||
|
@ -390,11 +390,14 @@ export default class CreateRoomDialog extends React.Component<IProps, IState> {
|
|||
|
||||
let title: string;
|
||||
if (isVideoRoom) {
|
||||
title = _t("Create a video room");
|
||||
title = _t("create_room|title_video_room");
|
||||
} else if (this.props.parentSpace || this.state.joinRule === JoinRule.Knock) {
|
||||
title = _t("action|create_a_room");
|
||||
} else {
|
||||
title = this.state.joinRule === JoinRule.Public ? _t("Create a public room") : _t("Create a private room");
|
||||
title =
|
||||
this.state.joinRule === JoinRule.Public
|
||||
? _t("create_room|title_public_room")
|
||||
: _t("create_room|title_private_room");
|
||||
}
|
||||
|
||||
return (
|
||||
|
@ -451,7 +454,9 @@ export default class CreateRoomDialog extends React.Component<IProps, IState> {
|
|||
</div>
|
||||
</form>
|
||||
<DialogButtons
|
||||
primaryButton={isVideoRoom ? _t("Create video room") : _t("Create room")}
|
||||
primaryButton={
|
||||
isVideoRoom ? _t("create_room|action_create_video_room") : _t("create_room|action_create_room")
|
||||
}
|
||||
onPrimaryButtonClick={this.onOk}
|
||||
onCancel={this.onCancel}
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue