From: Vincent Vanwaelscappel Date: Wed, 11 Oct 2017 13:10:58 +0000 (+0200) Subject: wip #1743 @0:10 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=1b8ab167b55c6788837ffffc824fc4aaf5078014;p=fluidbook-html5.git wip #1743 @0:10 --- diff --git a/js/libs/fluidbook/fluidbook.l10n.js b/js/libs/fluidbook/fluidbook.l10n.js index 12ce4336..2f611453 100644 --- a/js/libs/fluidbook/fluidbook.l10n.js +++ b/js/libs/fluidbook/fluidbook.l10n.js @@ -25,7 +25,13 @@ FluidbookL10N.prototype = { $("html").removeClass('rtl').addClass('ltr'); } - this.translations = this.fluidbook.datas.l10n[lang]; + if (lang == 'default') { + this.translations = this.fluidbook.datas.l10n[this.fluidbook.datas.defaultLang]; + $.extend(this.translations, this.fluidbook.datas.l10n[lang]); + } else { + this.translations = this.fluidbook.datas.l10n[lang]; + } + this.updateTranslations(); }, getActiveLang: function () {