From ecb657d20dc61e11f3967b336095845657b53b97 Mon Sep 17 00:00:00 2001 From: boa-z Date: Sun, 10 Nov 2024 23:26:21 +0800 Subject: [PATCH] fix: translation typo --- assets/translation.json | 4 ++++ lib/pages/local_comics_page.dart | 10 +++++++--- lib/pages/settings/reader.dart | 2 +- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/assets/translation.json b/assets/translation.json index f213c0a..36ba159 100644 --- a/assets/translation.json +++ b/assets/translation.json @@ -17,6 +17,7 @@ "Multiple Comics": "多个漫画", "help": "帮助", "Select": "选择", + "Selected @a comics": "已选择 @a 部漫画", "Imported @a comics": "已导入 @a 部漫画", "Downloading": "下载中", "Back": "后退", @@ -41,6 +42,7 @@ "Folder": "文件夹", "Confirm": "确认", "Are you sure you want to delete this comic?": "您确定要删除这部漫画吗?", + "Are you sure you want to delete @a selected comics?": "您确定要删除 @a 部漫画吗?", "Add comic source": "添加漫画来源", "Select file": "选择文件", "View list": "查看列表", @@ -210,6 +212,7 @@ "Multiple Comics": "多部漫畫", "help": "幫助", "Select": "選擇", + "Selected @a comics": "已選擇 @a 部漫畫", "Imported @a comics": "已匯入 @a 部漫畫", "Downloading": "下載中", "Back": "後退", @@ -235,6 +238,7 @@ "Folder": "文件夾", "Confirm": "確認", "Are you sure you want to delete this comic?": "您確定要刪除這部漫畫嗎?", + "Are you sure you want to delete @a selected comics?": "您確定要刪除 @a 部漫畫嗎?", "Add comic source": "添加漫畫來源", "Select file": "選擇文件", "View list": "查看列表", diff --git a/lib/pages/local_comics_page.dart b/lib/pages/local_comics_page.dart index 29e4d38..4199ae4 100644 --- a/lib/pages/local_comics_page.dart +++ b/lib/pages/local_comics_page.dart @@ -99,7 +99,7 @@ class _LocalComicsPageState extends State { actions: [ FilledButton( onPressed: () { - appdata.implicitData["local_sort"] =sortType.value; + appdata.implicitData["local_sort"] = sortType.value; appdata.writeImplicitData(); Navigator.pop(context); update(); @@ -166,7 +166,9 @@ class _LocalComicsPageState extends State { ) else if (multiSelectMode) SliverAppbar( - title: Text("Selected ${selectedComics.length} comics"), + title: Text("Selected @a comics".tlParams({ + 'a': selectedComics.length, + })), actions: [ IconButton( icon: const Icon(Icons.close), @@ -230,7 +232,9 @@ class _LocalComicsPageState extends State { showConfirmDialog( context: context, title: "Delete".tl, - content: "Delete selected comics?".tl, + content: + "Are you sure you want to delete @a selected comics?" + .tlParams({'a': selectedComics.length}), onConfirm: () { for (var comic in selectedComics.keys) { LocalManager().deleteComic(comic); diff --git a/lib/pages/settings/reader.dart b/lib/pages/settings/reader.dart index 3635800..b03a964 100644 --- a/lib/pages/settings/reader.dart +++ b/lib/pages/settings/reader.dart @@ -71,7 +71,7 @@ class _ReaderSettingsState extends State { ).toSliver(), if(App.isAndroid) _SwitchSetting( - title: 'Turn page by volume key'.tl, + title: 'Turn page by volume keys'.tl, settingKey: 'enableTurnPageByVolumeKey', onChanged: () { widget.onChanged?.call('enableTurnPageByVolumeKey');