Skip to content

Commit

Permalink
Fixed python scripts/manage_translations.py update_catalogs.
Browse files Browse the repository at this point in the history
It used to generate languages 'e' and 'n'.
  • Loading branch information
aaugustin committed Jan 4, 2014
1 parent c717ebb commit 2692a0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/manage_translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,17 @@ 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
for name, dir_ in contrib_dirs:
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_)


Expand Down

0 comments on commit 2692a0c

Please sign in to comment.