Django

Code

Changeset 799

Show
Ignore:
Timestamp:
10/07/05 18:20:24 (3 years ago)
Author:
hugo
Message:

i18n: make-messages.py now correctly handles creation of new languages

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/i18n/django/bin/make-messages.py

    r798 r799  
    7474msgs = os.popen('msguniq %s' % potfile, 'r').read() 
    7575open(potfile, 'w').write(msgs) 
    76 msgs = os.popen('msgmerge %s %s' % (pofile, potfile), 'r').read() 
     76if os.path.exists(pofile): 
     77    msgs = os.popen('msgmerge %s %s' % (pofile, potfile), 'r').read() 
    7778open(pofile, 'wb').write(msgs) 
    7879os.unlink(potfile)