From 2692a0c6217b1b5ea2730f5861cb96c991fc8673 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sat, 4 Jan 2014 23:06:50 +0100 Subject: [PATCH] Fixed `python scripts/manage_translations.py update_catalogs`. It used to generate languages 'e' and 'n'. --- scripts/manage_translations.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/manage_translations.py b/scripts/manage_translations.py index 83d5b87c87..078cc7f9bb 100644 --- a/scripts/manage_translations.py +++ b/scripts/manage_translations.py @@ -88,7 +88,7 @@ def update_catalogs(resources=None, languages=None): os.chdir(os.path.join(os.getcwd(), 'django')) print("Updating main en catalog") - call_command('makemessages', locale='en') + call_command('makemessages', locale=['en']) _check_diff('core', os.path.join(os.getcwd(), 'conf', 'locale')) # Contrib catalogs @@ -96,9 +96,9 @@ def update_catalogs(resources=None, languages=None): os.chdir(os.path.join(dir_, '..')) print("Updating en catalog in %s" % dir_) if name.endswith('-js'): - call_command('makemessages', locale='en', domain='djangojs') + call_command('makemessages', locale=['en'], domain='djangojs') else: - call_command('makemessages', locale='en') + call_command('makemessages', locale=['en']) _check_diff(name, dir_)