From 3be0b439bd02776d6c31eece10cf4b49c3e08bfc Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 4 May 2021 11:25:12 +0530 Subject: [PATCH] translate default image name --- www/common/inner/common-mediatag.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/common/inner/common-mediatag.js b/www/common/inner/common-mediatag.js index 9f7506d61..966724fa1 100644 --- a/www/common/inner/common-mediatag.js +++ b/www/common/inner/common-mediatag.js @@ -431,7 +431,7 @@ define([ else if ($this.hasClass("cp-app-code-context-download")) { if ($mt.is('pre.mermaid') || $mt.is('pre.markmap')) { (function () { - var name = 'image.svg'; // XXX + var name = Messages.mediatag_defaultImageName + '.svg'; var svg = $mt.find('svg')[0].cloneNode(true); $(svg).attr('xmlns', 'http://www.w3.org/2000/svg').attr('width', $mt.width()).attr('height', $mt.height()); $(svg).find('foreignObject').each(function (i, el) { @@ -454,7 +454,7 @@ define([ } if ($mt.is('pre.mathjax')) { (function () { - var name = 'image.png'; // XXX + var name = Messages.mediatag_defaultImageName + '.png'; var svg = $mt.find('> span > svg')[0]; var clone = svg.cloneNode(true); var html = clone.outerHTML;