Make image-for-media_title alt tag translatable
authorChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 18 Apr 2012 13:48:17 +0000 (08:48 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 18 Apr 2012 13:48:17 +0000 (08:48 -0500)
mediagoblin/templates/mediagoblin/user_pages/media.html

index eadf712eb0432f6b681be73171a77ab067c29863..4d41f19e5e0d0f25564014375ed3a9d5f71e7594 100644 (file)
                         media.media_files['original']) }}">
             <img class="media_image"
                  src="{{ display_media }}"
-                 alt="Image for {{ media.title }}" />
+                 alt="{% trans media_title=media.title -%}
+                        Image for {{ media_title }}{% endtrans %}" />
           </a>
         {% else %}
           <img class="media_image"
                src="{{ display_media }}"
-               alt="Image for {{ media.title }}" />
+               alt="{% trans media_title=media.title -%}
+                      Image for {{ media_title }}{% endtrans %}" />
         {% endif %}
       {% endblock %}
     </div>