i18n stuff

This commit is contained in:
Alexandre Aubin 2019-08-01 19:36:03 +02:00
parent c283b50186
commit 0e80393ef4
2 changed files with 8 additions and 4 deletions

View file

@ -141,6 +141,7 @@
"download": "Download",
"enable": "Enable",
"enabled": "Enabled",
"errors": "%s errors",
"error_modify_something": "You should modify something",
"error_occured": "An error occurred, try again",
"error_retrieve_feed": "Could not retrieve feed: %s. You might have a plugin prevent your browser from performing this request (or the website is down).",
@ -149,6 +150,7 @@
"error_server_unexpected": "Unexpected server error (%s)",
"error_connection_interrupted": "The server closed the connection instead of answering it, has nginx been restarted by error? (Error code/message: %s)",
"everyone_has_access": "Everyone has access.",
"everything_good": "Everything good!",
"experimental_warning": "Warning: this feature is experimental and not consider stable, you shouldn't be using it except if you know what you are doing.",
"filesystem": "Filesystem",
"firewall": "Firewall",
@ -195,6 +197,7 @@
"ipv6": "IPv6",
"label": "Label",
"label_for_manifestname": "Label for %s",
"last_ran": "Last time ran:",
"level": "level",
"license": "License",
"loading": "Loading …",
@ -390,6 +393,7 @@
"versions": "Versions",
"version": "Version",
"view_user_profile": "View %s's profile",
"warnings": "%s warnings",
"warning_first_user": "You probably need to <a href='#/users/create' class='alert-link'>create a user</a> first.",
"write": "Write",
"wrong_password": "Wrong password",

View file

@ -17,14 +17,14 @@
<h2 class="panel-title" style="display: inline-block; margin-right: 10px;">
<a data-toggle="collapse" href="#category-{{id}}">{{ description }}</a>
</h2>
{{#if noIssues}}<span class="label label-success">Everything good!</span>{{/if}}
{{#if errors}}<span class="label label-danger">{{ errors }} errors</span>{{/if}}
{{#if warnings}}<span class="label label-warning">{{ warnings }} warnings</span>{{/if}}
{{#if noIssues}}<span class="label label-success">{{t 'everything_good'}}</span>{{/if}}
{{#if errors}}<span class="label label-danger">{{t 'errors' errors }}</span>{{/if}}
{{#if warnings}}<span class="label label-warning">{{t 'warnings' warnings }}</span>{{/if}}
<a role="button" category="{{ id }}" class="btn btn-sm btn-info pull-right rerun-diagnosis"><span class="fa-fw fa-refresh"></span> {{t 'rerun_diagnosis'}}</a>
</div>
<div class="panel-body collapse {{#unless noIssues}}in{{/unless}}" id="category-{{id}}">
<ul class="list-group" style="margin-bottom: 0px">
<p>Last time ran : {{formatRelative time}}</p>
<p>{{t 'last_ran' }} {{formatRelative time day="numeric" month="long" year="numeric" hour="numeric" minute="numeric" }}</p>
{{#items}}
<li class="list-group-item alert alert-{{status}} alert-{{status}}-yo clearfix">
{{#if icon}}