diff options
| author | Georg Bauer <gb@hugo.westfalen.de> | 2005-10-07 23:20:24 +0000 |
|---|---|---|
| committer | Georg Bauer <gb@hugo.westfalen.de> | 2005-10-07 23:20:24 +0000 |
| commit | 2442ceaa3f57093a48bca86a28c36230f8a10010 (patch) | |
| tree | 13f27cc8581ded498f9c8708958a43f459ba83f7 /django/bin | |
| parent | 9fb343a443ecc949309de9abd795a65b5d0a9b39 (diff) | |
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
Diffstat (limited to 'django/bin')
| -rwxr-xr-x | django/bin/make-messages.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/django/bin/make-messages.py b/django/bin/make-messages.py index f8d822f5ec..6b72e04211 100755 --- a/django/bin/make-messages.py +++ b/django/bin/make-messages.py @@ -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) |
