]> _ Git - fluidbook-html5.git/commitdiff
wip #1938 @0:05
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 9 Feb 2018 17:37:34 +0000 (18:37 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 9 Feb 2018 17:37:34 +0000 (18:37 +0100)
js/libs/fluidbook/fluidbook.bookmarks.js
js/libs/fluidbook/fluidbook.l10n.js

index 0d3c663b2b1e5610b80731b8f84123d13b202efb..ff8b50afadc1f03ae0a9e0539ff54a64bfc02965 100644 (file)
@@ -8,8 +8,11 @@ function FluidbookBookmarks(fluidbook) {
     this._groups = 0;
     this._groupOrder = [];
 
-    this._txtAdd = this.fluidbook.l10n.__('add a bookmark',false);
-    this._txtRemove = this.fluidbook.l10n.__('remove the bookmark',false);
+    // __('add a bookmark')
+    // __('remove the bookmark')
+
+    this._txtAdd = this.fluidbook.l10n.translate('add a bookmark', false);
+    this._txtRemove = this.fluidbook.l10n.translate('remove the bookmark', false);
 
     this._cornersIndex = [];
     this._cornersPages = [];
index 2f6114531787f9dc659ddecd94dce7553d97dc72..350b442dd014ab46906c1f1e33db10fbddc644c7 100644 (file)
@@ -170,6 +170,9 @@ FluidbookL10N.prototype = {
             $(this).replaceWith(t);
         });
     },
+    translate: function (str, markupIfNonAvailable) {
+        return this.__(str, markupIfNonAvailable);
+    },
     __: function (str, markupIfNonAvailable) {
         if (str === undefined) {
             return;