Allow translating text in templates

This commit is contained in:
rubenwardy
2022-01-07 23:27:00 +00:00
parent c8b0f9e6ce
commit c5a6ae3035
60 changed files with 415 additions and 349 deletions

View File

@@ -9,7 +9,9 @@
{% endblock %}
{% block content %}
<a class="btn btn-primary float-right" href="{{ package.getURL("packages.alias_create_edit") }}">Create</a>
<a class="btn btn-primary float-right" href="{{ package.getURL("packages.alias_create_edit") }}">
{{ _("Create") }}
</a>
<h1>{{ _("Aliases for %(title)s by %(author)s", title=self.link(), author=package.author.display_name) }}</h1>
<div class="list-group">
@@ -19,7 +21,7 @@
</a>
{% else %}
<div class="list-group-item">
No aliases
{{ _("No aliases") }}
</div>
{% endfor %}
</div>