mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 17:36:05 +00:00
feat(locale): the panel is translated into Simplified Chinese
The Chinese catalog had not been extracted since 2023: of the panel's
1749 messages, 878 were missing and 455 carried old fuzzy guesses, and
some of those marked done said something else ("Delete API token" read
"Delete SSH key").
Every message is translated again, with one glossary for the panel's
terms, placeholders and markup checked against the English, and the
panel offers Simplified Chinese again. The CI check covers it too.
One message of the VM page (the console password's help) never reached
any catalog: its escaped quotes cut it short at extraction. It is
written with single quotes now, and translated in both catalogs.
This commit is contained in:
parent
225411c938
commit
a2db0990ba
9 changed files with 7202 additions and 4982 deletions
|
|
@ -741,9 +741,9 @@ It lists the dead keys it leaves out: a character only a dead key types cannot b
|
|||
The panel is translated into the languages of `LANGUAGES` in `settings.py`, each with a full catalog in `locale/`. A new or changed text needs its translation in each before CI passes (needs `gettext`):
|
||||
|
||||
```bash
|
||||
python manage.py makemessages -l tr --no-obsolete --ignore=staticfiles --ignore=.venv
|
||||
# translate the new and fuzzy entries of locale/tr/LC_MESSAGES/django.po
|
||||
python manage.py compilemessages -l tr
|
||||
python manage.py makemessages -l tr -l zh --no-obsolete --ignore=staticfiles --ignore=.venv
|
||||
# translate the new and fuzzy entries of locale/tr/LC_MESSAGES/django.po and locale/zh/LC_MESSAGES/django.po
|
||||
python manage.py compilemessages -l tr -l zh
|
||||
```
|
||||
|
||||
### Running tests
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue