1
0
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:
Georg Bauer 2005-10-07 23:20:24 +00:00
parent 9fb343a443
commit 2442ceaa3f

View File

@ -73,6 +73,7 @@ for (dirpath, dirnames, filenames) in os.walk("."):
msgs = os.popen('msguniq %s' % potfile, 'r').read()
open(potfile, 'w').write(msgs)
if os.path.exists(pofile):
msgs = os.popen('msgmerge %s %s' % (pofile, potfile), 'r').read()
open(pofile, 'wb').write(msgs)
os.unlink(potfile)