aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/base')
-rw-r--r--templates/web/base/admin/defecttypes/edit.html12
-rw-r--r--templates/web/base/admin/defecttypes/index.html2
-rw-r--r--templates/web/base/admin/defecttypes/list.html14
-rw-r--r--templates/web/base/admin/exordefects/index.html14
-rw-r--r--templates/web/base/admin/responsepriorities/edit.html2
-rw-r--r--templates/web/base/auth/general.html4
-rw-r--r--templates/web/base/dashboard/index.html61
-rw-r--r--templates/web/base/js/translation_strings.html20
-rw-r--r--templates/web/base/maps/google-ol.html7
-rw-r--r--templates/web/base/offline/appcache.html7
-rw-r--r--templates/web/base/report/_inspect.html12
-rw-r--r--templates/web/base/report/_item.html4
-rw-r--r--templates/web/base/report/_main.html20
-rw-r--r--templates/web/base/report/new/form_user_loggedout.html4
-rw-r--r--templates/web/base/report/update.html20
-rw-r--r--templates/web/base/report/update/form_user_loggedout.html4
16 files changed, 118 insertions, 89 deletions
diff --git a/templates/web/base/admin/defecttypes/edit.html b/templates/web/base/admin/defecttypes/edit.html
index 65c8a5ab7..a3b324d11 100644
--- a/templates/web/base/admin/defecttypes/edit.html
+++ b/templates/web/base/admin/defecttypes/edit.html
@@ -1,7 +1,7 @@
-[% INCLUDE 'admin/header.html' title=tprintf(loc('Defect Type for %s'), body.name) -%]
+[% INCLUDE 'admin/header.html' title=tprintf(('Defect Type for %s'), body.name) -%]
[% dt = defect_type %]
-[% UNLESS dt.id %]<h3>[% loc('New defect type') %]</h3>[% END %]
+[% UNLESS dt.id %]<h3>[% ('New defect type') %]</h3>[% END %]
<form method="post"
action="[% c.uri_for('', body.id, dt.id || 'new' ) %]"
@@ -10,17 +10,17 @@
class="validate">
<p>
- <strong>[% loc('Name:') %] </strong>
+ <strong>[% ('Name:') %] </strong>
<input type="text" name="name" class="required form-control" size="30" value="[% dt.name | html %]">
</p>
<p>
- <strong>[% loc('Description:') %] </strong>
+ <strong>[% ('Description:') %] </strong>
<input type="text" name="description" class="form-control" size="30" value="[% dt.description | html %]">
</p>
<div class="admin-hint">
<p>
- [% loc('If you only want this defect type to be an option for specific categories, pick them here. By default they will show for all categories.') %]
+ [% ('If you only want this defect type to be an option for specific categories, pick them here. By default they will show for all categories.') %]
</p>
</div>
@@ -30,7 +30,7 @@
<p>
<input type="hidden" name="token" value="[% csrf_token %]" >
- <input type="submit" class="btn" name="save" value="[% dt.id ? loc('Save changes') : loc('Create defect type') %]" >
+ <input type="submit" class="btn" name="save" value="[% dt.id ? ('Save changes') : ('Create defect type') %]" >
</p>
</form>
diff --git a/templates/web/base/admin/defecttypes/index.html b/templates/web/base/admin/defecttypes/index.html
index 2e6ce7e1b..c45a09e6e 100644
--- a/templates/web/base/admin/defecttypes/index.html
+++ b/templates/web/base/admin/defecttypes/index.html
@@ -1,4 +1,4 @@
-[% INCLUDE 'admin/header.html' title=loc('Defect Types') -%]
+[% INCLUDE 'admin/header.html' title=('Defect Types') -%]
<ul>
[% FOR body IN bodies %]
diff --git a/templates/web/base/admin/defecttypes/list.html b/templates/web/base/admin/defecttypes/list.html
index 1a9cb4fa7..783bd085c 100644
--- a/templates/web/base/admin/defecttypes/list.html
+++ b/templates/web/base/admin/defecttypes/list.html
@@ -1,11 +1,11 @@
-[% INCLUDE 'admin/header.html' title=tprintf(loc('Defect Types for %s'), body.name) -%]
+[% INCLUDE 'admin/header.html' title=tprintf(('Defect Types for %s'), body.name) -%]
<table>
<thead>
<tr>
- <th> [% loc('Name') %] </th>
- <th> [% loc('Description') %] </th>
- <th> [% loc('Categories') %] </th>
+ <th> [% ('Name') %] </th>
+ <th> [% ('Description') %] </th>
+ <th> [% ('Categories') %] </th>
<th> &nbsp; </th>
</tr>
</thead>
@@ -17,19 +17,19 @@
<td> [% d.description | html %] </td>
<td>
[% UNLESS d.contacts.size %]
- <em>[% loc('All categories') %]</em>
+ <em>[% ('All categories') %]</em>
[% ELSE %]
[% FOR contact IN d.contacts %]
[% contact.category %][% ',' UNLESS loop.last %]
[% END %]
[% END %]
</td>
- <td> <a href="[% c.uri_for('', body.id, d.id) %]" class="btn">[% loc('Edit') %]</a> </td>
+ <td> <a href="[% c.uri_for('', body.id, d.id) %]" class="btn">[% ('Edit') %]</a> </td>
</tr>
[% END %]
</tbody>
</table>
-<a href="[% c.uri_for('', body.id, 'new') %]" class="btn">[% loc('New defect type') %]</a>
+<a href="[% c.uri_for('', body.id, 'new') %]" class="btn">[% ('New defect type') %]</a>
[% INCLUDE 'admin/footer.html' %]
diff --git a/templates/web/base/admin/exordefects/index.html b/templates/web/base/admin/exordefects/index.html
index 06d2aa7a5..dba58198d 100644
--- a/templates/web/base/admin/exordefects/index.html
+++ b/templates/web/base/admin/exordefects/index.html
@@ -1,4 +1,4 @@
-[% INCLUDE 'admin/header.html' title=loc('Download Exor RDI') -%]
+[% INCLUDE 'admin/header.html' title=('Download Exor RDI') -%]
[% IF error_message %]
<h2>Error</h2>
@@ -7,20 +7,20 @@
<form method="get" action="[% c.uri_for('download') %]" enctype="application/x-www-form-urlencoded" accept-charset="utf-8">
<p>
- <label for="start_date">[% loc('Start Date:') %]</label><input type="text" class="form-control"
- placeholder="[% loc('Click here or enter as dd/mm/yyyy') %]" name="start_date" id="start_date"
+ <label for="start_date">[% ('Start Date:') %]</label><input type="text" class="form-control"
+ placeholder="[% ('Click here or enter as dd/mm/yyyy') %]" name="start_date" id="start_date"
value="[% start_date ? start_date.strftime( '%d/%m/%Y') : '' | html %]" />
</p>
<p>
- <label for="end_date">[% loc('End Date:') %]</label><input type="text" class="form-control"
- placeholder="[% loc('Click here or enter as dd/mm/yyyy') %]" name="end_date" id="end_date" size="5"
+ <label for="end_date">[% ('End Date:') %]</label><input type="text" class="form-control"
+ placeholder="[% ('Click here or enter as dd/mm/yyyy') %]" name="end_date" id="end_date" size="5"
value="[% end_date ? end_date.strftime( '%d/%m/%Y') : '' | html %]" />
</p>
<p>
- [% loc('Inspector:') %] <select class="form-control" id='user_id' name='user_id'>
- <option value=''>[% loc('All inspectors') %]</option>
+ [% ('Inspector:') %] <select class="form-control" id='user_id' name='user_id'>
+ <option value=''>[% ('All inspectors') %]</option>
[% FOR inspector IN inspectors %]
<option value="[% inspector.id %]" [% 'selected' IF user_id == inspector.id %]>[% inspector.name %] ([% inspector.get_extra_metadata('initials') %])</option>
[% END %]
diff --git a/templates/web/base/admin/responsepriorities/edit.html b/templates/web/base/admin/responsepriorities/edit.html
index a4dc61213..07d6906ba 100644
--- a/templates/web/base/admin/responsepriorities/edit.html
+++ b/templates/web/base/admin/responsepriorities/edit.html
@@ -24,7 +24,7 @@
</p>
</div>
<p>
- <strong>[% loc('External ID:') %] </strong>
+ <strong>[% loc('External ID') %]:</strong>
<input type="text" name="external_id" class="form-control" size="30" value="[% rp.external_id | html %]">
</p>
diff --git a/templates/web/base/auth/general.html b/templates/web/base/auth/general.html
index cf539ff4f..41ff3a2e1 100644
--- a/templates/web/base/auth/general.html
+++ b/templates/web/base/auth/general.html
@@ -19,7 +19,7 @@
<div class="form-box">
<button name="facebook_sign_in" id="facebook_sign_in" value="facebook_sign_in" class="btn btn--block btn--social btn--facebook">
<img alt="" src="/i/facebook-icon-32.png" width="17" height="32">
- Log in with Facebook
+ [% loc('Log in with Facebook') %]
</button>
</div>
[% END %]
@@ -27,7 +27,7 @@
<div class="form-box">
<button name="twitter_sign_in" id="twitter_sign_in" value="twitter_sign_in" class="btn btn--block btn--social btn--twitter">
<img alt="" src="/i/twitter-icon-32.png" width="17" height="32">
- Log in with Twitter
+ [% loc('Log in with Twitter') %]
</button>
</div>
[% END %]
diff --git a/templates/web/base/dashboard/index.html b/templates/web/base/dashboard/index.html
index 1af507569..2a9a2ef42 100644
--- a/templates/web/base/dashboard/index.html
+++ b/templates/web/base/dashboard/index.html
@@ -12,14 +12,13 @@
<form>
<hgroup>
- <h2>Reports, Statistics and Actions for</h2>
- <h1>[% council.name %]</h1>
+ [% tprintf(loc('<h2>Reports, Statistics and Actions for</h2> <h1>%s</h1>'), council.name) %]
</hgroup>
<div class="filters">
<p>
- <label for="ward">Ward:</label>
- <select class="form-control" name="ward"><option value=''>All</option>
+ <label for="ward">[% loc('Ward:') %]</label>
+ <select class="form-control" name="ward"><option value=''>[% loc('All') %]</option>
[% FOR w IN children.values.sort('name') %]
<option value="[% w.id %]"[% ' selected' IF w.id == ward %]>[% w.name %]</option>
[% END %]
@@ -27,8 +26,8 @@
</p>
<p>
- <label for="category">Report category:</label>
- <select class="form-control" name="category"><option value=''>All</option>
+ <label for="category">[% loc('Category:') %]</label>
+ <select class="form-control" name="category"><option value=''>[% loc('All') %]</option>
[% FOR cat_op IN category_options %]
<option value='[% cat_op | html %]'[% ' selected' IF category == cat_op %]>[% cat_op | html %]</option>
[% END %]
@@ -36,7 +35,7 @@
</p>
<p>
- <input type="submit" class="btn" value="Look up">
+ <input type="submit" class="btn" value="[% loc('Look up') %]">
</p>
<br clear="all" />
@@ -46,17 +45,17 @@
<table width="100%" id="overview">
<tr>
<th>&nbsp;</th>
- <th scope="col"><abbr title="Week To Date">WTD</abbr></th>
- <th scope="col">Last 7 days</th>
- <th scope="col">Last 4 weeks</th>
- <th scope="col">YTD</th>
+ <th scope="col"><abbr title="[% loc('Week To Date') %]">[% loc('WTD', "Week to date") %]</abbr></th>
+ <th scope="col">[% loc('Last 7 days') %]</th>
+ <th scope="col">[% loc('Last 4 weeks') %]</th>
+ <th scope="col">[% loc('YTD', "Year to date") %]</th>
</tr>
[%
rows = {
- '0' => [ "total", "Total reports received" ]
- '1' => [ "fixed - council", "Council has marked as fixed" ]
- '2' => [ "fixed_user", "User has marked as fixed" ]
+ '0' => [ "total", loc("Total reports received") ]
+ '1' => [ "fixed - council", loc("Council has marked as fixed") ]
+ '2' => [ "fixed_user", loc("User has marked as fixed") ]
};
FOR row IN rows %]
<tr id="[% row.value.0.replace('[^\w]+', '_' ) %]">
@@ -69,7 +68,7 @@
[% END %]
<tr class='subtotal' id="total_fixed">
- <th scope="row">Total marked as fixed</th>
+ <th scope="row">[% loc('Total marked as fixed') %]</th>
<td>[% problems.wtd.${"fixed - council"} + problems.wtd.fixed_user %]</td>
<td>[% problems.week.${"fixed - council"} + problems.week.fixed_user %]</td>
<td>[% problems.weeks.${"fixed - council"} + problems.weeks.fixed_user %]</td>
@@ -78,10 +77,10 @@
[%
rows = {
- '0' => [ "in progress", "Council has marked as in progress" ]
- '1' => [ "action scheduled", "Council has marked as planned" ]
- '2' => [ "investigating", "Council has marked as investigating" ]
- '3' => [ "closed", "Council has marked as closed" ]
+ '0' => [ "in progress", loc("Council has marked as in progress") ]
+ '1' => [ "action scheduled", loc("Council has marked as planned") ]
+ '2' => [ "investigating", loc("Council has marked as investigating") ]
+ '3' => [ "closed", loc("Council has marked as closed") ]
};
wtd = 0, week = 0, weeks = 0, ytd = 0;
FOR row IN rows %]
@@ -95,7 +94,7 @@
[% END %]
<tr class='subtotal' id="marked">
- <th scope="row">Total marked</th>
+ <th scope="row">[% loc('Total marked') %]</th>
<td>[% problems.wtd.${"in progress"} + problems.wtd.${"action scheduled"} +
problems.wtd.investigating + problems.wtd.closed %]</td>
<td>[% problems.week.${"in progress"} + problems.week.${"action scheduled"} +
@@ -107,7 +106,7 @@
</tr>
<tr id="avg_fixed">
- <th scope="row">Average time to council marking fixed (days)</th>
+ <th scope="row">[% loc('Average time to council marking fixed (days)') %]</th>
<td>[% problems.wtd.time_to_fix %]</td>
<td>[% problems.week.time_to_fix %]</td>
<td>[% problems.weeks.time_to_fix %]</td>
@@ -115,7 +114,7 @@
</tr>
<tr id="avg_marked">
- <th scope="row">Average time to first council state change (days)</th>
+ <th scope="row">[% loc('Average time to first council state change (days)') %]</th>
<td>[% problems.wtd.time_to_mark %]</td>
<td>[% problems.week.time_to_mark %]</td>
<td>[% problems.weeks.time_to_mark %]</td>
@@ -123,7 +122,7 @@
</tr>
<tr class='subtotal' id="not_marked">
- <th scope="row">Total not marked</th>
+ <th scope="row">[% loc('Total not marked') %]</th>
<td>[% problems.wtd.not_marked %]</td>
<td>[% problems.week.not_marked %]</td>
<td>[% problems.weeks.not_marked %]</td>
@@ -132,25 +131,25 @@
</table>
-<h2>Reports</h2>
+<h2>[% loc('Reports') %]</h2>
</select>
-<p>Report state: <select class="form-control" name="state">
-<option value=''>All</option>
+<p>[% loc('Report state:') %] <select class="form-control" name="state">
+<option value=''>[% loc('All') %]</option>
[% FOREACH state IN [ ['confirmed', loc('Open')], ['investigating',
loc('Investigating')], ['action scheduled', loc('Planned')], ['in progress',
loc('In Progress')], ['closed', loc('Closed')], ['fixed', loc('Fixed')] ] %]
<option [% 'selected ' IF state.0 == q_state %] value="[% state.0 %]">[% state.1 %]</option>
[% END %]
</select>
-<input type="submit" class="btn" value="Look up">
-<a class="export_as_csv" href="[% c.req.uri_with({ export => 1 }) %]">Export as CSV</a>
+<input type="submit" class="btn" value="[% loc('Look up') %]">
+<a class="export_as_csv" href="[% c.req.uri_with({ export => 1 }) %]">[% loc('Export as CSV') %]</a>
<table width="100%" id="reports">
<tr>
- <th scope="col">Less than 7 days old</th>
- <th scope="col">7-14 days old</th>
- <th scope="col">14-30 days old</th>
+ <th scope="col">[% loc('Less than 7 days old') %]</th>
+ <th scope="col">[% loc('7-14 days old') %]</th>
+ <th scope="col">[% loc('14-30 days old') %]</th>
</tr>
<tr>
<td width="34%"><ul>[% INCLUDE list, list = lists.1 %]</ul></td>
diff --git a/templates/web/base/js/translation_strings.html b/templates/web/base/js/translation_strings.html
index c09609411..b90a4d576 100644
--- a/templates/web/base/js/translation_strings.html
+++ b/templates/web/base/js/translation_strings.html
@@ -54,5 +54,23 @@
upload_max_files_exceeded: '[% loc ('Whoa there Testino! Three photos are enough.') | replace("'", "\\'") %]',
upload_default_message: '[% loc ('Drag and drop photos here or <u>click to upload</u>') | replace("'", "\\'") %]',
upload_cancel_confirmation: '[% loc ('Are you sure you want to cancel this upload?') | replace("'", "\\'") %]',
- upload_invalid_file_type: '[% loc ('Please upload an image only') | replace("'", "\\'") %]'
+ upload_invalid_file_type: '[% loc ('Please upload an image only') | replace("'", "\\'") %]',
+
+ login_with_email: '[% loc('Log in with email') | replace("'", "\\'") %]',
+
+ offline: {
+ your_reports: '[% loc('Your offline reports') | replace("'", "\\'") %]',
+ update_saved: '[% loc('Your update has been saved offline for submission when back online.') | replace("'", "\\'") %]',
+ update_data_saved: '[% loc('Offline update data saved') | replace("'", "\\'") %]',
+ clear_data: '[% loc('Clear offline data') | replace("'", "\\'") %]',
+ are_you_sure: '[% loc('Are you sure?') | replace("'", "\\'") %]',
+ data_cleared: '[% loc('Offline data cleared') | replace("'", "\\'") %]',
+ reports_saved: '[% loc('Reports saved offline.') | replace("'", "\\'") %]',
+ saving_reports: '[% loc('Saving reports offline', 'This is followed by a progress count, e.g. 3/5') | replace("'", "\\'") %]',
+ you_are_offline: '[% loc('You are offline') | replace("'", "\\'") %]',
+ N_saved: '[% loc('<span>%s</span> saved.') | replace("'", "\\'") %]',
+ saved_to_submit: '[% loc('You have <a id="oFN" href=""><span>%s</span> saved to submit</a>.') | replace("'", "\\'") %]',
+ update_single: '[% loc('update') | replace("'", "\\'") %]',
+ update_plural: '[% loc('updates') | replace("'", "\\'") %]'
+ }
};
diff --git a/templates/web/base/maps/google-ol.html b/templates/web/base/maps/google-ol.html
index e326bd713..7c7711de9 100644
--- a/templates/web/base/maps/google-ol.html
+++ b/templates/web/base/maps/google-ol.html
@@ -1,6 +1,11 @@
[%
+google_maps_url = "https://maps.googleapis.com/maps/api/js?v=3";
+IF c.config.GOOGLE_MAPS_API_KEY;
+ google_maps_url = google_maps_url _ "&amp;key=" _ c.config.GOOGLE_MAPS_API_KEY;
+END;
+
map_js = [
- "https://maps.googleapis.com/maps/api/js?v=3",
+ google_maps_url,
version('/js/OpenLayers/OpenLayers.google.js'),
version('/js/map-OpenLayers.js'),
version('/js/map-google-ol.js'),
diff --git a/templates/web/base/offline/appcache.html b/templates/web/base/offline/appcache.html
index 5a8ba1463..ba54b229a 100644
--- a/templates/web/base/offline/appcache.html
+++ b/templates/web/base/offline/appcache.html
@@ -1,9 +1,10 @@
[% INCLUDE 'header.html' appcache = 1 bodyclass = "fullwidthpage" %]
-<h1>Internet glitch</h1>
+<h1>[% loc('Internet glitch') %]</h1>
-<p>Sorry, we don’t have a good enough connection to fetch that page, or the
-page wasn’t found or there was a server error. Please try again later.</p>
+<p>[% loc('Sorry, we don’t have a good enough connection to fetch that page, or the
+page wasn’t found or there was a server error. Please try again later.') %]
+</p>
<ul class="item-list item-list--reports" id="offline_list"></ul>
diff --git a/templates/web/base/report/_inspect.html b/templates/web/base/report/_inspect.html
index 5e97de3f4..d2ba1cc88 100644
--- a/templates/web/base/report/_inspect.html
+++ b/templates/web/base/report/_inspect.html
@@ -12,9 +12,15 @@
</p>
<p>
[% SET local_coords = problem.local_coords; %]
- <strong>[% loc('Easting/Northing:') %]</strong>
- <span id="problem_easting">[% local_coords.0 IF local_coords %]</span>,
- <span id="problem_northing">[% local_coords.1 IF local_coords %]</span>
+ [% IF local_coords %]
+ <strong>[% loc('Easting/Northing:') %]</strong>
+ <span id="problem_easting">[% local_coords.0 %]</span>,
+ <span id="problem_northing">[% local_coords.1 %]</span>
+ [% ELSE %]
+ <strong>[% loc('Latitude/Longitude:') %]</strong>
+ <span id="problem_latitude">[% problem.latitude %]</span>
+ <span id="problem_longitude">[% problem.longitude %]</span>,
+ [% END %]
<input type="hidden" name="longitude" value="[% problem.longitude %]">
<input type="hidden" name="latitude" value="[% problem.latitude %]">
</p>
diff --git a/templates/web/base/report/_item.html b/templates/web/base/report/_item.html
index 712044592..e627227d4 100644
--- a/templates/web/base/report/_item.html
+++ b/templates/web/base/report/_item.html
@@ -46,7 +46,7 @@
[% END %]
[%- IF c.cobrand.moniker != 'fixamingata' %] [%# Default: %]
[%- IF problem.days_ago > 0 AND problem.days_ago <= c.cobrand.display_days_ago_threshold %]
- [% tprintf( nget( loc('Reported %d day ago'), loc('Reported %d days ago'), problem.days_ago), problem.days_ago ) %]
+ [% tprintf( nget('Reported %d day ago', 'Reported %d days ago', problem.days_ago), problem.days_ago ) %]
[%- ELSE %]
[% prettify_dt( problem.confirmed, 1 ) %]
[%- END %]
@@ -56,7 +56,7 @@
[%- IF dist %], [% dist %]km[% END %]
[%- IF problem.confirmed != problem.lastupdate AND problem.whensent != problem.lastupdate %],
[%- IF problem.days_ago('lastupdate') > 0 AND problem.days_ago('lastupdate') <= c.cobrand.display_days_ago_threshold %]
- [% tprintf( nget( loc('last updated %d day ago'), loc('last updated %d days ago'), problem.days_ago('lastupdate') ), problem.days_ago('lastupdate') ) %]
+ [% tprintf( nget('last updated %d day ago', 'last updated %d days ago', problem.days_ago('lastupdate') ), problem.days_ago('lastupdate') ) %]
[%- ELSE %]
[% tprintf(loc('last updated %s'), prettify_dt( problem.lastupdate, 1 ) ) %]
[%- END %]
diff --git a/templates/web/base/report/_main.html b/templates/web/base/report/_main.html
index 12733a992..83a3a1109 100644
--- a/templates/web/base/report/_main.html
+++ b/templates/web/base/report/_main.html
@@ -47,7 +47,7 @@
[% IF problem.title != original.title %]
<label>
<input type="checkbox" name="problem_revert_title" class="revert-title">
- Revert to original title
+ [% loc('Revert to original title') %]
</label>
[% END %]
<h1><input class="form-control" type="text" name="problem_title" value="[% problem.title | html %]" data-original-value="[% original.title | html %]"></h1>
@@ -57,7 +57,7 @@
<div class="moderate-edit">
<label>
<input type="checkbox" name="problem_show_name" [% 'checked' UNLESS problem.anonymous %]>
- Show reporter&rsquo;s name
+ [% loc('Show reporter&rsquo;s name') %]
</label>
</div>
<p class="report_meta_info">
@@ -66,7 +66,7 @@
[% INCLUDE 'report/_main_sent_info.html' %]
[% mlog = problem.latest_moderation_log_entry(); IF mlog %]
- <p>Moderated by [% mlog.admin_user %] at [% prettify_dt(mlog.whenedited) %]</p>
+ <p>[% tprintf(loc('Moderated by %s at %s'), mlog.admin_user, prettify_dt(mlog.whenedited)) %]</p>
[% END %]
[% INCLUDE 'report/_support.html' %]
@@ -76,7 +76,7 @@
<p class="moderate-edit">
<label>
<input type="checkbox" name="problem_show_photo" [% problem.photo ? 'checked' : '' %]>
- Show photo
+ [% loc('Show photo') %]
</label>
</p>
[% END %]
@@ -92,7 +92,7 @@
[% IF problem.detail != original.detail %]
<label>
<input type="checkbox" name="problem_revert_detail" class="revert-textarea">
- Revert to original text
+ [% loc('Revert to original text') %]
</label>
[% END %]
<textarea class="form-control" name="problem_detail" data-original-value="[% original.detail | html %]">[% problem.detail | html %]</textarea>
@@ -102,16 +102,16 @@
<p>
<label>
<input type="checkbox" class="hide-document" name="problem_hide" [% problem.hidden ? 'checked' : '' %]>
- Hide entire report
+ [% loc('Hide entire report') %]
</label>
</p>
<p>
- <label for="moderation_reason">Moderation reason:</label>
- <input type="text" class="form-control" name="moderation_reason" placeholder="Describe why you are moderating this">
+ <label for="moderation_reason">[% loc('Moderation reason:') %]</label>
+ <input type="text" class="form-control" name="moderation_reason" placeholder="[% loc('Describe why you are moderating this') %]">
</p>
<p>
- <input type="submit" class="green-btn" value="Save changes">
- <input type="button" class="btn cancel" value="Discard changes">
+ <input type="submit" class="green-btn" value="[% loc('Save changes') %]">
+ <input type="button" class="btn cancel" value="[% loc('Discard changes') %]">
</p>
</div>
[% END %]
diff --git a/templates/web/base/report/new/form_user_loggedout.html b/templates/web/base/report/new/form_user_loggedout.html
index c444ebce4..4142f4582 100644
--- a/templates/web/base/report/new/form_user_loggedout.html
+++ b/templates/web/base/report/new/form_user_loggedout.html
@@ -3,7 +3,7 @@
<div class="form-box">
<button name="facebook_sign_in" id="facebook_sign_in" value="facebook_sign_in" class="btn btn--block btn--social btn--facebook">
<img alt="" src="/i/facebook-icon-32.png" width="17" height="32">
- Log in with Facebook
+ [% loc('Log in with Facebook') %]
</button>
</div>
[% END %]
@@ -11,7 +11,7 @@
<div class="form-box">
<button name="twitter_sign_in" id="twitter_sign_in" value="twitter_sign_in" class="btn btn--block btn--social btn--twitter">
<img alt="" src="/i/twitter-icon-32.png" width="17" height="32">
- Log in with Twitter
+ [% loc('Log in with Twitter') %]
</button>
</div>
[% END %]
diff --git a/templates/web/base/report/update.html b/templates/web/base/report/update.html
index 752f20174..51c1a9e4f 100644
--- a/templates/web/base/report/update.html
+++ b/templates/web/base/report/update.html
@@ -9,15 +9,15 @@
[% IF moderating; original_update = update.moderation_original_data %]
<form method="post" action="/moderate/report/[% problem.id %]/update/[% update.id %]">
<input type="hidden" name="token" value="[% csrf_token %]">
- <input type="button" class="btn js-moderate moderate-display" value="Moderate this update">
+ <input type="button" class="btn js-moderate moderate-display" value="[% loc('Moderate this update') %]">
<div class="moderate-edit">
<label><input type="checkbox" class="hide-document" name="update_hide">
- Hide update completely?</label>
+ [% loc('Hide update completely?') %]</label>
<label><input type="checkbox" name="update_show_name" [% update.anonymous ? '' : 'checked' %]>
- Show name publicly?</label>
+ [% loc('Show name publicly?') %]</label>
[% IF update.photo or original_update.photo %]
<label><input type="checkbox" name="update_show_photo" [% update.photo ? 'checked' : '' %]>
- Show Photo?</label>
+ [% loc('Show Photo?') %]</label>
[% END %]
</div>
[% END %]
@@ -37,7 +37,7 @@
<div class="moderate-edit">
[% IF update.text != original.detail %]
<label><input type="checkbox" name="update_revert_detail" class="revert-textarea">
- Revert to original</label>
+ [% loc('Revert to original') %]</label>
[% END %]
<textarea class="form-control" name="update_detail">[% update.text | add_links %]</textarea>
</div>
@@ -46,7 +46,7 @@
<p class="meta-2">
[% INCLUDE meta_line %]
[% mlog = update.latest_moderation_log_entry(); IF mlog %]
- <br /> Moderated by [% mlog.admin_user %] at [% prettify_dt(mlog.whenedited) %]
+ <br />[% tprintf(loc('Moderated by %s at %s'), mlog.admin_user, prettify_dt(mlog.whenedited)) %]
[% END %]
</p>
</div>
@@ -54,11 +54,11 @@
</div>
[% IF moderating %]
<div class="moderate-edit">
- <label for="moderation_reason">Moderation reason:</label>
+ <label for="moderation_reason">[% loc('Moderation reason:') %]</label>
<input type="text" class="form-control" name="moderation_reason"
- placeholder="Describe why you are moderating this">
- <input type="submit" class="red-btn" value="Save changes">
- <input type="button" class="btn cancel" value="Discard changes">
+ placeholder="[% loc('Describe why you are moderating this') %]">
+ <input type="submit" class="red-btn" value="[% loc('Save changes') %]">
+ <input type="button" class="btn cancel" value="[% loc('Discard changes') %]">
</div>
</form>
[% END %]
diff --git a/templates/web/base/report/update/form_user_loggedout.html b/templates/web/base/report/update/form_user_loggedout.html
index fa26eb8f4..d9f67e06e 100644
--- a/templates/web/base/report/update/form_user_loggedout.html
+++ b/templates/web/base/report/update/form_user_loggedout.html
@@ -4,7 +4,7 @@
<div class="form-box">
<button name="facebook_sign_in" id="facebook_sign_in" value="facebook_sign_in" class="btn btn--block btn--social btn--facebook">
<img alt="" src="/i/facebook-icon-32.png" width="17" height="32">
- Log in with Facebook
+ [% loc('Log in with Facebook') %]
</button>
</div>
[% END %]
@@ -12,7 +12,7 @@
<div class="form-box">
<button name="twitter_sign_in" id="twitter_sign_in" value="twitter_sign_in" class="btn btn--block btn--social btn--twitter">
<img alt="" src="/i/twitter-icon-32.png" width="17" height="32">
- Log in with Twitter
+ [% loc('Log in with Twitter') %]
</button>
</div>
[% END %]