Avoid concatenating text to a translation

Fixes #3064
This commit is contained in:
Tom Hughes 2021-01-21 17:15:27 +00:00
parent 82bb9d02f3
commit 8ac2302837
2 changed files with 7 additions and 2 deletions

View file

@ -222,9 +222,14 @@ L.OSM.share = function (options) {
.attr("type", "hidden")
.appendTo($form);
var args = {
width: "<span id=\"mapnik_image_width\"></span>",
height: "<span id=\"mapnik_image_height\"></span>"
};
$("<p>")
.attr("class", "text-muted")
.html(I18n.t("javascripts.share.image_size") + " <span id=\"mapnik_image_width\"></span> x <span id=\"mapnik_image_height\"></span>")
.html(I18n.t("javascripts.share.image_dimensions", args))
.appendTo($form);
$("<input>")