Clarify message for no current torrents
This commit is contained in:
1 parent
eb45068df3
commit
49d4ae078f
3 files changed
+5
-2
No files matched your search
@@ -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 permissionDenied = stringResource(R.string.permission_denied)
|
||||||
val downloadTorrentFailed = stringResource(R.string.download_torrent_failure)
|
val downloadTorrentFailed = stringResource(R.string.download_torrent_failure)
|
||||||
val downloadTorrentStarted = stringResource(R.string.download_torrent_started)
|
val downloadTorrentStarted = stringResource(R.string.download_torrent_started)
|
||||||
val noTorrents = stringResource(R.string.no_torrents)
|
val noTorrents = stringResource(R.string.no_torrents)
|
||||||
|
val noCurrentTorrents = stringResource(R.string.no_current_torrents)
|
||||||
var mTorrentList by remember { mutableStateOf<TorrentResult?>(null) }
|
var mTorrentList by remember { mutableStateOf<TorrentResult?>(null) }
|
||||||
suspend fun showTorrentDialog() {
|
suspend fun showTorrentDialog() {
|
||||||
if (mTorrentList == null) {
|
if (mTorrentList == null) {
|
||||||
@@ -602,7 +603,7 @@ fun GalleryDetailScreen(args: GalleryDetailScreenArgs, navigator: DestinationsNa
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (mTorrentList!!.isEmpty()) {
|
if (mTorrentList!!.isEmpty()) {
|
||||||
showSnackbar(noTorrents)
|
showSnackbar(noCurrentTorrents)
|
||||||
} else {
|
} else {
|
||||||
val items = mTorrentList!!.map { it.format() }
|
val items = mTorrentList!!.map { it.format() }
|
||||||
val selected = showSelectItem(items, R.string.torrents, false)
|
val selected = showSelectItem(items, R.string.torrents, false)
|
||||||
|
|||||||
@@ -129,6 +129,7 @@
|
|||||||
<string name="rate_successfully">评分成功</string>
|
<string name="rate_successfully">评分成功</string>
|
||||||
<string name="rate_failed">评分失败</string>
|
<string name="rate_failed">评分失败</string>
|
||||||
<string name="no_torrents">没有种子</string>
|
<string name="no_torrents">没有种子</string>
|
||||||
|
<string name="no_current_torrents">没有当前版本画廊的种子</string>
|
||||||
<string name="download_torrent_started">开始下载种子</string>
|
<string name="download_torrent_started">开始下载种子</string>
|
||||||
<string name="download_torrent_failure">无法下载种子</string>
|
<string name="download_torrent_failure">无法下载种子</string>
|
||||||
<string name="torrents">种子</string>
|
<string name="torrents">种子</string>
|
||||||
|
|||||||
@@ -170,6 +170,7 @@
|
|||||||
<string name="rate_successfully">Rate successfully</string>
|
<string name="rate_successfully">Rate successfully</string>
|
||||||
<string name="rate_failed">Rate failed</string>
|
<string name="rate_failed">Rate failed</string>
|
||||||
<string name="no_torrents">No torrents</string>
|
<string name="no_torrents">No torrents</string>
|
||||||
|
<string name="no_current_torrents">No torrents for the current version of the gallery</string>
|
||||||
<string name="download_torrent_started">Torrent download started</string>
|
<string name="download_torrent_started">Torrent download started</string>
|
||||||
<string name="download_torrent_failure">Failed to download torrent</string>
|
<string name="download_torrent_failure">Failed to download torrent</string>
|
||||||
<string name="torrents">Torrents</string>
|
<string name="torrents">Torrents</string>
|
||||||
|
|||||||
Reference in new issue
Block a user