From b0e32916021c52ab7eb5425d370c6503b83d054e Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Mon, 14 Nov 2016 17:35:33 +0000 Subject: [PATCH] Fix metadata editor text not translating --- src/gui/html/js/translateStaticText.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/html/js/translateStaticText.js b/src/gui/html/js/translateStaticText.js index fcfed2ad..4094281a 100644 --- a/src/gui/html/js/translateStaticText.js +++ b/src/gui/html/js/translateStaticText.js @@ -27,7 +27,7 @@ function translatePluginEditorTemplate(l10n) { /* Plugin editor template. */ - const pluginEditor = document.getElementById('loot-plugin-editor').querySelector('template').content; + const pluginEditor = document.getElementById('editor').shadowRoot; pluginEditor.getElementById('enableEdits').previousElementSibling.textContent = l10n.translate('Enable Edits'); pluginEditor.getElementById('priorityValue').previousElementSibling.textContent = l10n.translate('Priority');