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.
This commit is contained in:
parent
accb073e8c
commit
8c659fd95c
@ -24,17 +24,22 @@
|
|||||||
src="{{ request.staticdirect('/js/collection_form_show.js') }}"></script>
|
src="{{ request.staticdirect('/js/collection_form_show.js') }}"></script>
|
||||||
{% endblock %}
|
{% 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',
|
<form action="{{ request.urlgen('mediagoblin.user_pages.media_collect',
|
||||||
user=media.get_uploader.username,
|
user=media.get_uploader.username,
|
||||||
media=media.id) }}"
|
media=media.id) }}"
|
||||||
method="POST" enctype="multipart/form-data">
|
method="POST" enctype="multipart/form-data">
|
||||||
<div class="form_box">
|
<div class="form_box">
|
||||||
<h1>
|
<h1>
|
||||||
{%- trans title=media.title -%}
|
{%- trans media_title=media.title -%}
|
||||||
Add “{{ title }}” to a collection
|
Add “{{ media_title }}” to a collection
|
||||||
{%- endtrans %}
|
{%- endtrans -%}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<div style="text-align: center;" >
|
<div style="text-align: center;" >
|
||||||
|
Loading…
x
Reference in New Issue
Block a user