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.
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 //
You can use dictionary: https://3dflipbook.net/documentation#using-in-frameworks
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.
Nothing difficult:
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?
"$('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.
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.
Sorry, my fault, insert dictionary before script 3dflipbook.min.js:
I have done as suggested, now the block
you forgot the opening script tag (<script type="text/javascript">) before
Thank you Works as expected. Great.
Cyrillic characters also work.
Shown here in one piece. Set up before "js/dist/3dflipbook.js".
Shown here in one piece. Set up before "js/dist/3dflipbook.js".