Skip to content

Commit fa036a5

Browse files
authored
Improve localization experience on Weblate (matrix-org#10140)
* Create a variable for 'Manage integrations', using the existing key Signed-off-by: Suguru Hirahara <[email protected]> * Create a variable for 'Scan QR code' to activate automatic suggestions on Weblate Signed-off-by: Suguru Hirahara <[email protected]> * Create a variable for 'My Ban List' Signed-off-by: Suguru Hirahara <[email protected]> --------- Signed-off-by: Suguru Hirahara <[email protected]>
1 parent 61a63e4 commit fa036a5

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

src/components/views/auth/LoginWithQRFlow.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,11 @@ export default class LoginWithQRFlow extends React.Component<IProps> {
184184
<p>{_t("Scan the QR code below with your device that's signed out.")}</p>
185185
<ol>
186186
<li>{_t("Start at the sign in screen")}</li>
187-
<li>{_t("Select 'Scan QR code'")}</li>
187+
<li>
188+
{_t("Select '%(scanQRCode)s'", {
189+
scanQRCode: _t("Scan QR code"),
190+
})}
191+
</li>
188192
<li>{_t("Review and approve the sign in")}</li>
189193
</ol>
190194
{code}

src/components/views/dialogs/IntegrationsDisabledDialog.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ export default class IntegrationsDisabledDialog extends React.Component<IProps>
4444
title={_t("Integrations are disabled")}
4545
>
4646
<div className="mx_IntegrationsDisabledDialog_content">
47-
<p>{_t("Enable 'Manage Integrations' in Settings to do this.")}</p>
47+
<p>
48+
{_t("Enable '%(manageIntegrations)s' in Settings to do this.", {
49+
manageIntegrations: _t("Manage integrations"),
50+
})}
51+
</p>
4852
</div>
4953
<DialogButtons
5054
primaryButton={_t("Settings")}

src/components/views/settings/tabs/user/MjolnirUserSettingsTab.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,11 @@ export default class MjolnirUserSettingsTab extends React.Component<{}, IState>
279279
{_t(
280280
"Your personal ban list holds all the users/servers you personally don't " +
281281
"want to see messages from. After ignoring your first user/server, a new room " +
282-
"will show up in your room list named 'My Ban List' - stay in this room to keep " +
282+
"will show up in your room list named '%(myBanList)s' - stay in this room to keep " +
283283
"the ban list in effect.",
284+
{
285+
myBanList: _t("My Ban List"),
286+
},
284287
)}
285288
</div>
286289
<div>{this.renderPersonalBanListRules()}</div>

src/i18n/strings/en_EN.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1602,7 +1602,7 @@
16021602
"Add users and servers you want to ignore here. Use asterisks to have %(brand)s match any characters. For example, <code>@bot:*</code> 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, <code>@bot:*</code> would ignore all users that have the name 'bot' on any server.",
16031603
"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.",
16041604
"Personal ban list": "Personal ban list",
1605-
"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.",
1605+
"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.",
16061606
"Server or user ID to ignore": "Server or user ID to ignore",
16071607
"eg: @bot:* or example.org": "eg: @bot:* or example.org",
16081608
"Ignore": "Ignore",
@@ -2848,7 +2848,7 @@
28482848
"Waiting for partner to confirm...": "Waiting for partner to confirm...",
28492849
"Incoming Verification Request": "Incoming Verification Request",
28502850
"Integrations are disabled": "Integrations are disabled",
2851-
"Enable 'Manage Integrations' in Settings to do this.": "Enable 'Manage Integrations' in Settings to do this.",
2851+
"Enable '%(manageIntegrations)s' in Settings to do this.": "Enable '%(manageIntegrations)s' in Settings to do this.",
28522852
"Integrations not allowed": "Integrations not allowed",
28532853
"Your %(brand)s doesn't allow you to use an integration manager to do this. Please contact an admin.": "Your %(brand)s doesn't allow you to use an integration manager to do this. Please contact an admin.",
28542854
"To continue, use Single Sign On to prove your identity.": "To continue, use Single Sign On to prove your identity.",
@@ -3322,7 +3322,8 @@
33223322
"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.",
33233323
"Scan the QR code below with your device that's signed out.": "Scan the QR code below with your device that's signed out.",
33243324
"Start at the sign in screen": "Start at the sign in screen",
3325-
"Select 'Scan QR code'": "Select 'Scan QR code'",
3325+
"Select '%(scanQRCode)s'": "Select '%(scanQRCode)s'",
3326+
"Scan QR code": "Scan QR code",
33263327
"Review and approve the sign in": "Review and approve the sign in",
33273328
"Connecting...": "Connecting...",
33283329
"Waiting for device to sign in": "Waiting for device to sign in",

0 commit comments

Comments
 (0)