update minimum-perc in config

This commit is contained in:
kdmukai 2025-12-18 17:36:49 -06:00
parent 620377da61
commit 984a2d156f
No known key found for this signature in database
GPG Key ID: 785B25305CD27F23
2 changed files with 14 additions and 7 deletions

View File

@ -5,7 +5,7 @@ host = https://app.transifex.com
file_filter = l10n/<lang>/LC_MESSAGES/messages.po
source_file = ../../../../l10n/messages.pot
type = PO
minimum_perc = 0
minimum_perc = 15
resource_name = messages.pot
replace_edited_strings = false
keep_translations = false

View File

@ -1,21 +1,28 @@
# SeedSigner Translations
## Transifex CLI
You can pull the latest translations directly from Transifex (requires a user with privleges to our Transifex project).
You can pull the latest translations directly from Transifex (requires a user with
privleges to our Transifex project).
Install the [Transifex CLI](https://developers.transifex.com/docs/cli).
[Create an API key](https://help.transifex.com/en/articles/6248858-generating-an-api-token) for your Transifex user.
[Create an API key](https://help.transifex.com/en/articles/6248858-generating-an-api-token)
for your Transifex user.
From the `seedsigner/src/seedsigner/resources/seedsigner-translations` dir run:
```bash
# --all, -a Whether to download all files (default: false)
# --minimum-perc value Specify the minimum acceptable percentage of a translation mode in order to download it. (default: -1)
tx pull --all --minimum-perc 15
# --all, -a Whether to download all files (default: false)
tx pull --all
```
Then from the SeedSigner project root, compile the catalogs to process the *.po files into *.mo:
The `.tx/config` is set to `minimum-perc = 15` (the CLI will skip any languages that fall
below this minimum percentage). You can manually override this by adding, for example,
`--minimum-perc 25` to require at least 25% translation completion.
Then from the SeedSigner project root, compile the catalogs to process the *.po files into
*.mo:
```bash
python setup.py compile_catalog
```