Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable automatically-generated "pseudolocale" #1598

Closed
4 of 5 tasks
cfm opened this issue Nov 22, 2022 · 1 comment · Fixed by #1620
Closed
4 of 5 tasks

enable automatically-generated "pseudolocale" #1598

cfm opened this issue Nov 22, 2022 · 1 comment · Fixed by #1620
Assignees
Labels
⚙️ Tooling Improving maintainability and increasing maintainer joy : ) i18n maintainer quality of life Usually small enhancements to make maintenance easier.

Comments

@cfm
Copy link
Member

cfm commented Nov 22, 2022

Description

A Weblate "pseudolocale" would help us (manually) spot strings not correctly marked for translation during QA.

See also: freedomofpress/securedrop#6690

How will this impact SecureDrop users?

No direct impact to users.

How would this affect the SecureDrop Workstation threat model?

No changes to the current internationalization flow and its security model.

User Stories

As a QA tester, I want to be able to tell at a glance whether a string in the Client has not yet been translated or is incorrectly not marked for translation.


Testing

In freedomofpress/securedrop-client-i18n-sandbox from weblate-sandbox.securedrop.org:

  1. Pseudolocale defined: https://weblate-sandbox.securedrop.org/projects/securedrop/securedrop-client/en_XA/
  2. Pseudolocale generation configured
  3. export LANG=en_XA; ./run.sh works as expected

Production

In freedomofpress/securedrop-client from weblate.securedrop.org:

@cfm cfm added the i18n label Nov 22, 2022
@cfm cfm self-assigned this Nov 22, 2022
@gonzalo-bulnes gonzalo-bulnes added maintainer quality of life Usually small enhancements to make maintenance easier. ⚙️ Tooling Improving maintainability and increasing maintainer joy : ) labels Nov 22, 2022
@cfm
Copy link
Member Author

cfm commented Jan 13, 2023

Following freedomofpress/securedrop#6690, this is done pending the documentation proposed in #1620. Happily, because we don't use Babel here, we're able to use Weblate's suggested (although not CLDR-valid) en_XA pseudolocale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚙️ Tooling Improving maintainability and increasing maintainer joy : ) i18n maintainer quality of life Usually small enhancements to make maintenance easier.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants