mirror of
https://github.com/izzy2lost/RetroArch.git
synced 2026-03-26 16:42:27 -07:00
Internationalization Workflow (Draft)
Steps
- Developers update strings in
msg_hash_us.h. - Developers (can set a cron job) run
./h2json.py msg_hash_us.hto generatemsg_hash_us.json. It is just a convenient format that is supported by Weblate/Crowdin/Transifex and doesn't need to be inversion control. - Developers (can set a cron job) upload
msg_hash_us.jsonto Weblate/Crowdin/Transifex. - Translators translate strings on Weblate/Crowdin/Transifex.
- Developers (can set a cron job) download
msg_hash_xx.jsonfiles. - Developers (can set a cron job) run
./json2h.py msg_hash_xx.jsonto 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.yamlfile from someone who have crowdin admin accounts - Add cron job
cd path/to/retroarch/intl && ./crowin_sync.sh