From 791cc62d4c8f5627b5616a50ab9d91d59cd601e9 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sun, 10 Oct 2010 17:54:20 +0000 Subject: [PATCH] Don't mark a TemplateSyntaxError in flatpages as being translatable. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14127 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/flatpages/templatetags/flatpages.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/django/contrib/flatpages/templatetags/flatpages.py b/django/contrib/flatpages/templatetags/flatpages.py index 5c76699b79..593f35c0e3 100644 --- a/django/contrib/flatpages/templatetags/flatpages.py +++ b/django/contrib/flatpages/templatetags/flatpages.py @@ -1,7 +1,6 @@ from django import template -from django.contrib.flatpages.models import FlatPage -from django.utils.translation import ugettext as _ from django.conf import settings +from django.contrib.flatpages.models import FlatPage register = template.Library() @@ -67,7 +66,7 @@ def get_flatpages(parser, token): {% get_flatpages '/about/' for someuser as about_pages %} """ bits = token.split_contents() - syntax_message = _("%(tag_name)s expects a syntax of %(tag_name)s " + syntax_message = ("%(tag_name)s expects a syntax of %(tag_name)s " "['url_starts_with'] [for user] as context_name" % dict(tag_name=bits[0])) # Must have at 3-6 bits in the tag