Create more common_* common strings (#11439)

This commit is contained in:
Michael Telatynski 2023-08-23 10:25:33 +01:00 committed by GitHub
parent df4a2218d7
commit aa6e3654b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
106 changed files with 1121 additions and 1069 deletions

View file

@ -359,7 +359,7 @@ export default class CreateRoomDialog extends React.Component<IProps, IState> {
<div className="mx_Dialog_content">
<Field
ref={this.nameField}
label={_t("Name")}
label={_t("common|name")}
onChange={this.onNameChange}
onValidate={this.onNameValidate}
value={this.state.name}

View file

@ -41,7 +41,7 @@ enum Category {
}
const categoryLabels: Record<Category, TranslationKey> = {
[Category.Room]: _td("Room"),
[Category.Room]: _td("common|room"),
[Category.Other]: _td("Other"),
};
@ -106,7 +106,7 @@ const DevtoolsDialog: React.FC<IProps> = ({ roomId, threadRootId, onFinished })
</div>
))}
<div>
<h3>{_t("Options")}</h3>
<h3>{_t("common|options")}</h3>
<SettingsFlag name="developerMode" level={SettingLevel.ACCOUNT} />
<SettingsFlag name="showHiddenEventsInTimeline" level={SettingLevel.DEVICE} />
<SettingsFlag name="enableWidgetScreenshots" level={SettingLevel.ACCOUNT} />

View file

@ -304,7 +304,7 @@ const ExportDialog: React.FC<IProps> = ({ room, onFinished }) => {
// Display cancel warning
return (
<BaseDialog
title={_t("Warning")}
title={_t("common|warning")}
className="mx_ExportDialog"
contentId="mx_Dialog_content"
onFinished={onFinished}

View file

@ -75,7 +75,7 @@ const SpacePreferencesDialog: React.FC<IProps> = ({ space, initialTabId, onFinis
const tabs: NonEmptyArray<Tab<SpacePreferenceTab>> = [
new Tab(
SpacePreferenceTab.Appearance,
_td("Appearance"),
_td("common|appearance"),
"mx_SpacePreferencesDialog_appearanceIcon",
<SpacePreferencesAppearanceTab space={space} />,
),

View file

@ -86,7 +86,7 @@ export default class UserSettingsDialog extends React.Component<IProps, IState>
tabs.push(
new Tab(
UserTab.Appearance,
_td("Appearance"),
_td("common|appearance"),
"mx_UserSettingsDialog_appearanceIcon",
<AppearanceUserSettingsTab />,
"UserSettingsAppearance",
@ -168,7 +168,7 @@ export default class UserSettingsDialog extends React.Component<IProps, IState>
tabs.push(
new Tab(
UserTab.Labs,
_td("Labs"),
_td("common|labs"),
"mx_UserSettingsDialog_labsIcon",
<LabsUserSettingsTab />,
"UserSettingsLabs",