diff options
Diffstat (limited to 'scripts/manage_translations.py')
| -rw-r--r-- | scripts/manage_translations.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/manage_translations.py b/scripts/manage_translations.py index 74534d47da..5397d35bae 100644 --- a/scripts/manage_translations.py +++ b/scripts/manage_translations.py @@ -114,7 +114,7 @@ def lang_stats(resources=None, languages=None): for name, dir_ in locale_dirs: print("\nShowing translations stats for '%s':" % name) - langs = sorted([d for d in os.listdir(dir_) if not d.startswith('_')]) + langs = sorted(d for d in os.listdir(dir_) if not d.startswith('_')) for lang in langs: if languages and lang not in languages: continue @@ -142,7 +142,7 @@ def fetch(resources=None, languages=None): # Transifex pull if languages is None: call('tx pull -r %(res)s -a -f --minimum-perc=5' % {'res': _tx_resource_for_name(name)}, shell=True) - target_langs = sorted([d for d in os.listdir(dir_) if not d.startswith('_') and d != 'en']) + target_langs = sorted(d for d in os.listdir(dir_) if not d.startswith('_') and d != 'en') else: for lang in languages: call('tx pull -r %(res)s -f -l %(lang)s' % { |
