diff options
-rw-r--r-- | templates/web/default/js/validation_strings.html | 3 | ||||
-rw-r--r-- | web/js/fixmystreet.js | 2 |
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">… or locate me automatically</a>'; + var link = '<a href="#LINK" id="geolocate_link">… ' + validation_strings.geolocate + '</a>'; $('form[action="/alert/list"]').append(link.replace('LINK','alert/list')); if ($('body.frontpage').length) { $('#postcodeForm').after(link.replace('LINK','around')); |