X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7c3c9618eae9e8d8fdb293b8b82fc1d9ef7752d5..e2e61692ea04fc156221082aeddc21ea18facdec:/app/assets/javascripts/user.js diff --git a/app/assets/javascripts/user.js b/app/assets/javascripts/user.js index f3fe02e0c..77a71097b 100644 --- a/app/assets/javascripts/user.js +++ b/app/assets/javascripts/user.js @@ -26,9 +26,9 @@ $(function () { icon: "icon geolocate", iconLoading: "icon geolocate", strings: { - title: I18n.t("javascripts.map.locate.title"), + title: OSM.i18n.t("javascripts.map.locate.title"), popup: function (options) { - return I18n.t("javascripts.map.locate." + options.unit + "Popup", { count: options.distance }); + return OSM.i18n.t("javascripts.map.locate." + options.unit + "Popup", { count: options.distance }); } } }).addTo(map); @@ -210,7 +210,7 @@ $(function () { }); $("input[name=legale]").change(function () { - $("#contributorTerms").html("
" + I18n.t("browse.start_rjs.loading") + "
"); + $("#contributorTerms").html("
" + OSM.i18n.t("browse.start_rjs.loading") + "
"); fetch($(this).data("url")) .then(r => r.text()) .then(html => { $("#contributorTerms").html(html); });