From fbf2b45ecc0380f9ff2198da706b85280543c5a0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Florian=20Sch=C3=A4fer?= Date: Fri, 15 Jan 2016 22:05:46 +0100 Subject: [PATCH] Make "Report a problem" link in embeddable map translateable --- app/assets/javascripts/embed.js.erb | 2 +- config/locales/en.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/embed.js.erb b/app/assets/javascripts/embed.js.erb index 256b47146..a8fe29fce 100644 --- a/app/assets/javascripts/embed.js.erb +++ b/app/assets/javascripts/embed.js.erb @@ -58,7 +58,7 @@ window.onload = function () { L.Control.OSMReportAProblem = L.Control.Attribution.extend({ options: { position: 'bottomright', - prefix: 'Report a problem' + prefix: ''+I18n.t('javascripts.embed.report_problem')+'' }, onAdd: function (map) { diff --git a/config/locales/en.yml b/config/locales/en.yml index 102a13d02..776fae2da 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2172,6 +2172,8 @@ en: center_marker: "Center map on marker" paste_html: "Paste HTML to embed in website" view_larger_map: "View Larger Map" + embed: + report_problem: "Report a problem" key: title: "Map Key" tooltip: "Map Key" -- 2.39.5