Don't use template strings in translate()

gettext doesn't understand backtick-quoted strings
This commit is contained in:
Oliver Hamlet
2016-11-24 17:58:39 +00:00
parent 97640895a9
commit 26d7f25e2a
+1 -1
View File
@@ -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. */