From b5bf0e01c84e454125681c181abd95a0bdd6a6b8 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Sat, 11 Feb 2023 15:02:28 +0900 Subject: [PATCH 1/3] Create a variable for 'Manage integrations', using the existing key Signed-off-by: Suguru Hirahara --- src/components/views/dialogs/IntegrationsDisabledDialog.tsx | 6 +++++- src/i18n/strings/en_EN.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/views/dialogs/IntegrationsDisabledDialog.tsx b/src/components/views/dialogs/IntegrationsDisabledDialog.tsx index e28d83aae75..d542c9a0fea 100644 --- a/src/components/views/dialogs/IntegrationsDisabledDialog.tsx +++ b/src/components/views/dialogs/IntegrationsDisabledDialog.tsx @@ -44,7 +44,11 @@ export default class IntegrationsDisabledDialog extends React.Component title={_t("Integrations are disabled")} >
-

{_t("Enable 'Manage Integrations' in Settings to do this.")}

+

+ {_t("Enable '%(manageIntegrations)s' in Settings to do this.", { + manageIntegrations: _t("Manage integrations"), + })} +

Date: Sat, 11 Feb 2023 15:09:56 +0900 Subject: [PATCH 2/3] Create a variable for 'Scan QR code' to activate automatic suggestions on Weblate Signed-off-by: Suguru Hirahara --- src/components/views/auth/LoginWithQRFlow.tsx | 6 +++++- src/i18n/strings/en_EN.json | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/views/auth/LoginWithQRFlow.tsx b/src/components/views/auth/LoginWithQRFlow.tsx index be79d8d2f38..5dafb6dd2fa 100644 --- a/src/components/views/auth/LoginWithQRFlow.tsx +++ b/src/components/views/auth/LoginWithQRFlow.tsx @@ -184,7 +184,11 @@ export default class LoginWithQRFlow extends React.Component {

{_t("Scan the QR code below with your device that's signed out.")}

  1. {_t("Start at the sign in screen")}
  2. -
  3. {_t("Select 'Scan QR code'")}
  4. +
  5. + {_t("Select '%(scanQRCode)s'", { + scanQRCode: _t("Scan QR code"), + })} +
  6. {_t("Review and approve the sign in")}
{code} diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index c51f15deea3..e5af48e4420 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -3322,7 +3322,8 @@ "By approving access for this device, it will have full access to your account.": "By approving access for this device, it will have full access to your account.", "Scan the QR code below with your device that's signed out.": "Scan the QR code below with your device that's signed out.", "Start at the sign in screen": "Start at the sign in screen", - "Select 'Scan QR code'": "Select 'Scan QR code'", + "Select '%(scanQRCode)s'": "Select '%(scanQRCode)s'", + "Scan QR code": "Scan QR code", "Review and approve the sign in": "Review and approve the sign in", "Connecting...": "Connecting...", "Waiting for device to sign in": "Waiting for device to sign in", From 7678acfcffc970c14ba647477ffb6bdeaf3d54f1 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Sat, 11 Feb 2023 15:20:43 +0900 Subject: [PATCH 3/3] Create a variable for 'My Ban List' Signed-off-by: Suguru Hirahara --- .../views/settings/tabs/user/MjolnirUserSettingsTab.tsx | 5 ++++- src/i18n/strings/en_EN.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/views/settings/tabs/user/MjolnirUserSettingsTab.tsx b/src/components/views/settings/tabs/user/MjolnirUserSettingsTab.tsx index c918a337a3c..55da59250cd 100644 --- a/src/components/views/settings/tabs/user/MjolnirUserSettingsTab.tsx +++ b/src/components/views/settings/tabs/user/MjolnirUserSettingsTab.tsx @@ -279,8 +279,11 @@ export default class MjolnirUserSettingsTab extends React.Component<{}, IState> {_t( "Your personal ban list holds all the users/servers you personally don't " + "want to see messages from. After ignoring your first user/server, a new room " + - "will show up in your room list named 'My Ban List' - stay in this room to keep " + + "will show up in your room list named '%(myBanList)s' - stay in this room to keep " + "the ban list in effect.", + { + myBanList: _t("My Ban List"), + }, )}
{this.renderPersonalBanListRules()}
diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index e5af48e4420..a8006e3e096 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -1602,7 +1602,7 @@ "Add users and servers you want to ignore here. Use asterisks to have %(brand)s match any characters. For example, @bot:* would ignore all users that have the name 'bot' on any server.": "Add users and servers you want to ignore here. Use asterisks to have %(brand)s match any characters. For example, @bot:* would ignore all users that have the name 'bot' on any server.", "Ignoring people is done through ban lists which contain rules for who to ban. Subscribing to a ban list means the users/servers blocked by that list will be hidden from you.": "Ignoring people is done through ban lists which contain rules for who to ban. Subscribing to a ban list means the users/servers blocked by that list will be hidden from you.", "Personal ban list": "Personal ban list", - "Your personal ban list holds all the users/servers you personally don't want to see messages from. After ignoring your first user/server, a new room will show up in your room list named 'My Ban List' - stay in this room to keep the ban list in effect.": "Your personal ban list holds all the users/servers you personally don't want to see messages from. After ignoring your first user/server, a new room will show up in your room list named 'My Ban List' - stay in this room to keep the ban list in effect.", + "Your personal ban list holds all the users/servers you personally don't want to see messages from. After ignoring your first user/server, a new room will show up in your room list named '%(myBanList)s' - stay in this room to keep the ban list in effect.": "Your personal ban list holds all the users/servers you personally don't want to see messages from. After ignoring your first user/server, a new room will show up in your room list named '%(myBanList)s' - stay in this room to keep the ban list in effect.", "Server or user ID to ignore": "Server or user ID to ignore", "eg: @bot:* or example.org": "eg: @bot:* or example.org", "Ignore": "Ignore",