diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2013-08-31 11:56:47 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2013-09-03 09:08:44 +0100 |
commit | 8140fcb14ce0a32273d3e98327968d77e98fa002 (patch) | |
tree | 226e2ea3a594d85b8507332e7d4c0a2e10ed5392 | |
parent | ec890c87afe58f48a212019315222ae27d92672d (diff) |
Make 'Permalink' JS string translatable.
-rw-r--r-- | templates/web/default/js/translation_strings.html | 2 | ||||
-rw-r--r-- | web/cobrands/fixmystreet/fixmystreet.js | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/templates/web/default/js/translation_strings.html b/templates/web/default/js/translation_strings.html index a0cfc02c9..f6c4f7d41 100644 --- a/templates/web/default/js/translation_strings.html +++ b/templates/web/default/js/translation_strings.html @@ -36,5 +36,7 @@ ok: '[% loc('OK') | replace("'", "\\'") %]', map: '[% loc('MAP') | replace("'", "\\'") %]', + permalink: '[% loc('Permalink') | replace("'", "\\'") %]', + report_problem_heading: '[% loc('Click map to report a problem') | replace("'", "\\'") %]' }; diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js index f638eed9a..1bcb8f3c0 100644 --- a/web/cobrands/fixmystreet/fixmystreet.js +++ b/web/cobrands/fixmystreet/fixmystreet.js @@ -379,7 +379,7 @@ $.fn.drawer = function(id, ajax) { //add permalink on desktop, force hide on mobile if (cobrand != 'zurich') { - $('#sub_map_links').append('<a href="#" id="map_permalink">Permalink</a>'); + $('#sub_map_links').append('<a href="#" id="map_permalink">' + translation_strings.permalink + '</a>'); } if($('.mobile').length){ |