From 22a87715721daa3797bafeac2f17db5b0746796e Mon Sep 17 00:00:00 2001 From: Georg Bauer Date: Tue, 11 Oct 2005 09:59:14 +0000 Subject: [PATCH] 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 --- django/bin/make-messages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/bin/make-messages.py b/django/bin/make-messages.py index d7d32071f9..3aa9389a47 100755 --- a/django/bin/make-messages.py +++ b/django/bin/make-messages.py @@ -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: