Skip to content

Commit

Permalink
unicode: Updated make-messages.py to process our variations of the
Browse files Browse the repository at this point in the history
u[n]gettext() functions.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5083 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
malcolmt committed Apr 26, 2007
1 parent 0da72ff commit 511b259
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/bin/make-messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 511b259

Please sign in to comment.