diff options
author | Joe Siltberg <git@joesiltberg.se> | 2020-06-29 13:40:32 +0200 |
---|---|---|
committer | Joe Siltberg <git@joesiltberg.se> | 2020-06-29 13:40:32 +0200 |
commit | 655174d175e034b078141c33e5a5f848d255f7f9 (patch) | |
tree | cbf76d40e732f2435e69acd01ec995988a0a05da | |
parent | c7cc69f6cd5e7f91a48223dd0194aeed39b8e59e (diff) |
Internationalization of the heatmap page.
Fixes #3096
-rw-r--r-- | templates/web/base/dashboard/heatmap-list.html | 8 | ||||
-rwxr-xr-x | templates/web/base/dashboard/heatmap.html | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/templates/web/base/dashboard/heatmap-list.html b/templates/web/base/dashboard/heatmap-list.html index d736a11f4..53720af35 100644 --- a/templates/web/base/dashboard/heatmap-list.html +++ b/templates/web/base/dashboard/heatmap-list.html @@ -1,12 +1,12 @@ -<h3>Five newest reports</h3> +<h3>[% loc('Five newest reports') %]</h3> [% INCLUDE column problems = five_newest %] -<h3>Five most recent commented reports<br> -<small>Not from yourself/backend</small> +<h3>[% loc('Five most recent commented reports') %]<br> +<small>[% loc('Not from yourself/backend') %]</small> </h3> [% INCLUDE column problems = five_commented %] -<h3>Ten least recently updated open reports</h3> +<h3>[% loc('Ten least recently updated open reports') %]</h3> [% INCLUDE column problems = ten_oldest %] [% BLOCK column %] diff --git a/templates/web/base/dashboard/heatmap.html b/templates/web/base/dashboard/heatmap.html index ca4d02926..42c601a4c 100755 --- a/templates/web/base/dashboard/heatmap.html +++ b/templates/web/base/dashboard/heatmap.html @@ -26,11 +26,11 @@ <input type="hidden" id="body" name="body" value="[% body.id | html %]"> <p class="report-list-filters" style='padding-top:0.25em'> - From <input type="date" id="start_date" name="start_date" class="form-control" value="[% start_date | html %]"> - To <input type="date" id="end_date" name="end_date" class="form-control" value="[% end_date | html %]"> + [% loc('From') %] <input type="date" id="start_date" name="start_date" class="form-control" value="[% start_date | html %]"> + [% loc('To') %] <input type="date" id="end_date" name="end_date" class="form-control" value="[% end_date | html %]"> <p class="report-list-filters"> -In wards <select class="form-control js-multiple" multiple id="wards" name="wards"> +[% loc('In wards') %] <select class="form-control js-multiple" multiple id="wards" name="wards"> [% FOR child IN children.values.sort('name') %] [% SET aid = child.id %] <option value="[% child.name | html %]"[% ' selected' IF ward_hash.$aid %]>[% child.name %]</option> @@ -41,9 +41,9 @@ In wards <select class="form-control js-multiple" multiple id="wards" name="ward <p class="segmented-control segmented-control--radio"> <input type="radio" name="heatmap" id="heatmap_yes" value="Yes" checked> - <label class="btn" for="heatmap_yes">Heatmap</label> + <label class="btn" for="heatmap_yes">[% loc('Heatmap') %]</label> <input type="radio" name="heatmap" id="heatmap_no" value="No"> - <label class="btn" for="heatmap_no">Pin map</label> + <label class="btn" for="heatmap_no">[% loc('Pin map') %]</label> </p> <div id="js-reports-list"> |