1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-07-27 17:28:38 +00:00

Use unique translation IDs instead of English text as key

This commit is contained in:
Frédéric Guillot 2018-09-21 18:53:29 -07:00
parent f244df6293
commit beb7a0cfcb
66 changed files with 4069 additions and 2972 deletions

View file

@ -1,17 +1,17 @@
{{ define "title"}}{{ t "Categories" }} ({{ .total }}){{ end }}
{{ define "title"}}{{ t "page.categories.title" }} ({{ .total }}){{ end }}
{{ define "content"}}
<section class="page-header">
<h1>{{ t "Categories" }} ({{ .total }})</h1>
<h1>{{ t "page.categories.title" }} ({{ .total }})</h1>
<ul>
<li>
<a href="{{ route "createCategory" }}">{{ t "Create a category" }}</a>
<a href="{{ route "createCategory" }}">{{ t "menu.create_category" }}</a>
</li>
</ul>
</section>
{{ if not .categories }}
<p class="alert alert-error">{{ t "There is no category." }}</p>
<p class="alert alert-error">{{ t "page.categories.no_category" }}</p>
{{ else }}
<div class="items">
{{ range .categories }}
@ -27,7 +27,7 @@
{{ if eq .FeedCount 0 }}
{{ t "No feed." }}
{{ else }}
{{ plural "plural.categories.feed_count" .FeedCount .FeedCount }}
{{ plural "page.categories.feed_count" .FeedCount .FeedCount }}
{{ end }}
</li>
</ul>
@ -39,11 +39,11 @@
<li>
<a href="#"
data-confirm="true"
data-label-question="{{ t "Are you sure?" }}"
data-label-yes="{{ t "yes" }}"
data-label-no="{{ t "no" }}"
data-label-loading="{{ t "Work in progress..." }}"
data-url="{{ route "removeCategory" "categoryID" .ID }}">{{ t "Remove" }}</a>
data-label-question="{{ t "confirm.question" }}"
data-label-yes="{{ t "confirm.yes" }}"
data-label-no="{{ t "confirm.no" }}"
data-label-loading="{{ t "confirm.loading" }}"
data-url="{{ route "removeCategory" "categoryID" .ID }}">{{ t "action.remove" }}</a>
</li>
{{ end }}
</ul>