From 80ce5f2c3e664405af7413bb1d4ffd3f0dc9fa68 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 5 Feb 2023 21:49:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/legado/app/ui/main/MainActivity.kt | 4 +- 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 | 88 ++++++++++--------- 8 files changed, 59 insertions(+), 45 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/main/MainActivity.kt b/app/src/main/java/io/legado/app/ui/main/MainActivity.kt index 74c917521..3bb7c53ac 100644 --- a/app/src/main/java/io/legado/app/ui/main/MainActivity.kt +++ b/app/src/main/java/io/legado/app/ui/main/MainActivity.kt @@ -204,7 +204,7 @@ class MainActivity : VMBaseActivity(), private suspend fun checkNotificationPermission() = suspendCoroutine { block -> PermissionsCompat.Builder(this) .addPermissions(Permissions.POST_NOTIFICATIONS) - .rationale("阅读需要发送通知来显示朗读控制和下载进度") + .rationale(R.string.notification_permission_rationale) .onDenied { block.resume(null) } @@ -226,7 +226,7 @@ class MainActivity : VMBaseActivity(), withContext(IO) { AppWebDav.lastBackUp().getOrNull() } ?: return@launch if (lastBackupFile.lastModify - LocalConfig.lastBackup > DateUtils.MINUTE_IN_MILLIS) { LocalConfig.lastBackup = lastBackupFile.lastModify - alert("恢复", "webDav书源比本地新,是否恢复") { + alert(R.string.restore, R.string.webdav_after_local_restore_confirm) { cancelButton() okButton { viewModel.restoreWebDav(lastBackupFile.displayName) diff --git a/app/src/main/res/values-es-rES/strings.xml b/app/src/main/res/values-es-rES/strings.xml index 5796cb6db..500c0821d 100644 --- a/app/src/main/res/values-es-rES/strings.xml +++ b/app/src/main/res/values-es-rES/strings.xml @@ -1063,4 +1063,6 @@ 分隔线颜色 移除重复标题 更新失败 + 阅读需要发送通知来显示朗读控制和下载进度 + webDav书源比本地新,是否恢复 diff --git a/app/src/main/res/values-ja-rJP/strings.xml b/app/src/main/res/values-ja-rJP/strings.xml index a9b0beff8..692994b80 100644 --- a/app/src/main/res/values-ja-rJP/strings.xml +++ b/app/src/main/res/values-ja-rJP/strings.xml @@ -1066,4 +1066,6 @@ 分隔线颜色 移除重复标题 更新失败 + 阅读需要发送通知来显示朗读控制和下载进度 + webDav书源比本地新,是否恢复 diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml index 558ef18f4..126a421ac 100644 --- a/app/src/main/res/values-pt-rBR/strings.xml +++ b/app/src/main/res/values-pt-rBR/strings.xml @@ -1066,4 +1066,6 @@ 分隔线颜色 移除重复标题 更新失败 + 阅读需要发送通知来显示朗读控制和下载进度 + webDav书源比本地新,是否恢复 diff --git a/app/src/main/res/values-zh-rHK/strings.xml b/app/src/main/res/values-zh-rHK/strings.xml index 7df092f88..a787279b3 100644 --- a/app/src/main/res/values-zh-rHK/strings.xml +++ b/app/src/main/res/values-zh-rHK/strings.xml @@ -1063,4 +1063,6 @@ 分隔线颜色 移除重复标题 更新失败 + 阅读需要发送通知来显示朗读控制和下载进度 + webDav书源比本地新,是否恢复 diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index 0801e0cf9..7aa29a96d 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -1065,4 +1065,6 @@ 分隔线颜色 移除重复标题 更新失败 + 阅读需要发送通知来显示朗读控制和下载进度 + webDav书源比本地新,是否恢复 diff --git a/app/src/main/res/values-zh/strings.xml b/app/src/main/res/values-zh/strings.xml index 8bb7dd959..fba00d285 100644 --- a/app/src/main/res/values-zh/strings.xml +++ b/app/src/main/res/values-zh/strings.xml @@ -1065,4 +1065,6 @@ 分隔线颜色 移除重复标题 更新失败 + 阅读需要发送通知来显示朗读控制和下载进度 + webDav书源比本地新,是否恢复 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 49beadcdb..0552a0711 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -931,66 +931,66 @@ Background alpha - 校验设置 - 校验项目 + Check setting + Check item 单个书源校验超时(秒) - 超时 - - 小于 + Timeout + Seconds + Less than 校验超时: %1$s秒\n校验项目:%2$s Record debug log Sub dir General Use replace - 作用于标题 - 作用于正文 + Act on the title + Act on the content Join QQ channel 点击加入阅读QQ频道 - 刷新当前章节 - 刷新之后章节 - 刷新全部章节 + Refresh the current chapter + Refresh the chapter after + Refresh all chapters Edit Content - 单章换源 - 整书换源 + Single chapter source switching + Change the source of the whole book Sort by time 开启记录 - 拷贝所有 - 自动补全 + Copy all + Automatic completion Sort by size - 启动界面样式 + Launch interface style 启动界面图片和是否显示文字等 - 显示文字 + Display text 阅读|享受美好时光 - 自定义欢迎页 + Customize the welcome page 是否使用自定义欢迎页 - 显示图标 - 显示默认书籍图标 - 缓存/导出 - 辅助按键配置 - Url参数 - 仅WIFI - 仅在wifi下加载网络封面 - 封面规则 - 进入详情页时使用封面规则重新获取封面 - 定位到当前书源 - 系统tts设置 - 打开系统tts设置界面 - 非播放状态无法定时 - 所有书签 - 批量换源 - 书籍类型不一样 - 是否确认换源 - 输入验证码 - 验证码 - 超时毫秒数 + Show icon + Show default book icon + Cache / Export + Secondary button configuration + Url parameter + WIFI only + Load network cover only under wifi + Cover rule + Use the cover rule to retrieve the cover when entering the details page + Navigate to the current book source + System tts Settings + Open the system tts settings interface + When the non-playback state is not legal + All bookmarks + Batch source switching + Different types of books + Whether to confirm the source change + Enter the CAPTCHA + Verification code + Timed out milliseconds Continue to open although %1$s is not supported ? - 导入TTS - 导入主题 - 导入txt目录规则 + Import TTS + Import theme + Import txt directory rules CookieJar - 点击阅读加载目录 - 清除cookie - 导入在线书籍文件 + Click to read the load directory + Clear cookie + Import online book files Upload Success Upload Fail Download Success @@ -1066,4 +1066,6 @@ Separator color Remove duplicate title Update failed + Reading requires sending notifications to show reading control and download progress + The webDav book source is newer than the local one, whether to restore it or not