diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/provider/TextPageFactory.kt b/app/src/main/java/io/legado/app/ui/book/read/page/provider/TextPageFactory.kt index b51c8228c..e261bcc02 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/provider/TextPageFactory.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/provider/TextPageFactory.kt @@ -1,12 +1,16 @@ package io.legado.app.ui.book.read.page.provider +import io.legado.app.R import io.legado.app.model.ReadBook import io.legado.app.ui.book.read.page.api.DataSource import io.legado.app.ui.book.read.page.api.PageFactory import io.legado.app.ui.book.read.page.entities.TextPage +import splitties.init.appCtx class TextPageFactory(dataSource: DataSource) : PageFactory(dataSource) { + private val keepSwipeTip = appCtx.getString(R.string.keep_swipe_tip) + override fun hasPrev(): Boolean = with(dataSource) { return hasPrevChapter() || pageIndex > 0 } @@ -148,7 +152,7 @@ class TextPageFactory(dataSource: DataSource) : PageFactory(dataSource ?: TextPage(title = nc.title).format() } return@with nc.getPage(1)?.removePageAloudSpan() - ?: TextPage(text = "继续滑动以加载下一章…").format() + ?: TextPage(text = keepSwipeTip).format() } } return TextPage().format() diff --git a/app/src/main/res/values-es-rES/strings.xml b/app/src/main/res/values-es-rES/strings.xml index 38f0439c8..9f9994a3c 100644 --- a/app/src/main/res/values-es-rES/strings.xml +++ b/app/src/main/res/values-es-rES/strings.xml @@ -1145,4 +1145,5 @@ 当应用发生OOM崩溃时保存堆转储 记录堆转储 中/粗/细 + 继续滑动以加载下一章… diff --git a/app/src/main/res/values-ja-rJP/strings.xml b/app/src/main/res/values-ja-rJP/strings.xml index fdb868757..05763c578 100644 --- a/app/src/main/res/values-ja-rJP/strings.xml +++ b/app/src/main/res/values-ja-rJP/strings.xml @@ -1148,4 +1148,5 @@ 当应用发生OOM崩溃时保存堆转储 记录堆转储 中/粗/细 + 继续滑动以加载下一章… diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml index d70723d51..6fad058f6 100644 --- a/app/src/main/res/values-pt-rBR/strings.xml +++ b/app/src/main/res/values-pt-rBR/strings.xml @@ -1148,4 +1148,5 @@ 当应用发生OOM崩溃时保存堆转储 记录堆转储 中/粗/细 + 继续滑动以加载下一章… diff --git a/app/src/main/res/values-vi/strings.xml b/app/src/main/res/values-vi/strings.xml index ad7c79358..bd5f49899 100644 --- a/app/src/main/res/values-vi/strings.xml +++ b/app/src/main/res/values-vi/strings.xml @@ -1144,4 +1144,5 @@ Còn 当应用发生OOM崩溃时保存堆转储 记录堆转储 中/粗/细 + 继续滑动以加载下一章… diff --git a/app/src/main/res/values-zh-rHK/strings.xml b/app/src/main/res/values-zh-rHK/strings.xml index 145ee83f2..ab444cc99 100644 --- a/app/src/main/res/values-zh-rHK/strings.xml +++ b/app/src/main/res/values-zh-rHK/strings.xml @@ -1145,4 +1145,5 @@ 当应用发生OOM崩溃时保存堆转储 记录堆转储 中/粗/细 + 继续滑动以加载下一章… diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index 055ab63de..e05a9ee55 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -1147,4 +1147,5 @@ 当应用发生OOM崩溃时保存堆转储 记录堆转储 中/粗/细 + 继续滑动以加载下一章… diff --git a/app/src/main/res/values-zh/strings.xml b/app/src/main/res/values-zh/strings.xml index 853cbc332..271cfd4c8 100644 --- a/app/src/main/res/values-zh/strings.xml +++ b/app/src/main/res/values-zh/strings.xml @@ -1147,4 +1147,5 @@ 当应用发生OOM崩溃时保存堆转储 记录堆转储 中/粗/细 + 继续滑动以加载下一章… diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 90e46907a..e289cd494 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1143,9 +1143,10 @@ Adjust of chapter index Cleared successfully, automatically restarts the application after 3 seconds Press and hold the key to turn the page - 保存日志 - 创建堆转储 - 当应用发生OOM崩溃时保存堆转储 - 记录堆转储 + Save logs + Create heap dump + Saving a heap dump when the application crashes by OOM + Capture heap dump N/B/L + Keep swiping to load the next chapter…