From dac2e6e52ea3614e2df5992c5f44d1fe11fb971d Mon Sep 17 00:00:00 2001 From: Kima Date: Sat, 2 Sep 2023 20:44:55 +0200 Subject: [PATCH] added translation for goal plan errors --- .../lib/ui/mobile/goal_planner/goal_planner_screen.dart | 2 +- .../ui/mobile/goal_planner/goal_planner_screen.i18n.dart | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/filcnaplo_premium/lib/ui/mobile/goal_planner/goal_planner_screen.dart b/filcnaplo_premium/lib/ui/mobile/goal_planner/goal_planner_screen.dart index 13a19ef..eef91b3 100644 --- a/filcnaplo_premium/lib/ui/mobile/goal_planner/goal_planner_screen.dart +++ b/filcnaplo_premium/lib/ui/mobile/goal_planner/goal_planner_screen.dart @@ -321,7 +321,7 @@ class _GoalPlannerScreenState extends State { selectedRoute = e; }), )), - if (result != PlanResult.available) Text(result.name), + if (result != PlanResult.available) Text(result.name.i18n), ], ), ), diff --git a/filcnaplo_premium/lib/ui/mobile/goal_planner/goal_planner_screen.i18n.dart b/filcnaplo_premium/lib/ui/mobile/goal_planner/goal_planner_screen.i18n.dart index 6855167..0e99214 100644 --- a/filcnaplo_premium/lib/ui/mobile/goal_planner/goal_planner_screen.i18n.dart +++ b/filcnaplo_premium/lib/ui/mobile/goal_planner/goal_planner_screen.i18n.dart @@ -11,6 +11,8 @@ extension Localization on String { "track_it": "Track it!", "recommended": "Recommended", "fastest": "Fastest", + "unsolvable": "Unsolvable :(", + "unreachable": "Unreachable :(", }, "hu_hu": { "goal_planner_title": "Cél követés", @@ -20,6 +22,8 @@ extension Localization on String { "track_it": "Követés!", "recommended": "Ajánlott", "fastest": "Leggyorsabb", + "unsolvable": "Megoldhatatlan :(", + "unreachable": "Elérhetetlen :(", }, "de_de": { "goal_planner_title": "Zielplanung", @@ -29,6 +33,8 @@ extension Localization on String { "track_it": "Verfolge es!", "recommended": "Empfohlen", "fastest": "Am schnellsten", + "unsolvable": "Unlösbar :(", + "unreachable": "Unerreichbar :(", }, };