Skip to content

Commit

Permalink
[class2nd] l10n
Browse files Browse the repository at this point in the history
  • Loading branch information
liplum committed Dec 18, 2023
1 parent efafcf0 commit cc1ffec
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions assets/l10n/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -739,3 +739,4 @@ pick: Pick
duplicate: Duplicate
copyTip: "{} was copied"
done: Done
openInBrowser: Open in browser
1 change: 1 addition & 0 deletions assets/l10n/zh-Hans.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -739,3 +739,4 @@ pick: 选择
duplicate: 创建副本
copyTip: "已复制 {} 到剪贴板了"
done: 完成
openInBrowser: 在浏览器中打开
1 change: 1 addition & 0 deletions assets/l10n/zh-Hant.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -739,3 +739,4 @@ pick: 選取
duplicate: 創建副本
copyTip: "{} 被複製到剪貼板了"
done: 完成
openInBrowser: 在瀏覽器中開啟
2 changes: 2 additions & 0 deletions lib/l10n/common.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion lib/school/class2nd/page/details.dart
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class _Class2ndActivityDetailsPageState extends State<Class2ndActivityDetailsPag
PopupMenuItem(
child: ListTile(
leading: const Icon(Icons.open_in_browser),
title: "Open in browser".text(),
title: i18n.openInBrowser.text(),
),
onTap: () async {
await launchUrlString(
Expand Down

0 comments on commit cc1ffec

Please sign in to comment.