mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +00:00
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
This commit is contained in:
parent
ce1e5ca769
commit
a3899f2226
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user