From d77b871769ad8335d9ea610119a1a75bcafa4170 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 21 Sep 2023 09:11:26 +0100 Subject: [PATCH] Migrate more strings to translation keys (#11637) --- src/autocomplete/CommandProvider.tsx | 4 +- src/autocomplete/EmojiProvider.tsx | 2 +- src/autocomplete/NotifProvider.tsx | 6 +- src/autocomplete/RoomProvider.tsx | 2 +- src/autocomplete/SpaceProvider.tsx | 2 +- src/autocomplete/UserProvider.tsx | 4 +- src/components/structures/FileDropTarget.tsx | 2 +- src/components/structures/FilePanel.tsx | 8 +- src/components/structures/MatrixChat.tsx | 8 +- src/components/structures/MessagePanel.tsx | 4 +- .../structures/NotificationPanel.tsx | 4 +- src/components/structures/SpaceHierarchy.tsx | 14 +- src/components/structures/UserMenu.tsx | 11 +- src/components/structures/ViewSource.tsx | 6 +- src/components/views/auth/LoginWithQRFlow.tsx | 2 +- .../views/auth/RegistrationForm.tsx | 16 +- .../views/context_menus/SpaceContextMenu.tsx | 6 +- .../ManualDeviceKeyVerificationDialog.tsx | 4 +- .../views/dialogs/RoomSettingsDialog.tsx | 4 +- .../dialogs/SlidingSyncOptionsDialog.tsx | 16 +- .../views/dialogs/SpaceSettingsDialog.tsx | 4 +- src/components/views/dialogs/TermsDialog.tsx | 12 +- .../views/dialogs/UserSettingsDialog.tsx | 2 +- .../room_settings/RoomPublishSetting.tsx | 2 +- .../room_settings/UrlPreviewSettings.tsx | 20 +- .../views/rooms/LegacyRoomHeader.tsx | 2 +- src/components/views/rooms/NewRoomIntro.tsx | 32 +- .../views/rooms/RoomPreviewCard.tsx | 2 +- .../settings/devices/CurrentDeviceSection.tsx | 4 +- .../settings/devices/DeviceDetailHeading.tsx | 18 +- .../views/settings/devices/DeviceDetails.tsx | 22 +- .../devices/DeviceExpandDetailsButton.tsx | 2 +- .../views/settings/devices/DeviceMetaData.tsx | 5 +- .../devices/DeviceSecurityLearnMore.tsx | 58 +-- .../views/settings/devices/DeviceTypeIcon.tsx | 14 +- .../devices/DeviceVerificationStatusCard.tsx | 18 +- .../settings/devices/FilteredDeviceList.tsx | 77 ++- .../devices/FilteredDeviceListHeader.tsx | 4 +- .../settings/devices/LoginWithQRSection.tsx | 8 +- .../devices/OtherSessionsSectionHeading.tsx | 4 +- .../devices/SecurityRecommendations.tsx | 17 +- .../views/settings/devices/deleteDevices.tsx | 8 +- .../tabs/room/RolesRoomSettingsTab.tsx | 24 +- .../tabs/room/SecurityRoomSettingsTab.tsx | 82 ++-- src/i18n/strings/ar.json | 92 ++-- src/i18n/strings/az.json | 30 +- src/i18n/strings/bg.json | 148 +++--- src/i18n/strings/bs.json | 5 + src/i18n/strings/ca.json | 60 ++- src/i18n/strings/cs.json | 442 +++++++++--------- src/i18n/strings/cy.json | 5 + src/i18n/strings/da.json | 34 +- src/i18n/strings/de_DE.json | 442 +++++++++--------- src/i18n/strings/el.json | 280 ++++++----- src/i18n/strings/en_EN.json | 438 +++++++++-------- src/i18n/strings/en_US.json | 57 ++- src/i18n/strings/eo.json | 278 ++++++----- src/i18n/strings/es.json | 418 +++++++++-------- src/i18n/strings/et.json | 442 +++++++++--------- src/i18n/strings/eu.json | 136 +++--- src/i18n/strings/fa.json | 196 ++++---- src/i18n/strings/fi.json | 410 ++++++++-------- src/i18n/strings/fr.json | 442 +++++++++--------- src/i18n/strings/ga.json | 62 ++- src/i18n/strings/gl.json | 354 +++++++------- src/i18n/strings/he.json | 206 ++++---- src/i18n/strings/hi.json | 30 +- src/i18n/strings/hu.json | 440 +++++++++-------- src/i18n/strings/id.json | 442 +++++++++--------- src/i18n/strings/is.json | 360 +++++++------- src/i18n/strings/it.json | 442 +++++++++--------- src/i18n/strings/ja.json | 436 +++++++++-------- src/i18n/strings/jbo.json | 20 +- src/i18n/strings/ka.json | 5 + src/i18n/strings/kab.json | 140 +++--- src/i18n/strings/ko.json | 146 +++--- src/i18n/strings/lo.json | 276 ++++++----- src/i18n/strings/lt.json | 268 ++++++----- src/i18n/strings/lv.json | 172 ++++--- src/i18n/strings/ml.json | 5 + src/i18n/strings/mn.json | 5 + src/i18n/strings/nb_NO.json | 128 ++--- src/i18n/strings/nl.json | 398 ++++++++-------- src/i18n/strings/nn.json | 112 +++-- src/i18n/strings/oc.json | 36 +- src/i18n/strings/pl.json | 442 +++++++++--------- src/i18n/strings/pt.json | 67 ++- src/i18n/strings/pt_BR.json | 278 ++++++----- src/i18n/strings/ro.json | 5 + src/i18n/strings/ru.json | 418 +++++++++-------- src/i18n/strings/si.json | 5 + src/i18n/strings/sk.json | 442 +++++++++--------- src/i18n/strings/sl.json | 5 + src/i18n/strings/sq.json | 440 +++++++++-------- src/i18n/strings/sr.json | 112 +++-- src/i18n/strings/sr_Latn.json | 5 + src/i18n/strings/sv.json | 442 +++++++++--------- src/i18n/strings/ta.json | 5 + src/i18n/strings/te.json | 16 +- src/i18n/strings/th.json | 123 +++-- src/i18n/strings/tr.json | 198 ++++---- src/i18n/strings/tzm.json | 9 +- src/i18n/strings/uk.json | 442 +++++++++--------- src/i18n/strings/vi.json | 428 +++++++++-------- src/i18n/strings/vls.json | 108 +++-- src/i18n/strings/zh_Hans.json | 350 +++++++------- src/i18n/strings/zh_Hant.json | 442 +++++++++--------- 107 files changed, 7689 insertions(+), 6497 deletions(-) diff --git a/src/autocomplete/CommandProvider.tsx b/src/autocomplete/CommandProvider.tsx index 4dc13f1e223..1e3e4a32543 100644 --- a/src/autocomplete/CommandProvider.tsx +++ b/src/autocomplete/CommandProvider.tsx @@ -104,7 +104,7 @@ export default class CommandProvider extends AutocompleteProvider { } public getName(): string { - return "*️⃣ " + _t("Commands"); + return "*️⃣ " + _t("composer|autocomplete|command_description"); } public renderCompletions(completions: React.ReactNode[]): React.ReactNode { @@ -112,7 +112,7 @@ export default class CommandProvider extends AutocompleteProvider {
{_t("Attach files from chat or just drag and drop them anywhere in a room.")}
+{_t("file_panel|empty_description")}
{_t("You have no visible notifications.")}
+{_t("notif_panel|empty_description")}
{_t("Your server does not support showing space hierarchies.")}
; + return{_t("space|incompatible_server_hierarchy")}
; } const onKeyDown = (ev: KeyboardEvent, state: IState): void => { diff --git a/src/components/structures/UserMenu.tsx b/src/components/structures/UserMenu.tsx index 12e80d771c1..4ade2f4d3d5 100644 --- a/src/components/structures/UserMenu.tsx +++ b/src/components/structures/UserMenu.tsx @@ -354,7 +354,7 @@ export default class UserMenu extends React.Component{_t("To continue you need to accept the terms of this service.")}
+{_t("terms|intro")}
{_t("Service")} | -{_t("Summary")} | -{_t("Document")} | +{_t("terms|column_service")} | +{_t("terms|column_summary")} | +{_t("terms|column_document")} | {_t("action|accept")} |
---|