mirror of
https://github.com/django/django.git
synced 2025-07-04 09:49:12 +00:00
i18n: added gettext_noop support to the xgettext call in make-messages.py
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@832 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
51a691c9c0
commit
22a8771572
@ -75,7 +75,7 @@ for (dirpath, dirnames, filenames) in os.walk("."):
|
||||
open(os.path.join(dirpath, '%s.py' % file), "wb").write(templateize(src))
|
||||
thefile = '%s.py' % file
|
||||
if verbose: sys.stdout.write('processing file %s in %s\n' % (file, dirpath))
|
||||
cmd = 'xgettext %s -d %s -L Python -o - "%s"' % (
|
||||
cmd = 'xgettext %s -d %s -L Python --keyword=gettext_noop -o - "%s"' % (
|
||||
os.path.exists(potfile) and '--omit-header' or '', domain, os.path.join(dirpath, thefile))
|
||||
msgs = os.popen(cmd, 'r').read()
|
||||
if thefile != file:
|
||||
|
Loading…
x
Reference in New Issue
Block a user