aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/fixmystreet.js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-01-24 15:22:39 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-01-24 15:22:39 +0000
commit42a4d0357fb887526727beb0804f06cf3b7dbd73 (patch)
tree422e57388b05b541966fde26d6f2b885a370465d /web/js/fixmystreet.js
parent033eefc509fabf4046aba4e5dffe4eee758ef937 (diff)
Get remaining English hardcoded strings from JavaScript into translatable template.
Diffstat (limited to 'web/js/fixmystreet.js')
-rw-r--r--web/js/fixmystreet.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/js/fixmystreet.js b/web/js/fixmystreet.js
index 4ac467d49..fda019b1d 100644
--- a/web/js/fixmystreet.js
+++ b/web/js/fixmystreet.js
@@ -159,13 +159,13 @@ $(function(){
}, function(err) {
$link.find('img').remove();
if (err.code == 1) { // User said no
- $link.html("You declined; please fill in the box above");
+ $link.html(translation_strings.geolocation_declined);
} else if (err.code == 2) { // No position
- $link.html("Could not look up location");
+ $link.html(translation_strings.geolocation_no_position);
} else if (err.code == 3) { // Too long
- $link.html("No result returned");
+ $link.html(translation_strings.geolocation_no_result);
} else { // Unknown
- $link.html("Unknown error");
+ $link.html(translation_strings.geolocation_unknown);
}
}, {
enableHighAccuracy: true,