aboutsummaryrefslogtreecommitdiffhomepage
path: root/template/html/edit_category.html
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2018-09-21 18:53:29 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-09-21 22:23:23 -0700
commitbeb7a0cfcb6a5a76d680707a4c458eee51d87c07 (patch)
treef6e23ffbffcdd58f8438e2d2711acb4fa86bb83b /template/html/edit_category.html
parentf244df62936eea307a5fc3f27fb9968527d402ac (diff)
Use unique translation IDs instead of English text as key
Diffstat (limited to 'template/html/edit_category.html')
-rw-r--r--template/html/edit_category.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/template/html/edit_category.html b/template/html/edit_category.html
index 2981fa4..6b21e46 100644
--- a/template/html/edit_category.html
+++ b/template/html/edit_category.html
@@ -1,14 +1,14 @@
-{{ define "title"}}{{ t "Edit Category: %s" .category.Title }}{{ end }}
+{{ define "title"}}{{ t "page.edit_category.title" .category.Title }}{{ end }}
{{ define "content"}}
<section class="page-header">
- <h1>{{ t "Edit Category: %s" .category.Title }}</h1>
+ <h1>{{ t "page.edit_category.title" .category.Title }}</h1>
<ul>
<li>
- <a href="{{ route "categories" }}">{{ t "Categories" }}</a>
+ <a href="{{ route "categories" }}">{{ t "menu.categories" }}</a>
</li>
<li>
- <a href="{{ route "createCategory" }}">{{ t "Create a category" }}</a>
+ <a href="{{ route "createCategory" }}">{{ t "menu.create_category" }}</a>
</li>
</ul>
</section>
@@ -20,11 +20,11 @@
<div class="alert alert-error">{{ t .errorMessage }}</div>
{{ end }}
- <label for="form-title">{{ t "Title" }}</label>
+ <label for="form-title">{{ t "form.category.label.title" }}</label>
<input type="text" name="title" id="form-title" value="{{ .form.Title }}" required autofocus>
<div class="buttons">
- <button type="submit" class="button button-primary" data-label-loading="{{ t "Loading..." }}">{{ t "Update" }}</button> {{ t "or" }} <a href="{{ route "categories" }}">{{ t "cancel" }}</a>
+ <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button> {{ t "action.or" }} <a href="{{ route "categories" }}">{{ t "action.cancel" }}</a>
</div>
</form>
{{ end }}