Make the UI translatable

This commit is contained in:
Bat
2018-06-17 16:26:15 +01:00
parent cafb0e2277
commit 3207aa0e22
22 changed files with 326 additions and 89 deletions
+4 -4
View File
@@ -1,15 +1,15 @@
{% extends "base" %}
{% block title %}
Configuration
{{ "Configuration" | _ }}
{% endblock title %}
{% block content %}
<h1>Configure your instance</h1>
<h1>{{ "Configure your instance" | _ }}</h1>
<form method="post">
<label for="name">Name</label>
<label for="name">{{ "Name" | _ }}</label>
<input name="name">
<input type="submit" value="Let's go!"/>
<input type="submit" value="{{ "Let's go!" | _ }}"/>
</form>
{% endblock content %}
+1 -1
View File
@@ -8,7 +8,7 @@
{% block content %}
<h1>{{ "Welcome on {{ instance_name }}" | _(instance_name=instance.name) }}</h1>
<h2>Latest articles</h2>
<h2>{{ "Latest articles" }}</h2>
<div class="cards">
{% for article in recents %}
{{ macros::post_card(article=article) }}