From cc1ffecf13400d21aafebfca1c3b4283c03aa113 Mon Sep 17 00:00:00 2001 From: Liplum Date: Tue, 19 Dec 2023 05:33:04 +0800 Subject: [PATCH] [class2nd] l10n --- assets/l10n/en.yaml | 1 + assets/l10n/zh-Hans.yaml | 1 + assets/l10n/zh-Hant.yaml | 1 + lib/l10n/common.dart | 2 ++ lib/school/class2nd/page/details.dart | 2 +- 5 files changed, 6 insertions(+), 1 deletion(-) diff --git a/assets/l10n/en.yaml b/assets/l10n/en.yaml index 5be0ad08b..250075b31 100644 --- a/assets/l10n/en.yaml +++ b/assets/l10n/en.yaml @@ -739,3 +739,4 @@ pick: Pick duplicate: Duplicate copyTip: "{} was copied" done: Done +openInBrowser: Open in browser diff --git a/assets/l10n/zh-Hans.yaml b/assets/l10n/zh-Hans.yaml index c0bff2464..012974edd 100644 --- a/assets/l10n/zh-Hans.yaml +++ b/assets/l10n/zh-Hans.yaml @@ -739,3 +739,4 @@ pick: 选择 duplicate: 创建副本 copyTip: "已复制 {} 到剪贴板了" done: 完成 +openInBrowser: 在浏览器中打开 diff --git a/assets/l10n/zh-Hant.yaml b/assets/l10n/zh-Hant.yaml index 8c42980a6..fb3c8f7ec 100644 --- a/assets/l10n/zh-Hant.yaml +++ b/assets/l10n/zh-Hant.yaml @@ -739,3 +739,4 @@ pick: 選取 duplicate: 創建副本 copyTip: "{} 被複製到剪貼板了" done: 完成 +openInBrowser: 在瀏覽器中開啟 diff --git a/lib/l10n/common.dart b/lib/l10n/common.dart index 3c3f6e874..acd646533 100644 --- a/lib/l10n/common.dart +++ b/lib/l10n/common.dart @@ -78,6 +78,8 @@ mixin class CommonI18nMixin { String copyTipOf(String item) => "copyTip".tr(args: [item]); String get done => "done".tr(); + + String get openInBrowser => "openInBrowser".tr(); } class CommonI18n with CommonI18nMixin { diff --git a/lib/school/class2nd/page/details.dart b/lib/school/class2nd/page/details.dart index efcb3f849..99cce555c 100644 --- a/lib/school/class2nd/page/details.dart +++ b/lib/school/class2nd/page/details.dart @@ -125,7 +125,7 @@ class _Class2ndActivityDetailsPageState extends State