aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-01-24 15:00:57 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-01-24 15:00:57 +0000
commit0a0f987541b1e0fad869f3af000ee3559b1afbc4 (patch)
treed37a12a7bce2cc5aa0d66f9b85ced16c6e92a66f
parente3e507fc06281bf8d23a112412da7e9a85e8553c (diff)
More details to Details and in translation.
-rw-r--r--templates/web/default/js/translation_strings.html1
-rw-r--r--web/js/map-OpenLayers.js2
2 files changed, 2 insertions, 1 deletions
diff --git a/templates/web/default/js/translation_strings.html b/templates/web/default/js/translation_strings.html
index 926b59047..6e586d943 100644
--- a/templates/web/default/js/translation_strings.html
+++ b/templates/web/default/js/translation_strings.html
@@ -25,5 +25,6 @@
home: '[% loc('Home') | replace("'", "\\'") %]',
back: '[% loc('Back') | replace("'", "\\'") %]',
how_to_send: '[% loc('How to send successful reports') | replace("'", "\\'") %]',
+ more_details: '[% loc('Details') | replace("'", "\\'") %]',
report_problem_heading: '[% loc('Click map to report a problem') | replace("'", "\\'") %]'
};
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js
index cd77beefb..19bf8ee94 100644
--- a/web/js/map-OpenLayers.js
+++ b/web/js/map-OpenLayers.js
@@ -171,7 +171,7 @@ function fixmystreet_onload() {
var popup = new OpenLayers.Popup.FramedCloud("popup",
feature.geometry.getBounds().getCenterLonLat(),
null,
- feature.attributes.title + "<br><a href=/report/" + feature.attributes.id + ">More details</a>",
+ feature.attributes.title + "<br><a href=/report/" + feature.attributes.id + ">" + translation_strings.more_details + "</a>",
{ size: new OpenLayers.Size(0,0), offset: new OpenLayers.Pixel(0,-40) },
true, onPopupClose);
feature.popup = popup;