summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-04-26 10:17:01 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-04-26 10:17:01 +0000
commit511b2591b70b1ef4eaaa629c13d5d284fabb5f4b (patch)
tree8bccdfb9a001b939848cb39ffcc4366246c9a9d1
parent0da72ff885ee4e21214e477f883497e30ddee404 (diff)
unicode: Updated make-messages.py to process our variations of the
u[n]gettext() functions. git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5083 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rwxr-xr-xdjango/bin/make-messages.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/bin/make-messages.py b/django/bin/make-messages.py
index 34fb68dcfe..2a0cbe41be 100755
--- a/django/bin/make-messages.py
+++ b/django/bin/make-messages.py
@@ -103,7 +103,7 @@ def make_messages():
open(os.path.join(dirpath, '%s.py' % file), "wb").write(templatize(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 --keyword=gettext_noop --keyword=gettext_lazy --keyword=ngettext_lazy --from-code UTF-8 -o - "%s"' % (
+ cmd = 'xgettext %s -d %s -L Python --keyword=gettext_noop --keyword=gettext_lazy --keyword=ngettext_lazy --keyword=ugettext_noop --keyword=ugettext_lazy --keyword=ungettext_lazy:1,2 --from-code UTF-8 -o - "%s"' % (
os.path.exists(potfile) and '--omit-header' or '', domain, os.path.join(dirpath, thefile))
(stdin, stdout, stderr) = os.popen3(cmd, 'b')
msgs = stdout.read()