summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorGeorg Bauer <gb@hugo.westfalen.de>2006-01-03 22:29:56 +0000
committerGeorg Bauer <gb@hugo.westfalen.de>2006-01-03 22:29:56 +0000
commit839bcfe33059e43c382bdc5204cd08fa185a0bd6 (patch)
treea3d5bfc5352f16198434d22e028edf05dc879716 /django
parent2bd833d4624a30f1412d3b8abc031e559f49117f (diff)
fixes #1161 - spaces in filenames should now be handled better (filename parameters are enclosed in "")
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1814 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
-rwxr-xr-xdjango/bin/compile-messages.py2
-rwxr-xr-xdjango/bin/make-messages.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/django/bin/compile-messages.py b/django/bin/compile-messages.py
index 0b5127f6b2..30a92737d8 100755
--- a/django/bin/compile-messages.py
+++ b/django/bin/compile-messages.py
@@ -19,6 +19,6 @@ for (dirpath, dirnames, filenames) in os.walk(basedir):
if file.endswith('.po'):
sys.stderr.write('processing file %s in %s\n' % (file, dirpath))
pf = os.path.splitext(os.path.join(dirpath, file))[0]
- cmd = 'msgfmt -o %s.mo %s.po' % (pf, pf)
+ cmd = 'msgfmt -o "%s.mo" "%s.po"' % (pf, pf)
os.system(cmd)
diff --git a/django/bin/make-messages.py b/django/bin/make-messages.py
index e8c21db70f..bb43ca2f9b 100755
--- a/django/bin/make-messages.py
+++ b/django/bin/make-messages.py
@@ -118,7 +118,7 @@ for lang in languages:
os.unlink(os.path.join(dirpath, thefile))
if os.path.exists(potfile):
- (stdin, stdout, stderr) = os.popen3('msguniq %s' % potfile, 'b')
+ (stdin, stdout, stderr) = os.popen3('msguniq "%s"' % potfile, 'b')
msgs = stdout.read()
errors = stderr.read()
if errors:
@@ -127,7 +127,7 @@ for lang in languages:
sys.exit(8)
open(potfile, 'w').write(msgs)
if os.path.exists(pofile):
- (stdin, stdout, stderr) = os.popen3('msgmerge -q %s %s' % (pofile, potfile), 'b')
+ (stdin, stdout, stderr) = os.popen3('msgmerge -q "%s" "%s"' % (pofile, potfile), 'b')
msgs = stdout.read()
errors = stderr.read()
if errors: