diff --git a/app/settings/BooksSettings.qml b/app/settings/BooksSettings.qml
index 8b9d5e9..36c4759 100644
--- a/app/settings/BooksSettings.qml
+++ b/app/settings/BooksSettings.qml
@@ -160,6 +160,61 @@ Page {
}
}
}
+
+ SectionHeader {
+ //: Section header for memory card settings
+ //% "Memory card"
+ text: qsTrId("harbour-books-settings-page-removable-section_header")
+ }
+
+ TextField {
+ id: removableRootField
+ width: parent.width
+ labelVisible: false
+
+ Component.onCompleted: text = removableRoot.value
+ onActiveFocusChanged: removableRoot.value = text
+ EnterKey.onClicked: page.focus = true
+ EnterKey.iconSource: "image://theme/icon-m-enter-close"
+
+ ConfigurationValue {
+ id: removableRoot
+ key: rootPath + "removableRoot"
+ defaultValue: "Books"
+ onValueChanged: removableRootField.text = value
+ }
+ }
+
+ Label {
+ id: removableRootLabel
+ //: Settings field label
+ //% "Books folder"
+ text: qsTrId("harbour-books-settings-page-removable_root-label")
+ x: removableRootField.textLeftMargin
+ width: removableRootField.width - removableRootField.textLeftMargin - removableRootField.textRightMargin
+ height: text.length ? (implicitHeight + Theme.paddingMedium) : 0
+ anchors {
+ topMargin: -Theme.paddingSmall
+ bottomMargin: Theme.paddingMedium
+ }
+ color: removableRootField.activeFocus ? Theme.highlightColor : Theme.primaryColor
+ opacity: removableRootField.activeFocus ? 1.0 : 0.6
+ elide: Text.ElideRight
+ font.pixelSize: Theme.fontSizeSmall
+ }
+
+ Label {
+ //: Settings field description
+ //% "Leave the folder name empty to scan the entire memory card for books."
+ text: qsTrId("harbour-books-settings-page-removable_root-description")
+ height: text.length ? (implicitHeight + Theme.paddingMedium) : 0
+ width: removableRootLabel.width
+ x: removableRootLabel.x
+ font.pixelSize: Theme.fontSizeExtraSmall
+ color: Theme.secondaryColor
+ wrapMode: Text.Wrap
+ }
+
}
}
}
diff --git a/app/translations/harbour-books-de.ts b/app/translations/harbour-books-de.ts
index 7c1e22c..4b78514 100644
--- a/app/translations/harbour-books-de.ts
+++ b/app/translations/harbour-books-de.ts
@@ -134,6 +134,21 @@
Combo box value for landscape orientation
Querformat
+
+
+
+ Settings field label
+ Bücher Verzeichnis
+
+
+
+ Settings field description
+ Lassen Sie den Verzeichnisnamen leer, um die gesamte Speicherkarte für Bücher zu scannen.
+
External link
diff --git a/app/translations/harbour-books-fi.ts b/app/translations/harbour-books-fi.ts
index 48dfe83..de4e186 100644
--- a/app/translations/harbour-books-fi.ts
+++ b/app/translations/harbour-books-fi.ts
@@ -134,6 +134,21 @@
Combo box value for landscape orientation
Vaaka
+
+
+
+ Settings field label
+ Kansion nimi
+
+
+
+ Settings field description
+ Jätä kenttä tyhjäksi käyttää kokonaista muistikorttia.
+
External link
diff --git a/app/translations/harbour-books-ru.ts b/app/translations/harbour-books-ru.ts
index a9e6420..d5222df 100644
--- a/app/translations/harbour-books-ru.ts
+++ b/app/translations/harbour-books-ru.ts
@@ -136,6 +136,21 @@
Combo box value for landscape orientation
Альбомная
+
+
+
+ Settings field label
+ Книжная папка
+
+
+
+ Settings field description
+ Если оставить имя папки пустым, то можно будет найти книгу в любой папке на карте памяти. Особого смысла в этой настройке нет, просто так исторически сложилось, что по умолчанию книги искались только в папке Books, а теперь можно вообще где угодно.
+
External link menu title
diff --git a/app/translations/harbour-books-sv.ts b/app/translations/harbour-books-sv.ts
index 4aced20..39e08a5 100644
--- a/app/translations/harbour-books-sv.ts
+++ b/app/translations/harbour-books-sv.ts
@@ -134,6 +134,21 @@
Combo box value for landscape orientation
Liggande
+
+
+
+ Settings field label
+ Böcker mappnamn
+
+
+
+ Settings field description
+ Lämna fältet tomt för att söka igenom hela minneskortet för böcker.
+
External link
diff --git a/app/translations/harbour-books.ts b/app/translations/harbour-books.ts
index ba91d0d..7cb9454 100644
--- a/app/translations/harbour-books.ts
+++ b/app/translations/harbour-books.ts
@@ -134,6 +134,21 @@
Combo box value for landscape orientation
Landscape
+
+
+
+ Settings field label
+ Books folder
+
+
+
+ Settings field description
+ Leave the folder name empty to scan the entire memory card for books.
+
External link menu title