Update transifex usage

This uses force mode to download po files, always. Normal operation is
to use the file modification date for comparison, which doesn't work
because of Git.

This also sets `onlyreviewed` mode, which will omit strings which are
not translated yet. This will result in the underlying source
translation being used in place, until the string is reviewed in
transifex.
This commit is contained in:
Anthony Johnson
2020-05-06 10:49:29 -06:00
parent a13a7b4b44
commit 7efb81803e
2 changed files with 2 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
file_filter = sphinx_rtd_theme/locale/<lang>/LC_MESSAGES/sphinx.po
source_file = sphinx_rtd_theme/locale/en/LC_MESSAGES/sphinx.po
source_lang = en
minimum_perc = 90
[main]
host = https://www.transifex.com

View File

@@ -80,7 +80,7 @@ class TransifexCommand(distutils.cmd.Command):
def run(self):
subprocess.run(['tx', 'push', '--source'], check=True)
subprocess.run(['tx', 'pull'], check=True)
subprocess.run(['tx', 'pull', '--mode', 'onlyreviewed', '-f'], check=True)
setup(