From 8c659fd95c6a1e2fa8f450447c52c9a1a8f39eb6 Mon Sep 17 00:00:00 2001 From: Elrond Date: Tue, 5 Feb 2013 16:50:35 +0100 Subject: [PATCH] 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. --- .../mediagoblin/user_pages/media_collect.html | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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;" > -- 2.25.1