1
0
mirror of https://github.com/django/django.git synced 2025-07-05 18:29:11 +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,7 +73,8 @@ for (dirpath, dirnames, filenames) in os.walk("."):
msgs = os.popen('msguniq %s' % potfile, 'r').read() msgs = os.popen('msguniq %s' % potfile, 'r').read()
open(potfile, 'w').write(msgs) 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) open(pofile, 'wb').write(msgs)
os.unlink(potfile) os.unlink(potfile)