From: Elrond Date: Tue, 5 Feb 2013 15:50:35 +0000 (+0100) Subject: Rename {{title}} to {{media_title}}. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8c659fd95c6a1e2fa8f450447c52c9a1a8f39eb6;p=mediagoblin.git Rename {{title}} to {{media_title}}. Rename a variable in a translated string to make it easier for translators to know what they're dealing with. And add a block. --- diff --git a/mediagoblin/templates/mediagoblin/user_pages/media_collect.html b/mediagoblin/templates/mediagoblin/user_pages/media_collect.html index 7fd4b7eb..8cdb64fe 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/media_collect.html +++ b/mediagoblin/templates/mediagoblin/user_pages/media_collect.html @@ -24,17 +24,22 @@ src="{{ request.staticdirect('/js/collection_form_show.js') }}"></script> {% endblock %} -{% block mediagoblin_content %} +{% block title -%} + {% trans media_title=media.title -%} + Add “{{ media_title }}” to a collection + {%- endtrans %} — {{ super() }} +{%- endblock %} +{% block mediagoblin_content %} <form action="{{ request.urlgen('mediagoblin.user_pages.media_collect', user=media.get_uploader.username, media=media.id) }}" method="POST" enctype="multipart/form-data"> <div class="form_box"> <h1> - {%- trans title=media.title -%} - Add “{{ title }}” to a collection - {%- endtrans %} + {%- trans media_title=media.title -%} + Add “{{ media_title }}” to a collection + {%- endtrans -%} </h1> <div style="text-align: center;" >