Add translations

This commit is contained in:
Andrew 2022-08-22 20:23:09 -04:00
parent 037758accb
commit 1e569300fc
2 changed files with 5 additions and 3 deletions

View File

@ -42,8 +42,8 @@
id="reset-button"><i class="fas fa-undo"></i>&nbsp;{{ translate('serverMetrics', 'resetZoom', data['lang'])
}}</button>
{% if data['user_data']['hints'] %}
<span data-html="true" class="hints text-center" title="Did you know?" , data-content="To zoom on the schedule hold your shift key then use your scroll wheel to zoom.<br><br>
Alternatively hold the shift key then click and drag the area you'd like to zoom in on." ,
<span data-html="true" class="hints text-center" title="<i class='fa fa-info-circle'></i> " , data-content="{{
translate('serverMetrics', 'zoomHint1' , data['lang'])}} <br> <br> {{ translate('serverMetrics', 'zoomHint2', data['lang'])}}",
data-placement="top"></span>
{% end %}
<canvas id="lineChart"></canvas>

View File

@ -474,7 +474,9 @@
"updating": "Updating..."
},
"serverMetrics": {
"resetZoom": "Reset Zoom"
"resetZoom": "Reset Zoom",
"zoomHint1": "To zoom on the graph hold your shift key then use your scroll wheel.",
"zoomHint2": "Alternatively hold the shift key then click and drag the area you'd like to zoom in on."
},
"serverWizard": {
"absoluteServerPath": "Absolute path to your server",