1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

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

View File

@ -88,7 +88,7 @@ def update_catalogs(resources=None, languages=None):
os.chdir(os.path.join(os.getcwd(), 'django')) os.chdir(os.path.join(os.getcwd(), 'django'))
print("Updating main en catalog") 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')) _check_diff('core', os.path.join(os.getcwd(), 'conf', 'locale'))
# Contrib catalogs # Contrib catalogs
@ -96,9 +96,9 @@ def update_catalogs(resources=None, languages=None):
os.chdir(os.path.join(dir_, '..')) os.chdir(os.path.join(dir_, '..'))
print("Updating en catalog in %s" % dir_) print("Updating en catalog in %s" % dir_)
if name.endswith('-js'): if name.endswith('-js'):
call_command('makemessages', locale='en', domain='djangojs') call_command('makemessages', locale=['en'], domain='djangojs')
else: else:
call_command('makemessages', locale='en') call_command('makemessages', locale=['en'])
_check_diff(name, dir_) _check_diff(name, dir_)