diff --git a/.gitmodules b/.gitmodules index 16031d9b..6132a69f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,6 @@ [submodule "firka/lib/l10n"] path = firka/lib/l10n - url = https://github.com/QwIT-Development/firka-localization + url = https://git.firka.app/firka/firka-localization [submodule "firka_wear/lib/l10n"] path = firka_wear/lib/l10n - url = https://github.com/qwit-development/firka-localization + url = https://git.firka.app/firka/firka-localization diff --git a/firka/lib/ui/phone/widgets/bottom_nav_icon.dart b/firka/lib/ui/phone/widgets/bottom_nav_icon.dart index b2565f32..858a0d47 100644 --- a/firka/lib/ui/phone/widgets/bottom_nav_icon.dart +++ b/firka/lib/ui/phone/widgets/bottom_nav_icon.dart @@ -54,12 +54,15 @@ class BottomNavIconWidget extends StatelessWidget { size: 24, ), const SizedBox(height: 2), - Text( - text, - style: appStyle.fonts.B_14R.apply( - color: active - ? appStyle.colors.textPrimary - : appStyle.colors.textSecondary, + FittedBox( + fit: BoxFit.scaleDown, + child: Text( + text, + style: appStyle.fonts.B_14R.apply( + color: active + ? appStyle.colors.textPrimary + : appStyle.colors.textSecondary, + ), ), ), ], diff --git a/firka/lib/ui/phone/widgets/grade_chart.dart b/firka/lib/ui/phone/widgets/grade_chart.dart index 99a0cb49..b295c829 100644 --- a/firka/lib/ui/phone/widgets/grade_chart.dart +++ b/firka/lib/ui/phone/widgets/grade_chart.dart @@ -1,4 +1,5 @@ import 'package:firka/app/app_state.dart'; +import 'package:firka/core/extensions.dart'; import 'package:firka/core/settings.dart'; import 'package:firka_common/firka_common.dart'; import 'package:firka_common/ui/components/filled_circle.dart'; @@ -138,9 +139,9 @@ class _GradeChartState extends State { final date = spots[_touchedIndex!].date; content = tooltipFormat.format(date); } else if (value == firstX) { - content = 'Szeptember'; + content = DateFormat("MMMM", initData.l10n.localeName).format(DateTime(DateTime.now().year, DateTime.september)).firstUpper(); } else if (value == lastX && !shouldHideNow) { - content = 'Most'; + content = initData.l10n.now; } final text = Text( diff --git a/firka/lib/ui/phone/widgets/tt_day.dart b/firka/lib/ui/phone/widgets/tt_day.dart index 13710f7c..9cf8b811 100644 --- a/firka/lib/ui/phone/widgets/tt_day.dart +++ b/firka/lib/ui/phone/widgets/tt_day.dart @@ -7,7 +7,6 @@ import 'package:firka/app/app_state.dart'; import 'package:firka/ui/theme/style.dart'; import 'package:flutter/material.dart'; import 'package:flutter_svg/svg.dart'; -import 'package:majesticons_flutter/majesticons_flutter.dart'; import 'lesson.dart'; @@ -60,7 +59,29 @@ class TimeTableDayWidget extends StatelessWidget { ...events.map( (event) => Center( child: Text( - event.name.replaceAll(" (Nem órarendi nap)", ""), + event.name + .replaceAll(" (Nem órarendi nap)", "") + .replaceAll(" (Hétfő)", "") + .replaceAll(" (Kedd)", "") + .replaceAll(" (Szerda)", "") + .replaceAll(" (Csütörtök)", "") + .replaceAll(" (Péntek)", "") + .replaceAll(" (Szombat)", "") + .replaceAll(" (Vasárnap)", "") + .replaceAll("Tanítás nélküli munkanap", data.l10n.tt_non_instructional_day) + .replaceAll("Munkaszüneti nap", data.l10n.tt_public_holiday) + .replaceAll("Tavaszi szünet", data.l10n.tt_spring_break) + .replaceAll("Téli szünet", data.l10n.tt_winter_break) + .replaceAll("Őszi szünet", data.l10n.tt_autumn_break) + .replaceAll("Tanítási nap", data.l10n.tt_instructional_day) + .replaceAll("Első félév vége", data.l10n.tt_first_semester_end) + .replaceAll("Ünnepnap", data.l10n.tt_holiday) + .replaceAll("Pihenőnap", data.l10n.tt_rest_day) + .replaceAll("Első tanítási nap", data.l10n.tt_first_instructional_day) + .replaceAll("Utolsó tanítási nap", data.l10n.tt_last_instructional_day) + .replaceAll("Utolsó tanítási nap a végzős évfolyamokon", data.l10n.tt_last_instructional_day_graduates) + .replaceAll("Egész napos kirándulás", data.l10n.tt_full_day_trip) + .replaceAll("negyedév vége", data.l10n.tt_quarter_end), style: appStyle.fonts.B_16R.apply( color: appStyle.colors.textSecondary, ),