From 8140fcb14ce0a32273d3e98327968d77e98fa002 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Sat, 31 Aug 2013 11:56:47 +0100 Subject: Make 'Permalink' JS string translatable. --- templates/web/default/js/translation_strings.html | 2 ++ web/cobrands/fixmystreet/fixmystreet.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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('Permalink'); + $('#sub_map_links').append('' + translation_strings.permalink + ''); } if($('.mobile').length){ -- cgit v1.2.3