aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Day <steve@mysociety.org>2012-11-19 16:25:26 +0000
committerMatthew Somerville <matthew@mysociety.org>2012-12-10 11:46:51 +0000
commit90ad2b9c5550941d59a0a1a0673f700d35027cef (patch)
treed370e0c378420acb80f2e0cbd7140ad909889a96
parent1c132bd736aef3e60699955f51ec23b9bfdfeacd (diff)
Make translation of geolocation text on homepage possible
-rw-r--r--templates/web/default/js/validation_strings.html3
-rw-r--r--web/js/fixmystreet.js2
2 files changed, 3 insertions, 2 deletions
diff --git a/templates/web/default/js/validation_strings.html b/templates/web/default/js/validation_strings.html
index 3148d1993..3b3a958fe 100644
--- a/templates/web/default/js/validation_strings.html
+++ b/templates/web/default/js/validation_strings.html
@@ -17,5 +17,6 @@
},
fms_extra_title: '[% loc('Please enter your title') | replace("'", "\\'") %]',
first_name: '[% loc('Please enter your first name') | replace("'", "\\'") %]',
- last_name: '[% loc('Please enter your second name') | replace("'", "\\'") %]'
+ last_name: '[% loc('Please enter your second name') | replace("'", "\\'") %]',
+ geolocate: '[% loc('or locate me automatically') | replace("'", "\\'") %]'
};
diff --git a/web/js/fixmystreet.js b/web/js/fixmystreet.js
index 6ae4ed92d..98e92606d 100644
--- a/web/js/fixmystreet.js
+++ b/web/js/fixmystreet.js
@@ -134,7 +134,7 @@ $(function(){
// Geolocation
if (geo_position_js.init()) {
- var link = '<a href="#LINK" id="geolocate_link">&hellip; or locate me automatically</a>';
+ var link = '<a href="#LINK" id="geolocate_link">&hellip; ' + validation_strings.geolocate + '</a>';
$('form[action="/alert/list"]').append(link.replace('LINK','alert/list'));
if ($('body.frontpage').length) {
$('#postcodeForm').after(link.replace('LINK','around'));