Improve history display. Part of #200

This commit is contained in:
2025-02-18 19:39:15 +08:00
parent d73e152cec
commit 5fb0d2327d
2 changed files with 7 additions and 6 deletions

View File

@@ -336,7 +336,6 @@
"Number of images preloaded": "预加载图片数量", "Number of images preloaded": "预加载图片数量",
"Ascending": "升序", "Ascending": "升序",
"Descending": "降序", "Descending": "降序",
"Last Reading: Chapter @ep Page @page": "上次阅读: 第 @ep 章 第 @page 页",
"Last Reading: Page @page": "上次阅读: 第 @page 页", "Last Reading: Page @page": "上次阅读: 第 @page 页",
"Replies": "回复", "Replies": "回复",
"Follow Updates": "追更", "Follow Updates": "追更",
@@ -357,7 +356,8 @@
"Once the operation is successful, app will automatically sync data with the server.": "操作成功后, APP将自动与服务器同步数据", "Once the operation is successful, app will automatically sync data with the server.": "操作成功后, APP将自动与服务器同步数据",
"Webdav is enabled." : "已启用Webdav", "Webdav is enabled." : "已启用Webdav",
"Cache cleared": "缓存已清除", "Cache cleared": "缓存已清除",
"Disabled": "已禁用" "Disabled": "已禁用",
"Last Reading: @epName Page @page": "上次阅读: @epName 第 @page 页"
}, },
"zh_TW": { "zh_TW": {
"Home": "首頁", "Home": "首頁",
@@ -696,7 +696,6 @@
"Number of images preloaded": "預加載圖片數量", "Number of images preloaded": "預加載圖片數量",
"Ascending": "升序", "Ascending": "升序",
"Descending": "降序", "Descending": "降序",
"Last Reading: Chapter @ep Page @page": "上次閱讀: 第 @ep 章 第 @page 頁",
"Last Reading: Page @page": "上次閱讀: 第 @page 頁", "Last Reading: Page @page": "上次閱讀: 第 @page 頁",
"Replies": "回覆", "Replies": "回覆",
"Follow Updates": "追更", "Follow Updates": "追更",
@@ -717,6 +716,7 @@
"Once the operation is successful, app will automatically sync data with the server.": "操作成功後, APP將自動與服務器同步數據", "Once the operation is successful, app will automatically sync data with the server.": "操作成功後, APP將自動與服務器同步數據",
"Webdav is enabled." : "已啟用Webdav", "Webdav is enabled." : "已啟用Webdav",
"Cache cleared": "緩存已清除", "Cache cleared": "緩存已清除",
"Disabled": "已禁用" "Disabled": "已禁用",
"Last Reading: @epName Page @page": "上次閱讀: @epName 第 @page 頁"
} }
} }

View File

@@ -385,8 +385,9 @@ class _ComicPageState extends LoadingState<ComicPage, ComicDetails>
var ep = history!.ep; var ep = history!.ep;
String text; String text;
if (haveChapter) { if (haveChapter) {
text = "Last Reading: Chapter @ep Page @page".tlParams({ text = "Last Reading: @epName Page @page".tlParams({
'ep': ep, 'epName': comic.chapters!.values.elementAt(
math.min(ep - 1, comic.chapters!.length - 1)),
'page': page, 'page': page,
}); });
} else { } else {