[app] Made books folder on the memory card configurable
This commit is contained in:
parent
af9271dff5
commit
417bf0371e
6 changed files with 130 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -134,6 +134,21 @@
|
|||
<extracomment>Combo box value for landscape orientation</extracomment>
|
||||
<translation>Querformat</translation>
|
||||
</message>
|
||||
<message id="harbour-books-settings-page-removable-section_header">
|
||||
<source>Memory card</source>
|
||||
<extracomment>Section header for memory card settings</extracomment>
|
||||
<translation>Speicherkarte</translation>
|
||||
</message>
|
||||
<message id="harbour-books-settings-page-removable_root-label">
|
||||
<source>Books folder</source>
|
||||
<extracomment>Settings field label</extracomment>
|
||||
<translation type="unfinished">Bücher Verzeichnis</translation>
|
||||
</message>
|
||||
<message id="harbour-books-settings-page-removable_root-description">
|
||||
<source>Leave the folder name empty to scan the entire memory card for books.</source>
|
||||
<extracomment>Settings field description</extracomment>
|
||||
<translation type="unfinished">Lassen Sie den Verzeichnisnamen leer, um die gesamte Speicherkarte für Bücher zu scannen.</translation>
|
||||
</message>
|
||||
<message id="harbour-books-book-browser_link-title">
|
||||
<source>Link</source>
|
||||
<oldsource>External link</oldsource>
|
||||
|
|
|
@ -134,6 +134,21 @@
|
|||
<extracomment>Combo box value for landscape orientation</extracomment>
|
||||
<translation>Vaaka</translation>
|
||||
</message>
|
||||
<message id="harbour-books-settings-page-removable-section_header">
|
||||
<source>Memory card</source>
|
||||
<extracomment>Section header for memory card settings</extracomment>
|
||||
<translation>Muistikortti</translation>
|
||||
</message>
|
||||
<message id="harbour-books-settings-page-removable_root-label">
|
||||
<source>Books folder</source>
|
||||
<extracomment>Settings field label</extracomment>
|
||||
<translation type="unfinished">Kansion nimi</translation>
|
||||
</message>
|
||||
<message id="harbour-books-settings-page-removable_root-description">
|
||||
<source>Leave the folder name empty to scan the entire memory card for books.</source>
|
||||
<extracomment>Settings field description</extracomment>
|
||||
<translation type="unfinished">Jätä kenttä tyhjäksi käyttää kokonaista muistikorttia.</translation>
|
||||
</message>
|
||||
<message id="harbour-books-book-browser_link-title">
|
||||
<source>Link</source>
|
||||
<oldsource>External link</oldsource>
|
||||
|
|
|
@ -136,6 +136,21 @@
|
|||
<extracomment>Combo box value for landscape orientation</extracomment>
|
||||
<translation>Альбомная</translation>
|
||||
</message>
|
||||
<message id="harbour-books-settings-page-removable-section_header">
|
||||
<source>Memory card</source>
|
||||
<extracomment>Section header for memory card settings</extracomment>
|
||||
<translation>Карта памяти</translation>
|
||||
</message>
|
||||
<message id="harbour-books-settings-page-removable_root-label">
|
||||
<source>Books folder</source>
|
||||
<extracomment>Settings field label</extracomment>
|
||||
<translation>Книжная папка</translation>
|
||||
</message>
|
||||
<message id="harbour-books-settings-page-removable_root-description">
|
||||
<source>Leave the folder name empty to scan the entire memory card for books.</source>
|
||||
<extracomment>Settings field description</extracomment>
|
||||
<translation>Если оставить имя папки пустым, то можно будет найти книгу в любой папке на карте памяти. Особого смысла в этой настройке нет, просто так исторически сложилось, что по умолчанию книги искались только в папке Books, а теперь можно вообще где угодно.</translation>
|
||||
</message>
|
||||
<message id="harbour-books-book-browser_link-title">
|
||||
<source>Link</source>
|
||||
<extracomment>External link menu title</extracomment>
|
||||
|
|
|
@ -134,6 +134,21 @@
|
|||
<extracomment>Combo box value for landscape orientation</extracomment>
|
||||
<translation>Liggande</translation>
|
||||
</message>
|
||||
<message id="harbour-books-settings-page-removable-section_header">
|
||||
<source>Memory card</source>
|
||||
<extracomment>Section header for memory card settings</extracomment>
|
||||
<translation>Minneskort</translation>
|
||||
</message>
|
||||
<message id="harbour-books-settings-page-removable_root-label">
|
||||
<source>Books folder</source>
|
||||
<extracomment>Settings field label</extracomment>
|
||||
<translation type="unfinished">Böcker mappnamn</translation>
|
||||
</message>
|
||||
<message id="harbour-books-settings-page-removable_root-description">
|
||||
<source>Leave the folder name empty to scan the entire memory card for books.</source>
|
||||
<extracomment>Settings field description</extracomment>
|
||||
<translation type="unfinished">Lämna fältet tomt för att söka igenom hela minneskortet för böcker.</translation>
|
||||
</message>
|
||||
<message id="harbour-books-book-browser_link-title">
|
||||
<source>Link</source>
|
||||
<oldsource>External link</oldsource>
|
||||
|
|
|
@ -134,6 +134,21 @@
|
|||
<extracomment>Combo box value for landscape orientation</extracomment>
|
||||
<translation>Landscape</translation>
|
||||
</message>
|
||||
<message id="harbour-books-settings-page-removable-section_header">
|
||||
<source>Memory card</source>
|
||||
<extracomment>Section header for memory card settings</extracomment>
|
||||
<translation>Memory card</translation>
|
||||
</message>
|
||||
<message id="harbour-books-settings-page-removable_root-label">
|
||||
<source>Books folder</source>
|
||||
<extracomment>Settings field label</extracomment>
|
||||
<translation>Books folder</translation>
|
||||
</message>
|
||||
<message id="harbour-books-settings-page-removable_root-description">
|
||||
<source>Leave the folder name empty to scan the entire memory card for books.</source>
|
||||
<extracomment>Settings field description</extracomment>
|
||||
<translation>Leave the folder name empty to scan the entire memory card for books.</translation>
|
||||
</message>
|
||||
<message id="harbour-books-book-browser_link-title">
|
||||
<source>Link</source>
|
||||
<extracomment>External link menu title</extracomment>
|
||||
|
|
Loading…
Reference in a new issue