From d96c11d66960480762b761d30fe175214e280a54 Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Sun, 21 Nov 2021 12:16:10 +0000 Subject: [PATCH] Allow "Download chart" text to be translated. This affects the charts on the dashboard, and contribution dashboard. --- templates/CRM/common/chart.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/CRM/common/chart.tpl b/templates/CRM/common/chart.tpl index 5d2f2cc5bf..730dc27343 100644 --- a/templates/CRM/common/chart.tpl +++ b/templates/CRM/common/chart.tpl @@ -46,7 +46,7 @@ function createChart( chartID, divName, xSize, ySize, data ) { links.style.marginBottom = '1rem'; var linkSVG = document.createElement('a'); linkSVG.href = '#'; - linkSVG.textContent = 'Download chart (SVG)'; + linkSVG.textContent = '{/literal}{ts escape="js"}Download chart (SVG){/ts}{literal}'; linkSVG.addEventListener('click', e => { e.preventDefault(); e.stopPropagation(); @@ -68,7 +68,7 @@ function createChart( chartID, divName, xSize, ySize, data ) { } var linkPNG = document.createElement('a'); linkPNG.href = '#'; - linkPNG.textContent = 'Download chart (PNG)'; + linkPNG.textContent = '{/literal}{ts escape="js"}Download chart (PNG){/ts}{literal}'; linkPNG.addEventListener('click', e => { e.preventDefault(); e.stopPropagation(); -- 2.25.1