Align action_* strings with Element X project in Localazy (#11437)

This commit is contained in:
Michael Telatynski 2023-08-22 20:55:15 +01:00 committed by GitHub
parent bdd3710f25
commit df4a2218d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
166 changed files with 1697 additions and 1555 deletions

View file

@ -80,7 +80,7 @@ const AvatarSetting: React.FC<IProps> = ({ avatarUrl, avatarAltText, avatarName,
if (avatarUrl && removeAvatar) {
removeAvatarBtn = (
<AccessibleButton onClick={removeAvatar} kind="link_sm">
{_t("Remove")}
{_t("action|remove")}
</AccessibleButton>
);
}

View file

@ -172,7 +172,7 @@ export default class EventIndexPanel extends React.Component<{}, IState> {
</SettingsSubsectionText>
<div>
<AccessibleButton kind="primary" disabled={this.state.enabling} onClick={this.onEnable}>
{_t("Enable")}
{_t("action|enable")}
</AccessibleButton>
{this.state.enabling ? <InlineSpinner /> : <div />}
</div>

View file

@ -219,7 +219,7 @@ export default class ProfileSettings extends React.Component<{}, IState> {
kind="primary"
disabled={!this.state.enableProfileSave}
>
{_t("Save")}
{_t("action|save")}
</AccessibleButton>
</div>
</form>

View file

@ -200,7 +200,7 @@ export default class SetIdServer extends React.Component<IProps, IState> {
new: (sub) => <b>{abbreviateUrl(idServer)}</b>,
},
),
button: _t("Continue"),
button: _t("action|continue"),
});
save = !!confirmed;
}
@ -232,7 +232,7 @@ export default class SetIdServer extends React.Component<IProps, IState> {
<span>&nbsp;{_t("Only continue if you trust the owner of the server.")}</span>
</div>
),
button: _t("Continue"),
button: _t("action|continue"),
});
return finished;
}

View file

@ -47,7 +47,7 @@ export class ExistingSpellCheckLanguage extends React.Component<ExistingSpellChe
<div className="mx_ExistingSpellCheckLanguage">
<span className="mx_ExistingSpellCheckLanguage_language">{this.props.language}</span>
<AccessibleButton onClick={this.onRemove} kind="danger_sm">
{_t("Remove")}
{_t("action|remove")}
</AccessibleButton>
</div>
);

View file

@ -107,7 +107,7 @@ export class ExistingEmailAddress extends React.Component<IExistingEmailAddressP
kind="danger_sm"
className="mx_GeneralUserSettingsTab_section--discovery_existing_button"
>
{_t("Remove")}
{_t("action|remove")}
</AccessibleButton>
<AccessibleButton
onClick={this.onDontRemove}
@ -126,7 +126,7 @@ export class ExistingEmailAddress extends React.Component<IExistingEmailAddressP
{this.props.email.address}
</span>
<AccessibleButton onClick={this.onRemove} kind="danger_sm" disabled={this.props.disabled}>
{_t("Remove")}
{_t("action|remove")}
</AccessibleButton>
</div>
);
@ -284,7 +284,7 @@ export default class EmailAddresses extends React.Component<IProps, IState> {
kind="primary"
disabled={this.state.continueDisabled}
>
{_t("Continue")}
{_t("action|continue")}
</AccessibleButton>
</div>
);

View file

@ -102,7 +102,7 @@ export class ExistingPhoneNumber extends React.Component<IExistingPhoneNumberPro
kind="danger_sm"
className="mx_GeneralUserSettingsTab_section--discovery_existing_button"
>
{_t("Remove")}
{_t("action|remove")}
</AccessibleButton>
<AccessibleButton
onClick={this.onDontRemove}
@ -121,7 +121,7 @@ export class ExistingPhoneNumber extends React.Component<IExistingPhoneNumberPro
+{this.props.msisdn.address}
</span>
<AccessibleButton onClick={this.onRemove} kind="danger_sm" disabled={this.props.disabled}>
{_t("Remove")}
{_t("action|remove")}
</AccessibleButton>
</div>
);
@ -304,7 +304,7 @@ export default class PhoneNumbers extends React.Component<IProps, IState> {
this.state.newPhoneNumberCode.length === 0
}
>
{_t("Continue")}
{_t("action|continue")}
</AccessibleButton>
</form>
</div>

View file

@ -109,7 +109,7 @@ const DeviceNameEditor: React.FC<Props & { stopEditing: () => void }> = ({ devic
data-testid="device-rename-submit-cta"
disabled={isLoading}
>
{_t("Save")}
{_t("action|save")}
</AccessibleButton>
<AccessibleButton
onClick={stopEditing}

View file

@ -75,9 +75,9 @@ export default class GeneralRoomSettingsTab extends React.Component<IProps, ISta
let leaveSection;
if (room.getMyMembership() === "join") {
leaveSection = (
<SettingsSubsection heading={_t("Leave room")}>
<SettingsSubsection heading={_t("action|leave_room")}>
<AccessibleButton kind="danger" onClick={this.onLeaveClick}>
{_t("Leave room")}
{_t("action|leave_room")}
</AccessibleButton>
</SettingsSubsection>
);

View file

@ -304,7 +304,7 @@ export default class NotificationsSettingsTab extends React.Component<IProps, IS
onClick={this.onClickSaveSound}
kind="primary"
>
{_t("Save")}
{_t("action|save")}
</AccessibleButton>
<br />
</div>

View file

@ -185,7 +185,7 @@ export default class MjolnirUserSettingsTab extends React.Component<{}, IState>
onClick={() => this.removePersonalRule(rule)}
disabled={this.state.busy}
>
{_t("Remove")}
{_t("action|remove")}
</AccessibleButton>
&nbsp;
<code>{rule.entity}</code>

View file

@ -312,7 +312,7 @@ export default class SecurityUserSettingsTab extends React.Component<IProps, ISt
if (PosthogAnalytics.instance.isEnabled()) {
const onClickAnalyticsLearnMore = (): void => {
showAnalyticsLearnMoreDialog({
primaryButton: _t("OK"),
primaryButton: _t("action|ok"),
hasCancel: false,
});
};
@ -325,7 +325,7 @@ export default class SecurityUserSettingsTab extends React.Component<IProps, ISt
)}
>
<AccessibleButton kind="link" onClick={onClickAnalyticsLearnMore}>
{_t("Learn more")}
{_t("action|learn_more")}
</AccessibleButton>
{PosthogAnalytics.instance.isEnabled() && (
<SettingsFlag name="pseudonymousAnalyticsOptIn" level={SettingLevel.ACCOUNT} />