Skip to content

Commit

Permalink
i18
Browse files Browse the repository at this point in the history
  • Loading branch information
lowrt committed Oct 21, 2024
1 parent 4552986 commit f7855f2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
16 changes: 16 additions & 0 deletions lib/l10n/app_zh_TW.arb
Original file line number Diff line number Diff line change
Expand Up @@ -1781,5 +1781,21 @@
"type": "String"
}
}
},
"power_saving_position": "省電策略",
"@power_saving_position": {
"description": "「歡迎」頁面 → 省電策略"
},
"power_saving_position_text": "允許 DPIP 在背景中持續運行,以便即時防災通知資訊。",
"@power_saving_position_text": {
"description": "「歡迎」頁面 → 允許DPIP在背景中持續運行,以便即時防災通知資訊。"
},
"automatic_start_position": "自動化啟動",
"@automatic_start_position": {
"description": "「歡迎」頁面 → 自動化啟動"
},
"automatic_start_position_text": "允許 DPIP 在設備重新啟動或關閉後自動啟動,以持續提供防災通知服務。",
"@automatic_start_position_text": {
"description": "「歡迎」頁面 → 允許 DPIP 在設備重新啟動或關閉後自動啟動,以持續提供防災通知服務。"
}
}
8 changes: 4 additions & 4 deletions lib/route/welcome/pages/permission.dart
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ class _WelcomePermissionPageState extends State<WelcomePermissionPage> with Widg
break;
case Permission.ignoreBatteryOptimizations:
icon = Icons.battery_full;
text = "省電策略";
description = "省電策略";
text = context.i18n.power_saving_position;
description = context.i18n.power_saving_position_text;
color = Colors.greenAccent;
break;
case Permission.storage:
Expand Down Expand Up @@ -466,8 +466,8 @@ class _WelcomePermissionPageState extends State<WelcomePermissionPage> with Widg
backgroundColor: Colors.orange.withOpacity(0.1),
child: const Icon(Icons.start, color: Colors.orange),
),
title: const Text("自啟動"),
subtitle: const Text("自啟動"),
title: Text(context.i18n.automatic_start_position),
subtitle: Text(context.i18n.automatic_start_position_text),
trailing: FutureBuilder<bool>(
future: _autoStartPermission,
builder: (context, snapshot) {
Expand Down

0 comments on commit f7855f2

Please sign in to comment.