From: Vincent Vanwaelscappel Date: Wed, 21 Oct 2020 15:17:57 +0000 (+0200) Subject: wip #3983 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=bb22d00aded6a5b0024e8604e354afd148e23ac6;p=fluidbook-html5.git wip #3983 @0.25 --- diff --git a/js/libs/fluidbook/fluidbook.nav.js b/js/libs/fluidbook/fluidbook.nav.js index ad18edbd..c0440c12 100644 --- a/js/libs/fluidbook/fluidbook.nav.js +++ b/js/libs/fluidbook/fluidbook.nav.js @@ -390,6 +390,7 @@ FluidbookNav.prototype = { } try { if (homeURL !== '') { + // __('home') link = this.addLink(navType, 'nav-home', homeURL, 'home', 'home', 'home', 'Control+H'); } } catch (err) { @@ -411,8 +412,10 @@ FluidbookNav.prototype = { }); } else if (icon === 'index') { + // __('overview') link = this.addLink(navType, 'nav-index', '#/index', 'index', 'overview', 'overview', 'Control+O'); } else if (icon === 'chapters') { + // __('chapters') if (!this.fluidbook.settings.displayChaptersIcon) { continue; } @@ -435,6 +438,7 @@ FluidbookNav.prototype = { } // Sharing icons - this may contain many different icons } else if (icon === 'friend') { + // __('share') if (this.fluidbook.share.isEnabled()) { if (navType === 'horizontalNav') { if (this.fluidbook.settings.share) { @@ -447,12 +451,16 @@ FluidbookNav.prototype = { } } else if (icon === 'bookmark' && this.fluidbook.settings.bookmark) { + // __('bookmarks') link = this.addLink(navType, 'nav-bookmarks', '#/bookmark', 'bookmarks', 'bookmarks', 'bookmarks', 'Control+B'); } else if (icon === 'pdf' && this.fluidbook.settings.pdf) { + // __('download') link = this.addLink(navType, 'nav-download', '#', 'download', 'download', 'download', 'Control+S'); } else if (icon === 'print' && this.fluidbook.settings.print) { + // __('print') link = this.addLink(navType, 'nav-print', '#', 'print', 'print', 'print', 'Control+P'); } else if (icon === 'basket' && this.fluidbook.cart !== undefined && this.fluidbook.cart.enabled) { + // __('basket') link = this.addLink(navType, this.fluidbook.settings.cartIcon, '#/cart', 'cart', 'basket', 'basket', 'Control+Alt+C'); $(this.fluidbook).on('fluidbook.cart.updateIcon', {link: $(link).attr('id')}, function (e, data) { var n = data.number; @@ -483,22 +491,30 @@ FluidbookNav.prototype = { } } else if (icon === 'help') { + // __('help') link = this.addLink(navType, 'nav-help', '#', 'help', 'help', 'help', 'F1'); } else if (icon === 'zoom' && !this.fluidbook.support.isMobile) { + // __('zoom in') + // __('zoom out') link = this.addLink(navType, 'nav-zoomin', '#', 'zoomin', 'zoom in', 'zoom in'); - link = this.addLink(navType, 'nav-zoomout', '#', 'zoomout', 'zoom out', 'zoom out'); - + link = this.addLink(navType, 'nav-zoomut', '#', 'zoomout', 'zoom out', 'zoom out'); } else if (icon === 'fullscreen' && this.fluidbook.support.fullscreen && !this.fluidbook.settings.phonegap) { + // __('switch between fullscreen and normal') link = this.addLink(navType, 'nav-' + icon, '#', icon, 'full screen', 'switch between fullscreen and normal', 'F11'); } else if (icon === 'sound' && this.fluidbook.sound.enabled) { + // __('switch off the sound') + // __('switch on the sound') + // __('switch on / switch off the sound') link = this.addLink(navType, 'nav-sound-on', '#', 'sound-on', 'switch off the sound', 'switch on / switch off the sound', 'F10'); link2 = this.addLink(navType, 'nav-sound-off', '#', 'sound-off', 'switch on the sound', 'switch on / switch off the sound', 'F10'); } else if (icon === 'search') { + // __('search') // Only the horizontal icon menu has the search icon, which opens the main menu if (this.fluidbook.settings.search && navType === 'horizontalNav') { link = this.addLink(navType, 'nav-search', '#', 'searchIcon', 'search', 'search', 'Control+F'); } } else if (icon === 'notes') { + // __('notes') if (this.fluidbook.notes.enabled) { link = this.addLink(navType, 'nav-notes', '#', 'notes', 'notes', 'notes', 'Control+Alt+N'); }