summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2007-09-15 05:14:16 +0000
committerAdrian Holovaty <adrian@holovaty.com>2007-09-15 05:14:16 +0000
commit604504896c4290f1bfa45448bc6c4f553df0a801 (patch)
tree09a5a17bd152f719cb89a3007602b0f3093939cc
parent5c3905cf48813d63764f3049e79aa2d668b53be1 (diff)
Fixed #3088 -- Filter parameters are now translated in blocktrans. Thanks, permon
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6263 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/utils/translation/trans_real.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/django/utils/translation/trans_real.py b/django/utils/translation/trans_real.py
index 765152afce..5fff1ea63a 100644
--- a/django/utils/translation/trans_real.py
+++ b/django/utils/translation/trans_real.py
@@ -491,6 +491,8 @@ def templatize(src):
elif g[0] == "'": g = g.strip("'")
out.write(' gettext(%r) ' % g)
elif bmatch:
+ for fmatch in constant_re.findall(t.contents):
+ out.write(' _(%s) ' % fmatch)
intrans = True
inplural = False
singular = []