From 567007fd2e0bb046800b40e26251ff61253ce60a Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 28 Sep 2018 15:23:09 +0200 Subject: [PATCH] wip #2208 @0.5 --- js/libs/fluidbook/fluidbook.l10n.js | 6 ++++++ js/libs/fluidbook/forms/fluidbook.form.avery.js | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/js/libs/fluidbook/fluidbook.l10n.js b/js/libs/fluidbook/fluidbook.l10n.js index 1d683c9f..99f46395 100644 --- a/js/libs/fluidbook/fluidbook.l10n.js +++ b/js/libs/fluidbook/fluidbook.l10n.js @@ -3,6 +3,7 @@ function FluidbookL10N(fluidbook, lang) { this.multilang = []; this.multilangEnabled = false; this.fluidbook = fluidbook; + this.currentLang; this.init(lang); this.initMultilang(); this.load(); @@ -14,6 +15,11 @@ FluidbookL10N.prototype = { lang = 'default'; } this.lang = lang; + if (this.lang === "default") { + this.currentLang = this.fluidbook.datas.defaultLang; + } else { + this.currentLang = this.lang; + } }, load: function () { diff --git a/js/libs/fluidbook/forms/fluidbook.form.avery.js b/js/libs/fluidbook/forms/fluidbook.form.avery.js index 08950ecd..28ac83b9 100644 --- a/js/libs/fluidbook/forms/fluidbook.form.avery.js +++ b/js/libs/fluidbook/forms/fluidbook.form.avery.js @@ -86,7 +86,7 @@ FluidbookAveryForm.prototype = { var view = '
' + $this.fluidbook.menu.closeButton() + '

' + $this.locale.title + '

'; view += '
'; view += '
'; - view += '
'; + view += '
'; view += '

' + this.locale.subtitle + '

'; view += '
'; view += '