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

View File

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