Fixed `python scripts/manage_translations.py update_catalogs`.

It used to generate languages 'e' and 'n'.
This commit is contained in:
Aymeric Augustin 2014-01-04 23:06:50 +01:00
parent c717ebbfec
commit 2692a0c621
1 changed files with 3 additions and 3 deletions

View File

@ -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_)