Skip to content

Commit

Permalink
Improve localization experience on Weblate (#10140)
Browse files Browse the repository at this point in the history
* Create a variable for 'Manage integrations', using the existing key

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Create a variable for 'Scan QR code' to activate automatic suggestions on Weblate

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Create a variable for 'My Ban List'

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

---------

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
  • Loading branch information
luixxiul committed Feb 13, 2023
1 parent 61a63e4 commit fa036a5
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
6 changes: 5 additions & 1 deletion src/components/views/auth/LoginWithQRFlow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,11 @@ export default class LoginWithQRFlow extends React.Component<IProps> {
<p>{_t("Scan the QR code below with your device that's signed out.")}</p>
<ol>
<li>{_t("Start at the sign in screen")}</li>
<li>{_t("Select 'Scan QR code'")}</li>
<li>
{_t("Select '%(scanQRCode)s'", {
scanQRCode: _t("Scan QR code"),
})}
</li>
<li>{_t("Review and approve the sign in")}</li>
</ol>
{code}
Expand Down
6 changes: 5 additions & 1 deletion src/components/views/dialogs/IntegrationsDisabledDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ export default class IntegrationsDisabledDialog extends React.Component<IProps>
title={_t("Integrations are disabled")}
>
<div className="mx_IntegrationsDisabledDialog_content">
<p>{_t("Enable 'Manage Integrations' in Settings to do this.")}</p>
<p>
{_t("Enable '%(manageIntegrations)s' in Settings to do this.", {
manageIntegrations: _t("Manage integrations"),
})}
</p>
</div>
<DialogButtons
primaryButton={_t("Settings")}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
},
)}
</div>
<div>{this.renderPersonalBanListRules()}</div>
Expand Down
7 changes: 4 additions & 3 deletions src/i18n/strings/en_EN.json
Original file line number Diff line number Diff line change
Expand Up @@ -1602,7 +1602,7 @@
"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.",
"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",
Expand Down Expand Up @@ -2848,7 +2848,7 @@
"Waiting for partner to confirm...": "Waiting for partner to confirm...",
"Incoming Verification Request": "Incoming Verification Request",
"Integrations are disabled": "Integrations are disabled",
"Enable 'Manage Integrations' in Settings to do this.": "Enable 'Manage Integrations' in Settings to do this.",
"Enable '%(manageIntegrations)s' in Settings to do this.": "Enable '%(manageIntegrations)s' in Settings to do this.",
"Integrations not allowed": "Integrations not allowed",
"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.",
"To continue, use Single Sign On to prove your identity.": "To continue, use Single Sign On to prove your identity.",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit fa036a5

Please sign in to comment.