From 4dad098bc18da99b9a4d4217f05449d962ad8671 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Sat, 15 Oct 2022 18:39:07 +0100 Subject: [PATCH] Use new Transifex CLI The old Transifex Command-Line Tool is considered deprecated (as of January 2022) and will sunset on Nov 30, 2022. See: https://github.com/transifex/transifex-client/pull/340 --- README.md | 3 +++ update-translations.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7101d9a..327c439 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,9 @@ It will do the following automatically: - Post-process them into valid and committable format - Add missing translations to the build system (TODO) +To be able to pull translation files from the Transifex website, it needs +the [Transifex CLI](https://github.com/transifex/cli). + clang-format ------------ diff --git a/update-translations.py b/update-translations.py index 93957ad..57d87f3 100755 --- a/update-translations.py +++ b/update-translations.py @@ -62,7 +62,7 @@ def remove_current_translations(): os.remove(name + ORIGINAL_SUFFIX) def fetch_all_translations(): - if subprocess.call([TX, 'pull', '-f', '-a']): + if subprocess.call([TX, 'pull', '--translations', '--force', '--all']): print('Error while fetching translations', file=sys.stderr) sys.exit(1)