diff options
author | Frédéric Guillot <fred@miniflux.net> | 2018-09-21 18:53:29 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2018-09-21 22:23:23 -0700 |
commit | beb7a0cfcb6a5a76d680707a4c458eee51d87c07 (patch) | |
tree | f6e23ffbffcdd58f8438e2d2711acb4fa86bb83b /template/html/feeds.html | |
parent | f244df62936eea307a5fc3f27fb9968527d402ac (diff) |
Use unique translation IDs instead of English text as key
Diffstat (limited to 'template/html/feeds.html')
-rw-r--r-- | template/html/feeds.html | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/template/html/feeds.html b/template/html/feeds.html index 957ee15..5988ef2 100644 --- a/template/html/feeds.html +++ b/template/html/feeds.html @@ -1,26 +1,26 @@ -{{ define "title"}}{{ t "Feeds" }} ({{ .total }}){{ end }} +{{ define "title"}}{{ t "page.feeds.title" }} ({{ .total }}){{ end }} {{ define "content"}} <section class="page-header"> - <h1>{{ t "Feeds" }} ({{ .total }})</h1> + <h1>{{ t "page.feeds.title" }} ({{ .total }})</h1> <ul> <li> - <a href="{{ route "addSubscription" }}">{{ t "Add subscription" }}</a> + <a href="{{ route "addSubscription" }}">{{ t "menu.add_feed" }}</a> </li> <li> - <a href="{{ route "export" }}">{{ t "Export" }}</a> + <a href="{{ route "export" }}">{{ t "menu.export" }}</a> </li> <li> - <a href="{{ route "import" }}">{{ t "Import" }}</a> + <a href="{{ route "import" }}">{{ t "menu.import" }}</a> </li> <li> - <a href="{{ route "refreshAllFeeds" }}">{{ t "Refresh all feeds in background" }}</a> + <a href="{{ route "refreshAllFeeds" }}">{{ t "menu.refresh_all_feeds" }}</a> </li> </ul> </section> {{ if not .feeds }} - <p class="alert">{{ t "You don't have any subscription." }}</p> + <p class="alert">{{ t "alert.no_feed" }}</p> {{ else }} <div class="items"> {{ range .feeds }} @@ -42,7 +42,7 @@ <a href="{{ .SiteURL }}" title="{{ .SiteURL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer" data-original-link="true">{{ domain .SiteURL }}</a> </li> <li> - {{ t "Last check:" }} <time datetime="{{ isodate .CheckedAt }}" title="{{ isodate .CheckedAt }}">{{ elapsed $.user.Timezone .CheckedAt }}</time> + {{ t "page.feeds.last_check" }} <time datetime="{{ isodate .CheckedAt }}" title="{{ isodate .CheckedAt }}">{{ elapsed $.user.Timezone .CheckedAt }}</time> </li> </ul> <ul> @@ -55,17 +55,17 @@ <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 "removeFeed" "feedID" .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 "removeFeed" "feedID" .ID }}">{{ t "action.remove" }}</a> </li> </ul> </div> {{ if ne .ParsingErrorCount 0 }} <div class="parsing-error"> - <strong title="{{ .ParsingErrorMsg }}" class="parsing-error-count">{{ plural "plural.feed.error_count" .ParsingErrorCount .ParsingErrorCount }}</strong> + <strong title="{{ .ParsingErrorMsg }}" class="parsing-error-count">{{ plural "page.feeds.error_count" .ParsingErrorCount .ParsingErrorCount }}</strong> - <small class="parsing-error-message">{{ .ParsingErrorMsg }}</small> </div> {{ end }} |