From a6b1b32074c86ce137b8b13bf7acd742aad8b954 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20Garc=C3=ADa=20Amor?= <ogarcia@connectical.com> Date: Mon, 13 Mar 2023 10:08:23 +0100 Subject: [PATCH] Fixes Transifex pipeline Transifex has changed the client from Python to Go and the API level so the old client has stopped working. --- .gitlab-ci.yml | 9 ++++----- .tx/config | 8 ++++---- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f249c130..0c775025 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -66,12 +66,11 @@ Assemble Release: Push Translations: stage: Translations - image: cimg/python:3.11 + image: alpine:latest script: - - python -m venv ~/venv - - . ~/venv/bin/activate - - pip install transifex-client - - echo $'[https://www.transifex.com]\nhostname = https://www.transifex.com\nusername = api\npassword = '"${TRANSIFEX_PASSWORD}"$'\n' > ~/.transifexrc + - wget -O /tmp/tx-linux-amd64.tar.gz https://github.com/transifex/cli/releases/latest/download/tx-linux-amd64.tar.gz + - tar xf /tmp/tx-linux-amd64.tar.gz -C /tmp + - mv /tmp/tx /usr/bin/tx - tx push -s rules: - if: $CI_COMMIT_REF_NAME == "develop" && $CI_PROJECT_ID == "37671564" diff --git a/.tx/config b/.tx/config index 8a01120b..53098b13 100644 --- a/.tx/config +++ b/.tx/config @@ -1,10 +1,10 @@ [main] -host = https://www.transifex.com -lang_map = nl_NL:nl,pl_PL:pl,fr_CA:fr-rCA,pt_BR:pt-rBR,pt_PT:pt,zh_CN:zh-rCN,zh_HK:zh-rHK,zh_TW:zh-rTW,da_DK:da-rDK,de_DE:de,tr_TR:tr,fr_FR:fr,es_ES:es,hu_HU:hu,sv_SE:sv-rSE,bg_BG:bg,el_GR:el,kn_IN:kn-rIN,cs_CZ:cs,sr:sr,he:iw,id:in,lt_LT:lt,km_KH:km-rKH,th_TH:th,ru_RU:ru,it_IT:it +host = https://www.transifex.com +lang_map = fr_CA: fr-rCA, fr_FR: fr, es_ES: es, km_KH: km-rKH, th_TH: th, pl_PL: pl, zh_TW: zh-rTW, ru_RU: ru, pt_BR: pt-rBR, pt_PT: pt, he: iw, zh_HK: zh-rHK, da_DK: da-rDK, de_DE: de, bg_BG: bg, sr: sr, nl_NL: nl, zh_CN: zh-rCN, sv_SE: sv-rSE, el_GR: el, lt_LT: lt, it_IT: it, hu_HU: hu, kn_IN: kn-rIN, tr_TR: tr, cs_CZ: cs, id: in -[ultrasonic.app] +[o:ultrasonic:p:ultrasonic:r:app] file_filter = ultrasonic/src/main/res/values-<lang>/strings.xml source_file = ultrasonic/src/main/res/values/strings.xml source_lang = en -type = ANDROID +type = ANDROID