3D FlipBook - <html lang="fr">

p***t@otto-riehl.de
2023-10-24
2023-11-05

I want to open e-books in six languages. de, en, es, fr, pt, uk,

For the terms in the tooltips and the email text from Share, are there localization files for these?

Replies

a***r@3dflipbook.net
2023-11-01
2023-11-01
p***t@otto-riehl.de
2023-11-02
2023-11-02

Sorry, I am not a programmer. I did not understand the necessary procedure.

I want to open e-books in six languages. de, en, es, fr, pt, uk,

For this I use six different "Start.html". In the six "Start.html" the language is given.

html lang="es"

and the PDF in the corresponding language.

$('#container').FlipBook({ pdf: 'books/pdf/e-book_a1_es_krasna.pdf',

I want to customize the terms in the tooltips for each language.

Zoom in, Zoom out, Table of contents, Previous page, Next page, Share, Full screen, More, Single page, Sounds, Goto first page, Goto last page, Table of contents, Bookmarks, Thumbnails, Search, Close,

Important for me is the Ukrainian language in Cyrillic.

I suspect a language file with the terms and the substitutions. If I have a pattern, I can work according to it.

Can someone write down the procedure for me.

a***r@3dflipbook.net
2023-11-07
2023-11-07

Nothing difficult:

window.FB3D_LOCALE = {
  dictionary: {
    'Next page': 'Next page translation',
    'Previous page': 'Previous page translation',
    ...
  }
};

$('body').FlipBook({
...
});
p***t@otto-riehl.de
2023-11-07
2023-11-07

I have inserted "window.FB3D_LOCALE " in line 44 to 66.

The line "$('body').FlipBook({" I do not understand to insert?

What do I have to change?

      // Start translation for "es" {
     window.FB3D_LOCALE = {
     dictionary: {
      'Zoom in': 'Acercar',
      'Zoom out': 'Alejar',
      'Table of contents': 'Índice de contenidos',
      'Next page': 'Página siguiente',
      'Previous page': 'Página anterior',
      'Share': 'Compartir',
      'Full screen': 'Pantalla completa',
      'More': 'Más',
      'Single page': 'Página individual',
      'Sounds': 'Sonidos',
      'Goto first page': 'Ir a la primera página',
      'Goto last page': 'Ir a la última página',
      'Table of contents': 'Índice',
      'Bookmarks': 'Marcadores',
      'Thumbnails': 'Miniaturas',
      'Search': 'Buscar en',
      'Close': 'Cerrar',
    }
  };
       // End translation for "es" }
a***r@3dflipbook.net
2023-11-07
2023-11-07

"$('body').FlipBook({" is just to show that you need to initialize the dictionary before creating your book. You need to use your own code instead of this.

p***t@otto-riehl.de
2023-11-07
2023-11-07

Can I ask for help?

The page source text can be viewed. What do I need to change or add?

I have no idea about coding.

a***r@3dflipbook.net
2023-11-07
2023-11-07

Sorry, my fault, insert dictionary before script 3dflipbook.min.js:

    <script type="text/javascript">
      window.FB3D_LOCALE = {
        dictionary: {
          'Zoom in': 'Acercar',
          'Zoom out': 'Alejar',
          'Table of contents': 'Índice de contenidos',
          'Next page': 'Página siguiente',
          'Previous page': 'Página anterior',
          'Share': 'Compartir',
          'Full screen': 'Pantalla completa',
          'More': 'Más',
          'Single page': 'Página individual',
          'Sounds': 'Sonidos',
          'Goto first page': 'Ir a la primera página',
          'Goto last page': 'Ir a la última página',
          'Table of contents': 'Índice',
          'Bookmarks': 'Marcadores',
          'Thumbnails': 'Miniaturas',
          'Search': 'Buscar en',
          'Close': 'Cerrar',
        }
      };
    </script>
    <script src="js/dist/3dflipbook.js"></script>
p***t@otto-riehl.de
2023-11-07
2023-11-07

I have done as suggested, now the block

 $('#container').FlipBook({
a***r@3dflipbook.net
2023-11-07
2023-11-07

you forgot the opening script tag (<script type="text/javascript">) before

$('#container').FlipBook({
p***t@otto-riehl.de
2023-11-07
2023-11-07

Thank you Works as expected. Great.

p***t@otto-riehl.de
2023-11-07
2023-11-07

Cyrillic characters also work.

p***t@otto-riehl.de
2023-11-07
2023-11-07

Shown here in one piece. Set up before "js/dist/3dflipbook.js".

p***t@otto-riehl.de
2023-11-07
2023-11-07

Shown here in one piece. Set up before "js/dist/3dflipbook.js".

      // es Sprachanpassung Anfang //

      // es Sprachanpassung Ende // 

Log In to leave a comment