From a5a15853fe8519d1099dfbc48d50b77ea7195fd1 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Sun, 9 Nov 2014 12:51:11 +0000 Subject: [PATCH] Fixed translation script again. --- resources/report/js/l10n.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/report/js/l10n.js b/resources/report/js/l10n.js index 078ad71d..6e59936c 100644 --- a/resources/report/js/l10n.js +++ b/resources/report/js/l10n.js @@ -101,11 +101,11 @@ pluginCard.getElementById('clearMetadata').firstChild.nextSibling.textContent = l10n.translate("Clear User Metadata").fetch(); /* Plugin List Item Template */ - var pluginLI = pluginLiImportDoc.querySelector('#pluginLI').content; - pluginLI.querySelector('.dummyPlugin').title = l10n.translate("Dummy Plugin").fetch(); - pluginLI.querySelector('.loadsBSA').title = l10n.translate("Loads BSA").fetch(); - pluginLI.querySelector('.hasUserEdits').title = l10n.translate("Has User Metadata").fetch(); - pluginLI.querySelector('.hasGlobalPriority').title = l10n.translate("Priority Is Global").fetch(); + var pluginItem = document.querySelector('link[rel="import"][href$="loot-plugin-item.html"]').import.querySelector('template').content; + pluginItem.querySelector('.dummyPlugin').title = l10n.translate("Dummy Plugin").fetch(); + pluginItem.querySelector('.loadsBSA').title = l10n.translate("Loads BSA").fetch(); + pluginItem.querySelector('.hasUserEdits').title = l10n.translate("Has User Metadata").fetch(); + pluginItem.querySelector('.hasGlobalPriority').title = l10n.translate("Priority Is Global").fetch(); /* Message row template */ var messageRow = editableTableImportDoc.querySelector('#messageRow').content;