Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@
5228AD5A2C2EE45D007635F5 /* Runner.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Runner.entitlements; sourceTree = "<group>"; };
529BD5D12C48C28B00EFE088 /* zh-Hant */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hant"; path = "zh-Hant.lproj/Main.strings"; sourceTree = "<group>"; };
529BD5D22C48C28B00EFE088 /* zh-Hant */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hant"; path = "zh-Hant.lproj/LaunchScreen.strings"; sourceTree = "<group>"; };
52E010A32C7C5DDC00C87792 /* vi */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = vi; path = vi.lproj/Main.strings; sourceTree = "<group>"; };
52E010A42C7C5DDC00C87792 /* vi */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = vi; path = vi.lproj/LaunchScreen.strings; sourceTree = "<group>"; };
632125282C2EA17900A088F8 /* GoogleService-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
6321252A2C2EA20700A088F8 /* RunnerProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = RunnerProfile.entitlements; sourceTree = "<group>"; };
63276A4A2C48F431002C151A /* eew.wav */ = {isa = PBXFileReference; lastKnownFileType = audio.wav; path = eew.wav; sourceTree = "<group>"; };
Expand Down Expand Up @@ -293,6 +295,7 @@
ja,
ko,
zh,
vi,
);
mainGroup = 97C146E51CF9000F007C117D;
productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
Expand Down Expand Up @@ -489,6 +492,7 @@
520D58462C55043C0019366D /* ja */,
520D58482C5504590019366D /* ko */,
520D584A2C5504790019366D /* zh */,
52E010A32C7C5DDC00C87792 /* vi */,
);
name = Main.storyboard;
sourceTree = "<group>";
Expand All @@ -502,6 +506,7 @@
520D58472C55043C0019366D /* ja */,
520D58492C5504590019366D /* ko */,
520D584B2C5504790019366D /* zh */,
52E010A42C7C5DDC00C87792 /* vi */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
Expand Down
3 changes: 2 additions & 1 deletion ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@
<string>6.0</string>
<key>CFBundleLocalizations</key>
<array>
<string>zh</string>
<string>zh_TW</string>
<string>zh</string>
<string>ja</string>
<string>en</string>
<string>ko</string>
<string>vi</string>
</array>
<key>CFBundleName</key>
<string>dpip</string>
Expand Down
1 change: 1 addition & 0 deletions ios/Runner/vi.lproj/LaunchScreen.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions ios/Runner/vi.lproj/Main.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

18 changes: 9 additions & 9 deletions lib/app/page/map/lightning/lightning.dart
Original file line number Diff line number Diff line change
Expand Up @@ -222,16 +222,16 @@ class _LightningMapState extends State<LightningMap> {

Widget _buildLegend() {
return MapLegend(
label: "閃電圖例",
label: context.i18n.map_legend,
children: [
_legendItem("lightning-1-5", "5 分鐘內對地閃電"),
_legendItem("lightning-1-10", "10 分鐘內對地閃電"),
_legendItem("lightning-1-30", "30 分鐘內對地閃電"),
_legendItem("lightning-1-60", "60 分鐘內對地閃電"),
_legendItem("lightning-0-5", "5 分鐘內雲間閃電"),
_legendItem("lightning-0-10", "10 分鐘內雲間閃電"),
_legendItem("lightning-0-30", "30 分鐘內雲間閃電"),
_legendItem("lightning-0-60", "60 分鐘內雲間閃電"),
_legendItem("lightning-1-5", context.i18n.lightning_1_5),
_legendItem("lightning-1-10", context.i18n.lightning_1_10),
_legendItem("lightning-1-30", context.i18n.lightning_1_30),
_legendItem("lightning-1-60", context.i18n.lightning_1_60),
_legendItem("lightning-0-5", context.i18n.lightning_0_5),
_legendItem("lightning-0-10", context.i18n.lightning_0_10),
_legendItem("lightning-0-30", context.i18n.lightning_0_30),
_legendItem("lightning-0-60", context.i18n.lightning_0_60),
],
);
}
Expand Down
6 changes: 3 additions & 3 deletions lib/app/page/map/monitor/monitor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -986,12 +986,12 @@ class _MonitorPageState extends State<MonitorPage> with SingleTickerProviderStat

Widget _buildLegend() {
return MapLegend(
label: "預估震度圖例",
label: context.i18n.estimated_intensity_legend,
children: [
_buildColorBar(),
const SizedBox(height: 8),
_buildColorBarLabels(),
Text("僅用於地震速報時", style: context.theme.textTheme.labelMedium),
Text(context.i18n.only_used_during_earthquake_alerts, style: context.theme.textTheme.labelMedium),
],
);
}
Expand All @@ -1014,7 +1014,7 @@ class _MonitorPageState extends State<MonitorPage> with SingleTickerProviderStat
}

Widget _buildColorBarLabels() {
final labels = ["1", "2", "3", "4", "5弱", "5強", "6弱", "6強", "7"];
final labels = ["1", "2", "3", "4", context.i18n.weak_5, context.i18n.strong_5, context.i18n.weak_6, context.i18n.strong_6, "7"];
return SizedBox(
width: 300,
child: Row(
Expand Down
10 changes: 5 additions & 5 deletions lib/app/page/me/me.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class _MePageState extends State<MePage> {
),
ListTile(
leading: const Icon(Symbols.notification_add_rounded),
title: const Text("通知發送紀錄"),
title: Text(context.i18n.notification_log),
onTap: () {
Navigator.push(
context,
Expand All @@ -84,7 +84,7 @@ class _MePageState extends State<MePage> {
),
ListTile(
leading: const Icon(Symbols.dns_rounded),
title: const Text("伺服器狀態"),
title: Text(context.i18n.server_status),
onTap: () {
Navigator.push(
context,
Expand All @@ -105,7 +105,7 @@ class _MePageState extends State<MePage> {
ListTileGroupHeader(title: context.i18n.me_debug),
ListTile(
leading: const Icon(Symbols.bug_report),
title: Text("App 日誌"),
title: Text(context.i18n.app_logs),
onTap: () {
Navigator.push(
context,
Expand All @@ -130,8 +130,8 @@ class _MePageState extends State<MePage> {
);
} else {
context.scaffoldMessenger.showSnackBar(
const SnackBar(
content: Text("複製 FCM Token 時發生錯誤"),
SnackBar(
content: Text(context.i18n.copy_fcm_token_error),
),
);
}
Expand Down
Loading