ENHANCEMENT: moar translating

This commit is contained in:
Jeroen De Meerleer 2022-05-31 19:49:51 +02:00
parent 0b41d9d7b8
commit f3f2e92a0f
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
3 changed files with 41 additions and 11 deletions

View File

@ -67,13 +67,13 @@
<div class="dropdown croncategory-group crontype-group{% if job.data.crontype != 'http' %} btn-group{% endif %}"> <div class="dropdown croncategory-group crontype-group{% if job.data.crontype != 'http' %} btn-group{% endif %}">
<button class="btn btn-outline-primary dropdown-toggle" type="button" id="crontypeButton" data-default-text="Job type" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <button class="btn btn-outline-primary dropdown-toggle" type="button" id="crontypeButton" data-default-text="Job type" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{% if job.data.crontype == 'command' %} {% if job.data.crontype == 'command' %}
Command {{ 'job.addedit.crontype.command.label' | trans }}
{% elseif job.data.crontype == 'reboot' %} {% elseif job.data.crontype == 'reboot' %}
Reboot {{ 'job.addedit.crontype.reboot.label' | trans }}
{% elseif job.data.crontype == 'http' %} {% elseif job.data.crontype == 'http' %}
Http request {{ 'job.addedit.crontype.http.label' | trans }}
{% else %} {% else %}
Job type {{ 'job.addedit.crontype.label' | trans }}
{% endif %} {% endif %}
</button> </button>
<div class="dropdown-menu" aria-labelledby="crontypeButton"> <div class="dropdown-menu" aria-labelledby="crontypeButton">
@ -121,15 +121,15 @@
</div> </div>
<div class="crontype-command crontype-inputs croncategory-inputs{% if job.data.crontype != 'command' %} d-none{% endif %}"> <div class="crontype-command crontype-inputs croncategory-inputs{% if job.data.crontype != 'command' %} d-none{% endif %}">
<h4>Command details</h4> <h4>{{ "job.addedit.crontype.command.header"| trans }}</h4>
<div class="mb-3"> <div class="mb-3">
<label for="command">Command</label> <label for="command">{{ "job.addedit.crontype.command.command.label"| trans }}</label>
<input type="text" name="command" class="form-control" id="command" placeholder="sudo apt update" value="{% if job.data.command is defined %}{{ job.data.command }}{% endif %}"> <input type="text" name="command" class="form-control" id="command" placeholder="{{ "job.addedit.crontype.command.command.placeholder"| trans }}" value="{% if job.data.command is defined %}{{ job.data.command }}{% endif %}">
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label for="response">Expected exit code</label> <label for="response">{{ "job.addedit.crontype.command.response.label"| trans }}</label>
<input type="text" name="response" class="form-control" id="response" placeholder="0" value="{% if job.data.response is defined %}{{ job.data.response | join(',') }}{% endif %}"> <input type="text" name="response" class="form-control" id="response" placeholder="{{ "job.addedit.crontype.command.response.placeholder"| trans }}" value="{% if job.data.response is defined %}{{ job.data.response | join(',') }}{% endif %}">
</div> </div>
</div> </div>

View File

@ -84,4 +84,19 @@ job:
label: 'Max fail percentage' label: 'Max fail percentage'
faildays: faildays:
label: 'Number of days calculated for fail percentage' label: 'Number of days calculated for fail percentage'
placeholder: '7' placeholder: '7'
crontype:
label: Job type
command:
label: Command
header: Command details
command:
label: Command
placeholder: sudo apt update
response:
label: Expected exit code
placeholder: 0
reboot:
label: Reboot
http:
label: HTTP request

View File

@ -84,4 +84,19 @@ job:
label: 'Max faalpercentage' label: 'Max faalpercentage'
faildays: faildays:
label: 'Aantal dagen berekend voor faalpercentage' label: 'Aantal dagen berekend voor faalpercentage'
placeholder: '7' placeholder: '7'
crontype:
label: Taak type
command:
label: Commando
header: Commando details
command:
label: Commando
placeholder: sudo apt update
response:
label: Verwacht resultaat
placeholder: 0
reboot:
label: Herstart
http:
label: HTTP request