From 0dedf3f2cf46198c55dc3b82062cef7240516f49 Mon Sep 17 00:00:00 2001 From: Elrond Date: Tue, 6 Mar 2012 14:49:42 +0100 Subject: [PATCH] Translate less html. Instead of translating

TEXT

just mark TEXT for translation. That way formatting changes can be done without affecting the translations. --- .../templates/mediagoblin/user_pages/media.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html index 11daaac7..f4d7220e 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/media.html +++ b/mediagoblin/templates/mediagoblin/user_pages/media.html @@ -42,12 +42,14 @@ {% endblock mediagoblin_head %} {% block mediagoblin_content %} - {% trans user_url=request.urlgen( +

+ {%- trans user_url=request.urlgen( 'mediagoblin.user_pages.user_home', user=media.get_uploader.username), username=media.get_uploader.username -%} -

❖ Browsing media by {{ username }}

- {%- endtrans %} + ❖ Browsing media by {{username}} + {%- endtrans -%} +

{% include "mediagoblin/utils/prev_next.html" %}
@@ -152,7 +154,7 @@ - {{ comment_author.username }} + {{ comment_author.username -}} {% trans %}at{% endtrans %}