Skip to content

Commit

Permalink
Make 'Permalink' JS string translatable.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Sep 3, 2013
1 parent ec890c8 commit 8140fcb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions templates/web/default/js/translation_strings.html
Original file line number Diff line number Diff line change
Expand Up @@ -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("'", "\\'") %]'
};
2 changes: 1 addition & 1 deletion web/cobrands/fixmystreet/fixmystreet.js
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 8140fcb

Please sign in to comment.