From b61aee47fc632730ac4cbfccdc6961e743be5dc1 Mon Sep 17 00:00:00 2001 From: Georg Bauer Date: Thu, 13 Oct 2005 14:49:48 +0000 Subject: [PATCH] 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 --- 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 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:]