From f2b0617c8df114084c3317a1b5ff03e10dd951ef Mon Sep 17 00:00:00 2001 From: soufiane Date: Wed, 8 Nov 2023 10:49:32 +0100 Subject: [PATCH] wait #6439 @0:30 --- js/quiz.l10n.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/quiz.l10n.js b/js/quiz.l10n.js index 1180af3..0973749 100644 --- a/js/quiz.l10n.js +++ b/js/quiz.l10n.js @@ -6,7 +6,11 @@ function QuizL10n(quiz) { QuizL10n.prototype = { __: function (str, replace = {}) { - if (this.quiz.data.l10n[str] !== undefined && this.quiz.data.l10n[str] != null) { + if (this.quiz.data.translations) { + if (this.quiz.data.translations[str] !== undefined && this.quiz.data.translations[str] != null) { + str = this.quiz.data.translations[str]; + } + } else if (this.quiz.data.l10n[str] !== undefined && this.quiz.data.l10n[str] != null) { str = this.quiz.data.l10n[str]; } -- 2.39.5