diff options
| author | Georg Bauer <gb@hugo.westfalen.de> | 2005-10-13 14:49:48 +0000 |
|---|---|---|
| committer | Georg Bauer <gb@hugo.westfalen.de> | 2005-10-13 14:49:48 +0000 |
| commit | b61aee47fc632730ac4cbfccdc6961e743be5dc1 (patch) | |
| tree | a67551fca31de4752fd94614fa5ed5307859cca8 | |
| parent | b34e844c2f8c694b03b3ab5879f413bcd9c10781 (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-x | django/bin/make-messages.py | 2 |
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:] |
