Skip to content
Snippets Groups Projects
Commit 6cf7efb4 authored by kwadronaut's avatar kwadronaut :speech_balloon:
Browse files

Update transifex api

transifex dropped support for their v2 API. Instead of using the
makefile to fetch new translations, you can now use their cli tool.
parent ec3f2714
No related branches found
No related tags found
1 merge request!167Update transifex api
Pipeline #151533 failed
[main]
host = https://rest.api.transifex.com
lang_map = es_AR:es-rAR, fa_IR:fa-rIR, kn_IN:kn-rIN, pt_BR:pt-rBR, pt_PT:pt-rPT, zh_CN:zh-rCN, zh_TW:zh-rTW, nb:no
[o:otf:p:bitmask:r:bitmask-desktop]
source_file = gui/i18n/base.ts
type = QT
resource_name = LEAP Desktop VPN
file_filter = gui/i18n/main_<lang>.ts
minimum_perc = 80
......@@ -11,12 +11,17 @@ When a string has being modified you need to regenerate the locales:
```
To fetch the translations from transifex (API\_TOKEN is the transifex API token):
To fetch the translations from transifex you need to use the Transifex cli:
https://developers.transifex.com/docs/cli and an api (API\_TOKEN is the transifex API
token)
```
API_TOKEN='xxxxxxxxxxx' make locales
API_TOKEN='xxxxxxxxxxx' tx pull
```
If you want to add a new language create an empty file `gui/i18n/main_$lang.ts` before running `make locales`.
If you want to add a new language you can:
```
API_TOKEN='xxxxxxxxxxx' tx pull -a
```
Testing the translations
------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment