Skip to content

Commit

Permalink
Merge #142: Use new Transifex CLI
Browse files Browse the repository at this point in the history
4dad098 Use new Transifex CLI (Hennadii Stepanov)

Pull request description:

  The old Transifex Command-Line Tool is considered deprecated (as of January 2022) and will sunset on Nov 30, 2022.

  See: transifex/transifex-client#340

  A PR with accompanying changes to `.tx/config`: bitcoin/bitcoin#26321

Top commit has no ACKs.

Tree-SHA512: daab5058a9cc8de9df8bdcb92e818c77304b25f8d606b23def6b8afed4cf295af8192734dd80146d9ee0f449b5fae58c683b6695bab3a6531a5964ee28b114a7
  • Loading branch information
fanquake committed Oct 31, 2022
2 parents 112deab + 4dad098 commit 0b46792
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
------------

Expand Down
2 changes: 1 addition & 1 deletion update-translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 0b46792

Please sign in to comment.