aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElrond <elrond+mediagoblin.org@samba-tng.org>2013-02-05 16:50:35 +0100
committerElrond <elrond+mediagoblin.org@samba-tng.org>2013-02-05 16:52:13 +0100
commit8c659fd95c6a1e2fa8f450447c52c9a1a8f39eb6 (patch)
tree6b0e0e5d91c8f913a5474032b8be44aec43d0367
parentaccb073e8ca9907b1fe88a775c8fe8632e0e2e7f (diff)
downloadmediagoblin-8c659fd95c6a1e2fa8f450447c52c9a1a8f39eb6.tar.lz
mediagoblin-8c659fd95c6a1e2fa8f450447c52c9a1a8f39eb6.tar.xz
mediagoblin-8c659fd95c6a1e2fa8f450447c52c9a1a8f39eb6.zip
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 <title/> block.
-rw-r--r--mediagoblin/templates/mediagoblin/user_pages/media_collect.html13
1 files 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 %} &mdash; {{ 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;" >