Skip to content

Commit

Permalink
Don't try and translate c.site.title
Browse files Browse the repository at this point in the history
We won't have translations for user-entered data
  • Loading branch information
kemitche committed Dec 1, 2011
1 parent 502ebd2 commit ea00e49
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
8 changes: 1 addition & 7 deletions r2/r2/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,7 @@
</%def>

<%def name="Title()">
<%
try:
title = _(c.site.title)
except UnicodeDecodeError:
title = c.site.title
%>
${title}
${c.site.title}
</%def>

<%def name="keywords()">
Expand Down
2 changes: 1 addition & 1 deletion r2/r2/templates/base.mobile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ ${next.body()}


<%def name="Title()">
${_(c.site.title)}
${c.site.title}
</%def>


Expand Down
8 changes: 1 addition & 7 deletions r2/r2/templates/base.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,6 @@
</rss>

<%def name="Title()">
<%
try:
title = _(c.site.title)
except UnicodeDecodeError:
title = c.site.title
%>
${title}
${c.site.title}
</%def>

0 comments on commit ea00e49

Please sign in to comment.