Migrate more strings to translation keys (#11672)

This commit is contained in:
Michael Telatynski 2023-09-27 17:15:22 +01:00 committed by GitHub
parent 39c4e0c41f
commit fa377cbade
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
81 changed files with 3985 additions and 3766 deletions

View file

@ -258,7 +258,7 @@ function showStickersButton(props: IProps): ReactElement | null {
className="mx_MessageComposer_button"
iconClassName="mx_MessageComposer_stickers"
onClick={() => props.setStickerPickerOpen(!props.isStickerPickerOpen)}
title={props.isStickerPickerOpen ? _t("Hide stickers") : _t("common|sticker")}
title={props.isStickerPickerOpen ? _t("composer|close_sticker_picker") : _t("common|sticker")}
/>
) : null;
}
@ -283,7 +283,7 @@ function voiceRecordingButton(props: IProps, narrow: boolean): ReactElement | nu
className="mx_MessageComposer_button"
iconClassName="mx_MessageComposer_voiceMessage"
onClick={props.onRecordStartEndClick}
title={_t("Voice Message")}
title={_t("composer|voice_message_button")}
/>
);
}
@ -309,8 +309,8 @@ class PollButton extends React.PureComponent<IPollButtonProps> {
);
if (!canSend) {
Modal.createDialog(ErrorDialog, {
title: _t("Permission Required"),
description: _t("You do not have permission to start polls in this room."),
title: _t("composer|poll_button_no_perms_title"),
description: _t("composer|poll_button_no_perms_description"),
});
} else {
const threadId =
@ -338,7 +338,7 @@ class PollButton extends React.PureComponent<IPollButtonProps> {
className="mx_MessageComposer_button"
iconClassName="mx_MessageComposer_poll"
onClick={this.onCreateClick}
title={_t("Poll")}
title={_t("composer|poll_button")}
/>
);
}
@ -364,7 +364,7 @@ interface WysiwygToggleButtonProps {
}
function ComposerModeButton({ isRichTextEnabled, onClick }: WysiwygToggleButtonProps): JSX.Element {
const title = isRichTextEnabled ? _t("Hide formatting") : _t("Show formatting");
const title = isRichTextEnabled ? _t("composer|mode_plain") : _t("composer|mode_rich_text");
return (
<CollapsibleButton