I18n for media pages

This commit is contained in:
Bat 2018-09-03 13:28:20 +01:00
parent e279ac734a
commit 8ac6b8307a
3 changed files with 59 additions and 8 deletions

View File

@ -435,3 +435,54 @@ msgstr ""
msgid "Runs Plume {{ version }}"
msgstr ""
msgid "Your media"
msgstr ""
msgid "Go to your gallery"
msgstr ""
msgid "{{ name}}'s avatar'"
msgstr ""
msgid "Media details"
msgstr ""
msgid "Go back to the gallery"
msgstr ""
msgid "Markdown code"
msgstr ""
msgid "Copy it in your articles to insert this media."
msgstr ""
msgid "Use as avatar"
msgstr ""
msgid "Delete"
msgstr ""
msgid "Your media"
msgstr ""
msgid "Upload"
msgstr ""
msgid "You don't have any media yet."
msgstr ""
msgid "Media upload"
msgstr ""
msgid "Description"
msgstr ""
msgid "Content warning"
msgstr ""
msgid "File"
msgstr ""
msgid "Send"
msgstr ""

View File

@ -2,13 +2,13 @@
{% import "macros" as macros %}
{% block title %}
Your medias
{{ "Media details" | _ }}
{% endblock title %}
{% block content %}
<h1>{{ "Media details" }}</h1>
<section>
<a href="/medias">Go back to the gallery</a>
<a href="/medias">{{ "Go back to the gallery" | _ }}</a>
</section>
<section>
@ -24,8 +24,8 @@ Your medias
<code>{{ media.md }}</code>
</div>
<div>
<a href="/medias/{{ media.id }}/avatar" class="button inline-block">Use as avatar</a>
<a href="/medias/{{ media.id }}/delete" class="button inline-block">Delete</a>
<a href="/medias/{{ media.id }}/avatar" class="button inline-block">{{ "Use as avatar" | _ }}</a>
<a href="/medias/{{ media.id }}/delete" class="button inline-block">{{ "Delete" | _ }}</a>
</div>
</section>
{% endblock content %}

View File

@ -2,11 +2,11 @@
{% import "macros" as macros %}
{% block title %}
Your medias
{{ "Your media" | _ }}
{% endblock title %}
{% block content %}
<h1>{{ "Your medias" }}</h1>
<h1>{{ "Your media" | _ }}</h1>
<div>
<a href="/medias/new" class="inline-block button">Upload</a>
</div>
@ -22,10 +22,10 @@ Your medias
<main class="grow">
<p><a href="/medias/{{ media.id }}">{{ media.alt_text }}</a></p>
</main>
<a href="/medias/{{ media.id }}/delete">Delete</a>
<a href="/medias/{{ media.id }}/delete">{{ "Delete" | _ }}</a>
</div>
{% endfor %}
</div>
{# macros::paginate(page=page, total=n_pages) #}
{# TODO: macros::paginate(page=page, total=n_pages) #}
</section>
{% endblock content %}