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

@ -167,7 +167,7 @@ const JoinRuleSettings: React.FC<JoinRuleSettingsProps> = ({
},
{
value: JoinRule.Public,
label: _t("Public"),
label: _t("common|public"),
description: (
<>
{_t("Anyone can find and join.")}

View file

@ -246,7 +246,7 @@ export default class ThemeChoicePanel extends React.Component<IProps, IState> {
const orderedThemes = getOrderedThemes();
return (
<SettingsSubsection heading={_t("Theme")} data-testid="mx_ThemeChoicePanel">
<SettingsSubsection heading={_t("common|theme")} data-testid="mx_ThemeChoicePanel">
{systemThemeSection}
<div className="mx_ThemeChoicePanel_themeSelectors" data-testid="theme-choice-panel-selectors">
<StyledRadioGroup

View file

@ -79,7 +79,7 @@ const CurrentDeviceSectionHeading: React.FC<CurrentDeviceSectionHeadingProps> =
<SettingsSubsectionHeading heading={_t("Current session")}>
<KebabContextMenu
disabled={disabled}
title={_t("Options")}
title={_t("common|options")}
options={menuOptions}
data-testid="current-session-menu"
/>

View file

@ -76,7 +76,7 @@ const DeviceDetails: React.FC<Props> = ({
id: "application",
heading: _t("Application"),
values: [
{ label: _t("Name"), value: device.appName },
{ label: _t("common|name"), value: device.appName },
{ label: _t("Version"), value: device.appVersion },
{ label: _t("URL"), value: device.url },
],

View file

@ -52,7 +52,7 @@ export const OtherSessionsSectionHeading: React.FC<Props> = ({
{!!menuOptions.length && (
<KebabContextMenu
disabled={disabled}
title={_t("Options")}
title={_t("common|options")}
options={menuOptions}
data-testid="other-sessions-menu"
/>

View file

@ -540,7 +540,7 @@ export default class GeneralUserSettingsTab extends React.Component<IProps, ISta
height="18"
// override icon default values
aria-hidden={false}
aria-label={_t("Warning")}
aria-label={_t("common|warning")}
/>
) : null;
const heading = (

View file

@ -79,7 +79,7 @@ const SidebarUserSettingsTab: React.FC = () => {
>
<SettingsSubsectionText>
<HomeIcon />
{_t("Home")}
{_t("common|home")}
</SettingsSubsectionText>
<SettingsSubsectionText>
{_t("Home is useful for getting an overview of everything.")}
@ -106,7 +106,7 @@ const SidebarUserSettingsTab: React.FC = () => {
>
<SettingsSubsectionText>
<FavoriteIcon />
{_t("Favourites")}
{_t("common|favourites")}
</SettingsSubsectionText>
<SettingsSubsectionText>
{_t("Group all your favourite rooms and people in one place.")}