summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Bauer <gb@hugo.westfalen.de>2005-10-13 14:49:48 +0000
committerGeorg Bauer <gb@hugo.westfalen.de>2005-10-13 14:49:48 +0000
commitb61aee47fc632730ac4cbfccdc6961e743be5dc1 (patch)
treea67551fca31de4752fd94614fa5ed5307859cca8
parentb34e844c2f8c694b03b3ab5879f413bcd9c10781 (diff)
i18n: fixed bug in the templateize function to turn templates into something grokable for xgettext
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@852 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 3aa9389a47..5b462b1b48 100755
--- a/django/bin/make-messages.py
+++ b/django/bin/make-messages.py
@@ -48,7 +48,7 @@ def templateize(src):
start = src.find('{')
if start >= 0 and src[start+1] in ('{', '%'):
o.append(blank(src[:start]))
- end = src.find(src[start+1] == '{' and '}' or '%', start)
+ end = src.find(src[start+1] == '{' and '}}' or '%}', start)
if end >= 0:
o.append(src[start:end+2])
src = src[end+2:]