mirror of
https://github.com/django/django.git
synced 2025-07-05 10:19:20 +00:00
i18n: make-messages.py now correctly handles creation of new languages
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@799 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
9fb343a443
commit
2442ceaa3f
@ -73,7 +73,8 @@ for (dirpath, dirnames, filenames) in os.walk("."):
|
||||
|
||||
msgs = os.popen('msguniq %s' % potfile, 'r').read()
|
||||
open(potfile, 'w').write(msgs)
|
||||
msgs = os.popen('msgmerge %s %s' % (pofile, potfile), 'r').read()
|
||||
if os.path.exists(pofile):
|
||||
msgs = os.popen('msgmerge %s %s' % (pofile, potfile), 'r').read()
|
||||
open(pofile, 'wb').write(msgs)
|
||||
os.unlink(potfile)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user