From 218954d4d937a9c775faed22aa12d42548a1b5f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20Garc=C3=ADa=20Amor?= Date: Mon, 13 Mar 2023 07:45:53 +0000 Subject: [PATCH] Revert "Migrates translations to Weblate" --- .gitlab-ci.yml | 13 +++++++++++++ .tx/config | 10 ++++++++++ CONTRIBUTING.md | 2 +- 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .tx/config diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e0d48ad6..f249c130 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,6 +19,7 @@ variables: stages: - Check - Assemble + - Translations - APK - Publish - Release @@ -63,6 +64,18 @@ Assemble Release: rules: - if: $CI_COMMIT_REF_NAME == "develop" || $CI_COMMIT_REF_NAME == "master" || $CI_COMMIT_TAG || $CI_PROJECT_ID != "37671564" +Push Translations: + stage: Translations + image: cimg/python:3.11 + 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 + - tx push -s + rules: + - if: $CI_COMMIT_REF_NAME == "develop" && $CI_PROJECT_ID == "37671564" + Generate Signed Develop APK: stage: APK script: diff --git a/.tx/config b/.tx/config new file mode 100644 index 00000000..8a01120b --- /dev/null +++ b/.tx/config @@ -0,0 +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 + +[ultrasonic.app] +file_filter = ultrasonic/src/main/res/values-/strings.xml +source_file = ultrasonic/src/main/res/values/strings.xml +source_lang = en +type = ANDROID + diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7f528800..2343084a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -11,7 +11,7 @@ issue](https://gitlab.com/ultrasonic/ultrasonic/issues/new). ## Contributing Translations Interested in help to translate Ultrasonic? You can contribute in our -[Weblate team](https://hosted.weblate.org/projects/ultrasonic/). +[Transifex team](https://www.transifex.com/ultrasonic/ultrasonic/). ## Contributing Code