diff options
author | Ruben Pollan <meskio@sindominio.net> | 2019-03-12 21:05:29 +0100 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2019-03-19 22:14:36 +0100 |
commit | 3312593a4b9c4c9ef864af34bb012ffd3aa201db (patch) | |
tree | d3ecdc92e3d3f8f1eed50dd132e10eea52377bcd /README.md | |
parent | c5f33ab52e7ea08864765a7af78f17e6f7910575 (diff) |
[locales] improve the locales workflow and document it
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -78,17 +78,19 @@ In that case bitmask-systray assumes that you already have bitmaskd running. Run i18n ---- -Generate `locales/*` files: +When a string has being modified you need to regenerate the locales: ``` - $ make generate_locales LANGS="sjn tlh" + $ make generate_locales ``` -Edit the `locales/*/out.gotext.json` translations into `locales/*/messages.gotext.json`. - -To rebuild the locales: +To fetch the translations from transifex and rebuild the catalog.go (API\_TOKEN is the transifex API token): ``` - $ make locales + $ API_TOKEN='xxxxxxxxxxx' make locales ``` +There is some bug on gotext and the catalog.go generated doesn't have a package, you will need to edit +cmd/bitmask-vpn/catalog.go and to have a `package main` at the beginning of the file. + +If you want to add a new language create the folder `locales/$lang` before running `make locales`. Report an issue |