From 49d4ae078f12481a6ecef466a1a793b5498a606f Mon Sep 17 00:00:00 2001 From: FooIbar <118464521+FooIbar@users.noreply.github.com> Date: Sat, 9 Mar 2024 14:29:39 +0800 Subject: [PATCH] Clarify message for no current torrents --- .../com/hippo/ehviewer/ui/screen/GalleryDetailScreen.kt | 5 +++-- app/src/main/res/values-zh-rCN/strings.xml | 1 + app/src/main/res/values/strings.xml | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/hippo/ehviewer/ui/screen/GalleryDetailScreen.kt b/app/src/main/kotlin/com/hippo/ehviewer/ui/screen/GalleryDetailScreen.kt index 693a0de0b..c5da0cb39 100644 --- a/app/src/main/kotlin/com/hippo/ehviewer/ui/screen/GalleryDetailScreen.kt +++ b/app/src/main/kotlin/com/hippo/ehviewer/ui/screen/GalleryDetailScreen.kt @@ -587,11 +587,12 @@ fun GalleryDetailScreen(args: GalleryDetailScreenArgs, navigator: DestinationsNa ) }, ) - val torrentText = stringResource(R.string.torrent_count, galleryDetail.torrentCount) + val torrentText = stringResource(R.string.torrents) val permissionDenied = stringResource(R.string.permission_denied) val downloadTorrentFailed = stringResource(R.string.download_torrent_failure) val downloadTorrentStarted = stringResource(R.string.download_torrent_started) val noTorrents = stringResource(R.string.no_torrents) + val noCurrentTorrents = stringResource(R.string.no_current_torrents) var mTorrentList by remember { mutableStateOf(null) } suspend fun showTorrentDialog() { if (mTorrentList == null) { @@ -602,7 +603,7 @@ fun GalleryDetailScreen(args: GalleryDetailScreenArgs, navigator: DestinationsNa } } if (mTorrentList!!.isEmpty()) { - showSnackbar(noTorrents) + showSnackbar(noCurrentTorrents) } else { val items = mTorrentList!!.map { it.format() } val selected = showSelectItem(items, R.string.torrents, false) diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index 962a87dc7..01bd74d4f 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -129,6 +129,7 @@ 评分成功 评分失败 没有种子 + 没有当前版本画廊的种子 开始下载种子 无法下载种子 种子 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 4dafb00d7..6bba1e52a 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -170,6 +170,7 @@ Rate successfully Rate failed No torrents + No torrents for the current version of the gallery Torrent download started Failed to download torrent Torrents