summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Bauer <gb@hugo.westfalen.de>2005-10-05 10:34:54 +0000
committerGeorg Bauer <gb@hugo.westfalen.de>2005-10-05 10:34:54 +0000
commita3899f2226202ee89319e60b39d98195d7f4051d (patch)
treeaf91947664f1a97176b8c83494fce8e15c074adc
parentce1e5ca769506381b518deb5ab6e39dff533fd2d (diff)
i18n: make-messages now supports directory names with blanks in them
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@777 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rwxr-xr-xdjango/bin/make-messages.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/bin/make-messages.py b/django/bin/make-messages.py
index a97297c08b..275747ea4e 100755
--- a/django/bin/make-messages.py
+++ b/django/bin/make-messages.py
@@ -60,9 +60,9 @@ for (dirpath, dirnames, filenames) in os.walk("."):
thefile = '%s.py' % file
if verbose: sys.stdout.write('processing file %s in %s\n' % (file, dirpath))
if os.path.isfile(lf):
- cmd = 'xgettext -j -d %s -L Python -p %s %s' % (domain, basedir, os.path.join(dirpath, thefile))
+ cmd = 'xgettext -j -d %s -L Python -p "%s" "%s"' % (domain, basedir, os.path.join(dirpath, thefile))
else:
- cmd = 'xgettext -d %s -L Python -p %s %s' % (domain, basedir, os.path.join(dirpath, thefile))
+ cmd = 'xgettext -d %s -L Python -p "%s" "%s"' % (domain, basedir, os.path.join(dirpath, thefile))
os.system(cmd)
if thefile != file:
os.unlink(os.path.join(dirpath, thefile))