From 011f46fb4c3c682cd24c5888c054b7050c8886b6 Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 11 Feb 2022 09:44:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E8=A7=84=E5=88=99=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=BD=9C=E7=94=A8=E4=BA=8E=E6=A0=87=E9=A2=98=E5=92=8C?= =?UTF-8?q?=E4=BD=9C=E7=94=A8=E4=BA=8E=E6=AD=A3=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ui/replace/edit/ReplaceEditActivity.kt | 4 ++++ .../main/res/layout/activity_replace_edit.xml | 22 +++++++++++++++++++ app/src/main/res/values-es-rES/strings.xml | 2 ++ app/src/main/res/values-ja-rJP/strings.xml | 2 ++ app/src/main/res/values-pt-rBR/strings.xml | 2 ++ app/src/main/res/values-zh-rHK/strings.xml | 2 ++ app/src/main/res/values-zh-rTW/strings.xml | 2 ++ app/src/main/res/values-zh/strings.xml | 2 ++ app/src/main/res/values/strings.xml | 2 ++ 9 files changed, 40 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/replace/edit/ReplaceEditActivity.kt b/app/src/main/java/io/legado/app/ui/replace/edit/ReplaceEditActivity.kt index 0b0bd0c92..4926d7bc1 100644 --- a/app/src/main/java/io/legado/app/ui/replace/edit/ReplaceEditActivity.kt +++ b/app/src/main/java/io/legado/app/ui/replace/edit/ReplaceEditActivity.kt @@ -97,6 +97,8 @@ class ReplaceEditActivity : etReplaceRule.setText(replaceRule.pattern) cbUseRegex.isChecked = replaceRule.isRegex etReplaceTo.setText(replaceRule.replacement) + cbScopeTitle.isChecked = replaceRule.scopeTitle + cbScopeContent.isChecked = replaceRule.scopeContent etScope.setText(replaceRule.scope) } @@ -107,6 +109,8 @@ class ReplaceEditActivity : replaceRule.pattern = etReplaceRule.text.toString() replaceRule.isRegex = cbUseRegex.isChecked replaceRule.replacement = etReplaceTo.text.toString() + replaceRule.scopeTitle = cbScopeTitle.isChecked + replaceRule.scopeContent = cbScopeTitle.isChecked replaceRule.scope = etScope.text.toString() return replaceRule } diff --git a/app/src/main/res/layout/activity_replace_edit.xml b/app/src/main/res/layout/activity_replace_edit.xml index 2a4370beb..b8f2a3c39 100644 --- a/app/src/main/res/layout/activity_replace_edit.xml +++ b/app/src/main/res/layout/activity_replace_edit.xml @@ -103,6 +103,28 @@ tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" /> + + + + + + + + 子文件夹 全局 使用替换 + 作用于标题 + 作用于正文 diff --git a/app/src/main/res/values-ja-rJP/strings.xml b/app/src/main/res/values-ja-rJP/strings.xml index b60570614..31f5ed606 100644 --- a/app/src/main/res/values-ja-rJP/strings.xml +++ b/app/src/main/res/values-ja-rJP/strings.xml @@ -933,5 +933,7 @@ 子文件夹 全局 使用替换 + 作用于标题 + 作用于正文 diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml index 387d3c92d..a07e8965a 100644 --- a/app/src/main/res/values-pt-rBR/strings.xml +++ b/app/src/main/res/values-pt-rBR/strings.xml @@ -933,5 +933,7 @@ 子文件夹 全局 使用替换 + 作用于标题 + 作用于正文 diff --git a/app/src/main/res/values-zh-rHK/strings.xml b/app/src/main/res/values-zh-rHK/strings.xml index 1dd5bb76a..3da96d479 100644 --- a/app/src/main/res/values-zh-rHK/strings.xml +++ b/app/src/main/res/values-zh-rHK/strings.xml @@ -930,5 +930,7 @@ 子文件夹 全局 使用替换 + 作用于标题 + 作用于正文 diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index 8d2d569bd..5b7720fdf 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -932,5 +932,7 @@ 子文件夹 全局 使用替换 + 作用于标题 + 作用于正文 diff --git a/app/src/main/res/values-zh/strings.xml b/app/src/main/res/values-zh/strings.xml index c65bc03e8..4c95196e7 100644 --- a/app/src/main/res/values-zh/strings.xml +++ b/app/src/main/res/values-zh/strings.xml @@ -932,5 +932,7 @@ 子文件夹 全局 使用替换 + 作用于标题 + 作用于正文 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 16b0eb388..54cd5aa56 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -933,5 +933,7 @@ Sub dir General Use replace + 作用于标题 + 作用于正文