mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 16:39:43 +00:00
1.1 KiB
1.1 KiB
Internationalization Workflow (Draft)
Steps
- Developers update strings in
msg_hash_us.h
. - Developers (can set a cron job) run
./h2json.py msg_hash_us.h
to generatemsg_hash_us.json
. It is just a convenient format that is supported by Weblate/Crowdin/Transifex and doesn't need to be in version control. - Developers (can set a cron job) upload
msg_hash_us.json
to Weblate/Crowdin/Transifex. - Translators translate strings on Weblate/Crowdin/Transifex.
- Developers (can set a cron job) download
msg_hash_xx.json
files. - Developers (can set a cron job) run
./json2h.py msg_hash_xx.json
to generatemsg_hash_xx.h
.
Pros
- No new dependencies.
- No performance impact.
- Don't require translators to know how to use Git, how to read C code and how to create Pull Request.
- Translators will be informed whenever a source string changes.
Cron job setup
- Install crowdin cli tool
- Get the
intl/crowdin.yaml
file from someone who have crowdin admin accounts - Add cron job
cd path/to/retroarch/intl && ./crowin_sync.sh