Make the UI translatable
This commit is contained in:
@@ -10,12 +10,12 @@
|
||||
<p>{{ blog.summary }}</p>
|
||||
|
||||
<section>
|
||||
<h2>Latest articles</h2>
|
||||
<h2>{{ "Latest articles" | _ }}</h2>
|
||||
{% if recents | length < 1 %}
|
||||
<p>No posts to see here yet.</p>
|
||||
<p>{{ "No posts to see here yet." | _ }}</p>
|
||||
{% endif %}
|
||||
{% if is_author %}
|
||||
<a href="new" class="button inline-block">New article</a>
|
||||
<a href="new" class="button inline-block">{{ "New article" | _ }}</a>
|
||||
{% endif %}
|
||||
<div class="cards">
|
||||
{% for article in recents %}
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
{% extends "base" %}
|
||||
|
||||
{% block title %}
|
||||
New blog
|
||||
{{ "New blog" | _ }}
|
||||
{% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Create a blog</h1>
|
||||
<h1>{{ "Create a blog" | _ }}</h1>
|
||||
<form method="post">
|
||||
<label for="title">Title</label>
|
||||
<label for="title">{{ "Title" | _ }}</label>
|
||||
<input name="title">
|
||||
|
||||
<input type="submit" value="Create blog"/>
|
||||
<input type="submit" value="{{ "Create blog"}}"/>
|
||||
</form>
|
||||
{% endblock content %}
|
||||
| _ {% endblock content %}
|
||||
|
||||
Reference in New Issue
Block a user