Translate less html.
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Tue, 6 Mar 2012 13:49:42 +0000 (14:49 +0100)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Tue, 6 Mar 2012 13:49:42 +0000 (14:49 +0100)
Instead of translating <p ...>TEXT</p> just mark TEXT for
translation. That way formatting changes can be done
without affecting the translations.

mediagoblin/templates/mediagoblin/user_pages/media.html

index 11daaac75d5cb2ac79de76af85a323dba2aab470..f4d7220ef4ca99df59ee4bd756735aaeb90589e2 100644 (file)
 {% endblock mediagoblin_head %}
 
 {% block mediagoblin_content %}
-  {% trans user_url=request.urlgen(
+  <p class="context">
+    {%- trans user_url=request.urlgen(
               'mediagoblin.user_pages.user_home',
               user=media.get_uploader.username),
               username=media.get_uploader.username -%}
-    <p class="context">❖ Browsing media by <a href="{{ user_url }}">{{ username }}</a></p>
-  {%- endtrans %}
+    ❖ Browsing media by <a href="{{user_url}}">{{username}}</a>
+    {%- endtrans -%}
+  </p>
   {% include "mediagoblin/utils/prev_next.html" %}
   <div class="media_pane">     
     <div class="media_image_container">
             <img src="{{ request.staticdirect('/images/icon_comment.png') }}" />
             <a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
                             user = comment_author.username) }}">
-              {{ comment_author.username }}
+              {{ comment_author.username -}}
             </a>
             {% trans %}at{% endtrans %}
             <a href="{{ request.urlgen('mediagoblin.user_pages.media_home.view_comment',