From: Vincent Vanwaelscappel Date: Fri, 23 Mar 2018 16:37:05 +0000 (+0100) Subject: wip #2002 @0:10 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=1898dc74bc284fb66f8e65df2fe70345490c8053;p=fluidbook-html5.git wip #2002 @0:10 --- diff --git a/js/libs/fluidbook/fluidbook.l10n.js b/js/libs/fluidbook/fluidbook.l10n.js index 350b442d..5f957ac9 100644 --- a/js/libs/fluidbook/fluidbook.l10n.js +++ b/js/libs/fluidbook/fluidbook.l10n.js @@ -183,10 +183,10 @@ FluidbookL10N.prototype = { if (this.translations[str] == undefined || this.translations[str] == null || this.translations[str] == '') { - if (markupIfNonAvailable == undefined || markupIfNonAvailable) { - return '~ ' + str + ' ~'; - } else { + if (markupIfNonAvailable == undefined || !markupIfNonAvailable) { return str; + } else { + return '~ ' + str + ' ~'; } } return this.translations[str];