i18n and proper display names for subtags list

This commit is contained in:
Alexandre Aubin 2019-11-30 18:15:38 +01:00
parent 4f9c47eab5
commit 5815cbe40a
2 changed files with 5 additions and 3 deletions

View file

@ -5,6 +5,7 @@
"advanced": "Advanced", "advanced": "Advanced",
"remove": "Remove", "remove": "Remove",
"administration_password": "Administration password", "administration_password": "Administration password",
"all": "All",
"all_apps": "All apps", "all_apps": "All apps",
"api_not_responding": "The YunoHost API is not responding. Maybe 'yunohost-api' is down or got restarted?", "api_not_responding": "The YunoHost API is not responding. Maybe 'yunohost-api' is down or got restarted?",
"app_change_label": "Change Label", "app_change_label": "Change Label",
@ -223,6 +224,7 @@
"operations": "Operations", "operations": "Operations",
"orphaned": "Not maintained", "orphaned": "Not maintained",
"orphaned_details": "This app has not been maintained for quite some time. It may still be working, but won't receive any upgrade until somebody volunteers to take care of it. Feel free to contribute to revive it!", "orphaned_details": "This app has not been maintained for quite some time. It may still be working, but won't receive any upgrade until somebody volunteers to take care of it. Feel free to contribute to revive it!",
"others": "Others",
"password": "Password", "password": "Password",
"password_confirmation": "Password confirmation", "password_confirmation": "Password confirmation",
"password_description": "Password must be at least %s characters long.", "password_description": "Password must be at least %s characters long.",

View file

@ -30,13 +30,13 @@
<div class="subtag-selector"> <div class="subtag-selector">
{{#if category.subtags}} {{#if category.subtags}}
<button class="btn btn-default active" data-subtag="all">All</button> <button class="btn btn-default active" data-subtag="all">{{t 'all'}}</button>
{{/if}} {{/if}}
{{#category.subtags}} {{#category.subtags}}
<button class="btn btn-default" data-subtag="{{.}}">{{.}}</button> <button class="btn btn-default" data-subtag="{{id}}">{{title}}</button>
{{/category.subtags}} {{/category.subtags}}
{{#if category.subtags}} {{#if category.subtags}}
<button class="btn btn-default" data-subtag="others">Others</button> <button class="btn btn-default" data-subtag="others">{{t 'others'}}</button>
{{/if}} {{/if}}
</div> </div>