diff --git a/README.rst b/README.rst index 77a8e80..00df420 100644 --- a/README.rst +++ b/README.rst @@ -85,6 +85,12 @@ Details of the config.yaml file are in `edx-platform/conf/locale/config.yaml Changes ======= +v0.4.8 +------- + +* Updated transifex to pull files from Transifex that are atleast 3% done + previous value was 10%. + v0.4.7 ------- diff --git a/i18n/__init__.py b/i18n/__init__.py index 4299bb6..dbeb59c 100644 --- a/i18n/__init__.py +++ b/i18n/__init__.py @@ -6,7 +6,7 @@ from . import config -__version__ = '0.4.7' +__version__ = '0.4.8' class Runner: diff --git a/i18n/transifex.py b/i18n/transifex.py index 0b15b12..c495240 100755 --- a/i18n/transifex.py +++ b/i18n/transifex.py @@ -56,7 +56,7 @@ def pull(configuration, *resources): print("Pulling conf/locale/config.yaml:locales from Transifex...") for lang in configuration.translated_locales: - cmd = 'tx pull -f --mode=reviewed --minimum-perc=10 -l {lang}'.format(lang=lang) + cmd = 'tx pull -f --mode=reviewed --minimum-perc=3 -l {lang}'.format(lang=lang) if resources: for resource in resources: execute(cmd + ' -r {resource}'.format(resource=resource)) diff --git a/setup.py b/setup.py index 1876683..b7f6a51 100755 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ setup( name='edx-i18n-tools', - version='0.4.7', + version='0.4.8', description='edX Internationalization Tools', author='edX', author_email='oscm@edx.org', diff --git a/tests/test_transifex.py b/tests/test_transifex.py index 2682580..b564730 100644 --- a/tests/test_transifex.py +++ b/tests/test_transifex.py @@ -59,9 +59,9 @@ def test_pull_command(self): transifex.pull(self.configuration) call_args = [ - ('tx pull -f --mode=reviewed --minimum-perc=10 -l en',), - ('tx pull -f --mode=reviewed --minimum-perc=10 -l fr',), - ('tx pull -f --mode=reviewed --minimum-perc=10 -l zh_CN',), + ('tx pull -f --mode=reviewed --minimum-perc=3 -l en',), + ('tx pull -f --mode=reviewed --minimum-perc=3 -l fr',), + ('tx pull -f --mode=reviewed --minimum-perc=3 -l zh_CN',), ] self.assertEqual( call_args, @@ -74,12 +74,12 @@ def test_pull_command_with_resources(self): # conf/locale/config.yaml specifies two non-source locales, 'fr' and 'zh_CN' call_args = [ - ('tx pull -f --mode=reviewed --minimum-perc=10 -l en -r foo.1',), - ('tx pull -f --mode=reviewed --minimum-perc=10 -l en -r foo.2',), - ('tx pull -f --mode=reviewed --minimum-perc=10 -l fr -r foo.1',), - ('tx pull -f --mode=reviewed --minimum-perc=10 -l fr -r foo.2',), - ('tx pull -f --mode=reviewed --minimum-perc=10 -l zh_CN -r foo.1',), - ('tx pull -f --mode=reviewed --minimum-perc=10 -l zh_CN -r foo.2',), + ('tx pull -f --mode=reviewed --minimum-perc=3 -l en -r foo.1',), + ('tx pull -f --mode=reviewed --minimum-perc=3 -l en -r foo.2',), + ('tx pull -f --mode=reviewed --minimum-perc=3 -l fr -r foo.1',), + ('tx pull -f --mode=reviewed --minimum-perc=3 -l fr -r foo.2',), + ('tx pull -f --mode=reviewed --minimum-perc=3 -l zh_CN -r foo.1',), + ('tx pull -f --mode=reviewed --minimum-perc=3 -l zh_CN -r foo.2',), ] self.assertEqual( call_args,