Changeset 1814
- Timestamp:
- 01/03/06 16:29:56 (3 years ago)
- Files:
-
- django/trunk/django/bin/compile-messages.py (modified) (1 diff)
- django/trunk/django/bin/make-messages.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/bin/compile-messages.py
r1068 r1814 20 20 sys.stderr.write('processing file %s in %s\n' % (file, dirpath)) 21 21 pf = os.path.splitext(os.path.join(dirpath, file))[0] 22 cmd = 'msgfmt -o %s.mo %s.po' % (pf, pf)22 cmd = 'msgfmt -o "%s.mo" "%s.po"' % (pf, pf) 23 23 os.system(cmd) 24 24 django/trunk/django/bin/make-messages.py
r1529 r1814 119 119 120 120 if os.path.exists(potfile): 121 (stdin, stdout, stderr) = os.popen3('msguniq %s' % potfile, 'b')121 (stdin, stdout, stderr) = os.popen3('msguniq "%s"' % potfile, 'b') 122 122 msgs = stdout.read() 123 123 errors = stderr.read() … … 128 128 open(potfile, 'w').write(msgs) 129 129 if os.path.exists(pofile): 130 (stdin, stdout, stderr) = os.popen3('msgmerge -q %s %s' % (pofile, potfile), 'b')130 (stdin, stdout, stderr) = os.popen3('msgmerge -q "%s" "%s"' % (pofile, potfile), 'b') 131 131 msgs = stdout.read() 132 132 errors = stderr.read()
