From 26d7f25e2aa85218c748508f174e3f0ef616944a Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Tue, 22 Nov 2016 18:30:34 +0000 Subject: [PATCH] Don't use template strings in translate() gettext doesn't understand backtick-quoted strings --- src/gui/html/js/events.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/html/js/events.js b/src/gui/html/js/events.js index 17f379c5..8fad28ba 100644 --- a/src/gui/html/js/events.js +++ b/src/gui/html/js/events.js @@ -127,7 +127,7 @@ function onSortPlugins() { const message = result.globalMessages.find(item => ( item.text.startsWith('Cyclic interaction detected' ))).text; - throw new Error(loot.l10n.translate(`Failed to sort plugins. Details: ${message}`)); + throw new Error(loot.l10n.translate('Failed to sort plugins. Details: %s', message)); } /* Check if sorted load order differs from current load order. */