From 1c0892281d808c6590fca739411e2da27070d7b7 Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Thu, 15 Oct 2020 16:50:03 -0400 Subject: [PATCH] Use HTML translated string endpoints for photo option labels --- modules/ui/sections/photo_overlays.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/ui/sections/photo_overlays.js b/modules/ui/sections/photo_overlays.js index ec93a4834..a0f6dda12 100644 --- a/modules/ui/sections/photo_overlays.js +++ b/modules/ui/sections/photo_overlays.js @@ -153,7 +153,7 @@ export function uiSectionPhotoOverlays(context) { labelEnter .append('span') .html(function(d) { - return t('photo_overlays.photo_type.' + d + '.title'); + return t.html('photo_overlays.photo_type.' + d + '.title'); }); @@ -199,15 +199,15 @@ export function uiSectionPhotoOverlays(context) { .each(function(d) { d3_select(this) .call(uiTooltip() - .title(t('photo_overlays.date_filter.' + d + '.tooltip')) + .title(t.html('photo_overlays.date_filter.' + d + '.tooltip')) .placement('top') ); }); labelEnter .append('span') - .text(function(d) { - return t('photo_overlays.date_filter.' + d + '.title'); + .html(function(d) { + return t.html('photo_overlays.date_filter.' + d + '.title'); }); labelEnter @@ -259,14 +259,14 @@ export function uiSectionPhotoOverlays(context) { .each(function() { d3_select(this) .call(uiTooltip() - .title(t('photo_overlays.username_filter.tooltip')) + .title(t.html('photo_overlays.username_filter.tooltip')) .placement('top') ); }); labelEnter .append('span') - .text(t('photo_overlays.username_filter.title')); + .html(t.html('photo_overlays.username_filter.title')); labelEnter .append('input')