diff --git a/app/qml/BooksBookView.qml b/app/qml/BooksBookView.qml index 71081ab..260962a 100644 --- a/app/qml/BooksBookView.qml +++ b/app/qml/BooksBookView.qml @@ -77,6 +77,7 @@ SilicaFlickable { property var linkMenu property var imageView property var footnoteView + property var settingsComponent function hideViews() { if (linkMenu) linkMenu.hide() @@ -132,6 +133,25 @@ SilicaFlickable { } PullDownMenu { + MenuItem { + //: Pulley menu item + //% "Settings" + text: qsTrId("harbour-books-menu-settings") + visible: !editMode && BooksSettingsMenu + onClicked: { + if (!settingsComponent) { + settingsComponent = Qt.createComponent("../settings/BooksSettings.qml") + if (settingsComponent.status !== Component.Ready) { + console.log(settingsComponent.errorString()) + } + } + pageStack.push(settingsComponent, { + "title" : text, + "allowedOrientations": window.allowedOrientations, + "followOrientationChanges": true + }) + } + } MenuItem { //% "Back to library" text: qsTrId("harbour-books-book-view-back") diff --git a/app/qml/BooksStorageView.qml b/app/qml/BooksStorageView.qml index 7ac1891..a3dd9ef 100644 --- a/app/qml/BooksStorageView.qml +++ b/app/qml/BooksStorageView.qml @@ -95,7 +95,7 @@ SilicaFlickable { MenuItem { //: Pulley menu item //% "Settings" - text: qsTrId("harbour-books-storage-menu-settings") + text: qsTrId("harbour-books-menu-settings") visible: !editMode && BooksSettingsMenu onClicked: { if (!_settingsComponent) { diff --git a/app/translations/harbour-books-de.ts b/app/translations/harbour-books-de.ts index e3bee45..641e9d8 100644 --- a/app/translations/harbour-books-de.ts +++ b/app/translations/harbour-books-de.ts @@ -7,6 +7,11 @@ Books Bücher + + Settings + Pulley menu item + Einstellungen + Back to library Zur Bibliothek @@ -67,11 +72,6 @@ %0 Bücher - - Settings - Pulley menu item - Einstellungen - Scan downloads Pulley menu item diff --git a/app/translations/harbour-books-es.ts b/app/translations/harbour-books-es.ts index 433fd40..f300edc 100644 --- a/app/translations/harbour-books-es.ts +++ b/app/translations/harbour-books-es.ts @@ -7,6 +7,11 @@ Books Libros + + Settings + Pulley menu item + Configuración + Back to library Regresar a la librería @@ -67,11 +72,6 @@ %0 libros - - Settings - Pulley menu item - Configuración - Scan downloads Pulley menu item diff --git a/app/translations/harbour-books-fi.ts b/app/translations/harbour-books-fi.ts index cc25c3d..d581f74 100644 --- a/app/translations/harbour-books-fi.ts +++ b/app/translations/harbour-books-fi.ts @@ -7,6 +7,11 @@ Books Kirjat + + Settings + Pulley menu item + Asetukset + Back to library Takaisin kirjalistaan @@ -67,11 +72,6 @@ %0 kirjaa - - Settings - Pulley menu item - Asetukset - Scan downloads Pulley menu item diff --git a/app/translations/harbour-books-hu.ts b/app/translations/harbour-books-hu.ts index 783de79..95a5fb3 100644 --- a/app/translations/harbour-books-hu.ts +++ b/app/translations/harbour-books-hu.ts @@ -7,6 +7,11 @@ Books Könyvek + + Settings + Pulley menu item + Beállítások + Back to library Vissza a könyvtárhoz @@ -66,11 +71,6 @@ %0 könyv - - Settings - Pulley menu item - Beállítások - Scan downloads Pulley menu item diff --git a/app/translations/harbour-books-nl.ts b/app/translations/harbour-books-nl.ts index c5ff842..728da71 100644 --- a/app/translations/harbour-books-nl.ts +++ b/app/translations/harbour-books-nl.ts @@ -7,6 +7,11 @@ Books Boeken + + Settings + Pulley menu item + Instellingen + Back to library Terug naar bibliotheek @@ -67,11 +72,6 @@ %0 boeken - - Settings - Pulley menu item - Instellingen - Scan downloads Pulley menu item diff --git a/app/translations/harbour-books-pl.ts b/app/translations/harbour-books-pl.ts index 96c83dc..4f9231d 100644 --- a/app/translations/harbour-books-pl.ts +++ b/app/translations/harbour-books-pl.ts @@ -7,6 +7,11 @@ Books Książki + + Settings + Pulley menu item + Ustawienia + Back to library Wróć do biblioteki @@ -68,11 +73,6 @@ %0 książek - - Settings - Pulley menu item - Ustawienia - Scan downloads Pulley menu item diff --git a/app/translations/harbour-books-pt_BR.ts b/app/translations/harbour-books-pt_BR.ts index 5029627..5e43420 100644 --- a/app/translations/harbour-books-pt_BR.ts +++ b/app/translations/harbour-books-pt_BR.ts @@ -7,6 +7,11 @@ Books Livros + + Settings + Pulley menu item + Configurações + Back to library Voltar à biblioteca @@ -67,11 +72,6 @@ %0 Livros - - Settings - Pulley menu item - Configurações - Scan downloads Pulley menu item diff --git a/app/translations/harbour-books-ru.ts b/app/translations/harbour-books-ru.ts index 0a5f110..d051424 100644 --- a/app/translations/harbour-books-ru.ts +++ b/app/translations/harbour-books-ru.ts @@ -7,6 +7,11 @@ Books Книги + + Settings + Pulley menu item + Настройки + Back to library Вернуться в библиотеку @@ -68,11 +73,6 @@ %0 книг - - Settings - Pulley menu item - Настройки - Scan downloads Pulley menu item diff --git a/app/translations/harbour-books-sv.ts b/app/translations/harbour-books-sv.ts index cda6354..ce6e212 100644 --- a/app/translations/harbour-books-sv.ts +++ b/app/translations/harbour-books-sv.ts @@ -7,6 +7,11 @@ Books Böcker + + Settings + Pulley menu item + Inställningar + Back to library Tillbaka till biblioteket @@ -67,11 +72,6 @@ %0 böcker - - Settings - Pulley menu item - Inställningar - Scan downloads Pulley menu item diff --git a/app/translations/harbour-books-zh_CN.ts b/app/translations/harbour-books-zh_CN.ts index f31fa7e..3fe2613 100644 --- a/app/translations/harbour-books-zh_CN.ts +++ b/app/translations/harbour-books-zh_CN.ts @@ -7,6 +7,11 @@ Books 书籍 + + Settings + Pulley menu item + 设置 + Back to library 返回书库 @@ -66,11 +71,6 @@ %0 本书籍 - - Settings - Pulley menu item - 设置 - Scan downloads Pulley menu item diff --git a/app/translations/harbour-books.ts b/app/translations/harbour-books.ts index 35d9cc5..339f0d8 100644 --- a/app/translations/harbour-books.ts +++ b/app/translations/harbour-books.ts @@ -7,6 +7,11 @@ Books Books + + Settings + Pulley menu item + Settings + Back to library Back to library @@ -67,11 +72,6 @@ %0 books - - Settings - Pulley menu item - Settings - Scan downloads Pulley menu item