From 06016514e5870d4caea1eaf6623534aa45580131 Mon Sep 17 00:00:00 2001 From: CroatianHusky <90392654+CroatianHusky@users.noreply.github.com> Date: Sat, 10 Jun 2023 09:32:21 +0200 Subject: [PATCH] new grade plurality fix --- filcnaplo_mobile_ui/lib/common/widgets/grade/new_grades.dart | 4 +++- .../lib/common/widgets/grade/new_grades.i18n.dart | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/filcnaplo_mobile_ui/lib/common/widgets/grade/new_grades.dart b/filcnaplo_mobile_ui/lib/common/widgets/grade/new_grades.dart index 59977e6..d666ddd 100755 --- a/filcnaplo_mobile_ui/lib/common/widgets/grade/new_grades.dart +++ b/filcnaplo_mobile_ui/lib/common/widgets/grade/new_grades.dart @@ -62,7 +62,9 @@ class NewGradesSurprise extends StatelessWidget { ], ) : Text( - "new_grades".i18n, + grades.length == 1 ? + "new_grade".i18n : + "new_grades".i18n, maxLines: 2, overflow: TextOverflow.ellipsis, style: const TextStyle(fontWeight: FontWeight.w600), diff --git a/filcnaplo_mobile_ui/lib/common/widgets/grade/new_grades.i18n.dart b/filcnaplo_mobile_ui/lib/common/widgets/grade/new_grades.i18n.dart index cebe898..24a16ba 100755 --- a/filcnaplo_mobile_ui/lib/common/widgets/grade/new_grades.i18n.dart +++ b/filcnaplo_mobile_ui/lib/common/widgets/grade/new_grades.i18n.dart @@ -9,6 +9,7 @@ extension Localization on String { "rare": "Rare", "epic": "Epic", "legendary": "Legendary", + "new_grade": "New grade", "new_grades": "New grades", "tap_to_open": "Tap to open now!", "open_subtitle": "Tap to open...", @@ -19,6 +20,7 @@ extension Localization on String { "rare": "Ritka", "epic": "Epikus", "legendary": "Legendás", + "new_grade": "Új jegy", "new_grades": "Új jegyek", "tap_to_open": "Nyisd ki őket!", "open_subtitle": "Nyomd meg a kinyitáshoz...", @@ -29,6 +31,7 @@ extension Localization on String { "rare": "Selten", "epic": "Episch", "legendary": "Legendär", + "new_grade": "Neue Note", "new_grades": "Neue Noten", "tap_to_open": "Tippen, um jetzt zu öffnen!", "open_subtitle": "Antippen zum Öffnen...",