diff --git a/app/settings/BooksSettings.qml b/app/settings/BooksSettings.qml index 0dc94da..d0a68ef 100644 --- a/app/settings/BooksSettings.qml +++ b/app/settings/BooksSettings.qml @@ -1,6 +1,6 @@ /* - Copyright (C) 2016-2017 Jolla Ltd. - Contact: Slava Monich + Copyright (C) 2015-2018 Jolla Ltd. + Copyright (C) 2015-2018 Slava Monich You may use this file under the terms of BSD license as follows: @@ -167,6 +167,24 @@ Page { } } + TextSwitch { + automaticCheck: false + checked: keepDisplayOn.value + //: Text switch label + //% "Keep display on while reading" + text: qsTrId("harbour-books-settings-page-keep_display_on") + //: Text switch description + //% "Prevent the display from blanking while reading the book." + description: qsTrId("harbour-books-settings-page-keep_display_on_description") + onClicked: keepDisplayOn.value = !checked + + ConfigurationValue { + id: keepDisplayOn + key: rootPath + "keepDisplayOn" + defaultValue: false + } + } + SectionHeader { //: Section header for media keys //% "Media keys" @@ -242,7 +260,6 @@ Page { color: Theme.secondaryColor wrapMode: Text.Wrap } - } } } diff --git a/app/translations/harbour-books-de.ts b/app/translations/harbour-books-de.ts index ed30c30..933f370 100644 --- a/app/translations/harbour-books-de.ts +++ b/app/translations/harbour-books-de.ts @@ -164,6 +164,21 @@ Combo box value for landscape orientation Querformat + + Keep display on while reading + Text switch label + + + + Prevent the display from blanking while reading the book. + Text switch description + + + + Media keys + Section header for media keys + Medienschlüssel + No action Combo box value for no action @@ -179,11 +194,6 @@ Combo box value for next page action Folge Seite - - Media keys - Section header for media keys - Medienschlüssel - Volume up Combo box label diff --git a/app/translations/harbour-books-es.ts b/app/translations/harbour-books-es.ts index e9db2a6..d1c791b 100644 --- a/app/translations/harbour-books-es.ts +++ b/app/translations/harbour-books-es.ts @@ -164,6 +164,16 @@ Combo box value for landscape orientation Vertical + + Keep display on while reading + Text switch label + + + + Prevent the display from blanking while reading the book. + Text switch description + + Media keys Section header for media keys diff --git a/app/translations/harbour-books-fi.ts b/app/translations/harbour-books-fi.ts index ff8feb4..248f72d 100644 --- a/app/translations/harbour-books-fi.ts +++ b/app/translations/harbour-books-fi.ts @@ -164,6 +164,21 @@ Combo box value for landscape orientation Vaaka + + Keep display on while reading + Text switch label + Pidä näyttö päällä lukemisen aikana + + + Prevent the display from blanking while reading the book. + Text switch description + Estä näytön sammuminen kirjaa lukiessa. + + + Media keys + Section header for media keys + Media näppäimet + No action Combo box value for no action @@ -179,11 +194,6 @@ Combo box value for next page action Seuraavalle sivulle - - Media keys - Section header for media keys - Media näppäimet - Volume up Combo box label diff --git a/app/translations/harbour-books-hu.ts b/app/translations/harbour-books-hu.ts index 021e76b..0754317 100644 --- a/app/translations/harbour-books-hu.ts +++ b/app/translations/harbour-books-hu.ts @@ -162,6 +162,16 @@ Combo box value for landscape orientation Fekvő + + Keep display on while reading + Text switch label + + + + Prevent the display from blanking while reading the book. + Text switch description + + Media keys Section header for media keys diff --git a/app/translations/harbour-books-nl.ts b/app/translations/harbour-books-nl.ts index 8f07a24..5e40406 100644 --- a/app/translations/harbour-books-nl.ts +++ b/app/translations/harbour-books-nl.ts @@ -164,6 +164,16 @@ Combo box value for landscape orientation Landschap + + Keep display on while reading + Text switch label + + + + Prevent the display from blanking while reading the book. + Text switch description + + Media keys Section header for media keys diff --git a/app/translations/harbour-books-ru.ts b/app/translations/harbour-books-ru.ts index 062bd7c..3d4914b 100644 --- a/app/translations/harbour-books-ru.ts +++ b/app/translations/harbour-books-ru.ts @@ -166,20 +166,15 @@ Combo box value for landscape orientation Альбомная - - Memory card - Section header for memory card settings - Карта памяти + + Keep display on while reading + Text switch label + Держать дисплей включённым во время чтения - - Books folder - Settings field label - Книжная папка - - - Leave the folder name empty to scan the entire memory card for books. - Settings field description - Если оставить имя папки пустым, то можно будет найти книгу в любой папке на карте памяти. Особого смысла в этой настройке нет, просто так исторически сложилось, что по умолчанию книги искались только в папке Books, а теперь можно вообще где угодно. + + Prevent the display from blanking while reading the book. + Text switch description + Не гасить экран, пока открыта книга. Это не очень хорошо для батареи, зато удобно для чтения. Главное - не уснуть. Media keys @@ -211,5 +206,20 @@ Combo box label Громкость вниз + + Memory card + Section header for memory card settings + Карта памяти + + + Books folder + Settings field label + Книжная папка + + + Leave the folder name empty to scan the entire memory card for books. + Settings field description + Если оставить имя папки пустым, то можно будет найти книгу в любой папке на карте памяти. Особого смысла в этой настройке нет, просто так исторически сложилось, что по умолчанию книги искались только в папке Books, а теперь можно вообще где угодно. + diff --git a/app/translations/harbour-books-sv.ts b/app/translations/harbour-books-sv.ts index 3c5a53a..44f65f0 100644 --- a/app/translations/harbour-books-sv.ts +++ b/app/translations/harbour-books-sv.ts @@ -164,6 +164,21 @@ Combo box value for landscape orientation Liggande + + Keep display on while reading + Text switch label + Håll skärmen på när läsning + + + Prevent the display from blanking while reading the book. + Text switch description + + + + Media keys + Section header for media keys + Mediaknappar + No action Combo box value for no action @@ -179,11 +194,6 @@ Combo box value for next page action Nästa sida - - Media keys - Section header for media keys - Mediaknappar - Volume up Combo box label diff --git a/app/translations/harbour-books.ts b/app/translations/harbour-books.ts index 9258d72..abe7807 100644 --- a/app/translations/harbour-books.ts +++ b/app/translations/harbour-books.ts @@ -164,6 +164,16 @@ Combo box value for landscape orientation Landscape + + Keep display on while reading + Text switch label + Keep display on while reading + + + Prevent the display from blanking while reading the book. + Text switch description + Prevent the display from blanking while reading the book. + Media keys Section header for media keys