From ea00e4996b4f9ad34f32b510786235b0781c642e Mon Sep 17 00:00:00 2001 From: Keith Mitchell Date: Thu, 1 Dec 2011 11:03:24 -0800 Subject: [PATCH] Don't try and translate c.site.title We won't have translations for user-entered data --- r2/r2/templates/base.html | 8 +------- r2/r2/templates/base.mobile | 2 +- r2/r2/templates/base.xml | 8 +------- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/r2/r2/templates/base.html b/r2/r2/templates/base.html index 0f559cef3..3c481b6f7 100644 --- a/r2/r2/templates/base.html +++ b/r2/r2/templates/base.html @@ -63,13 +63,7 @@ <%def name="Title()"> -<% - try: - title = _(c.site.title) - except UnicodeDecodeError: - title = c.site.title - %> -${title} +${c.site.title} <%def name="keywords()"> diff --git a/r2/r2/templates/base.mobile b/r2/r2/templates/base.mobile index ab74e2028..f318c33e4 100644 --- a/r2/r2/templates/base.mobile +++ b/r2/r2/templates/base.mobile @@ -44,7 +44,7 @@ ${next.body()} <%def name="Title()"> -${_(c.site.title)} +${c.site.title} diff --git a/r2/r2/templates/base.xml b/r2/r2/templates/base.xml index ae4533b55..a8b5fd355 100644 --- a/r2/r2/templates/base.xml +++ b/r2/r2/templates/base.xml @@ -48,12 +48,6 @@ <%def name="Title()"> -<% - try: - title = _(c.site.title) - except UnicodeDecodeError: - title = c.site.title - %> -${title} +${c.site.title}