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 /Makefile | |
parent | c5f33ab52e7ea08864765a7af78f17e6f7910575 (diff) |
[locales] improve the locales workflow and document it
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -41,7 +41,7 @@ lang_list := $(subst $(space),,$(foreach lang,$(LANGS),$(lang),)) locales: $(foreach lang,$(LANGS),get_$(lang)) cmd/bitmask-vpn/catalog.go generate_locales: - gotext update ./pkg/systray ./pkg/bitmask + gotext update -lang=$(lang_list) ./pkg/systray ./pkg/bitmask make -C tools/transifex locales/%/out.gotext.json: pkg/systray/systray.go pkg/systray/notificator.go pkg/bitmask/standalone.go pkg/bitmask/bitmaskd.go @@ -50,6 +50,6 @@ locales/%/out.gotext.json: pkg/systray/systray.go pkg/systray/notificator.go pkg cmd/bitmask-vpn/catalog.go: $(foreach lang,$(LANGS),locales/$(lang)/messages.gotext.json) gotext update -lang=$(lang_list) -out cmd/bitmask-vpn/catalog.go ./pkg/systray ./pkg/bitmask -get_%: +get_%: locales/%/out.gotext.json make -C tools/transifex build curl -L -X GET --user "api:${API_TOKEN}" "https://www.transifex.com/api/2/project/bitmask/resource/RiseupVPN/translation/${subst -,_,$*}/?file" | tools/transifex/transifex t2g locales/$*/ |