diff --git a/lib/l10n/arb/app_de.arb b/lib/l10n/arb/app_de.arb index 355ab43..93215ed 100644 --- a/lib/l10n/arb/app_de.arb +++ b/lib/l10n/arb/app_de.arb @@ -77,6 +77,9 @@ "bonus_points_message": "{playerCount, plural, =1{{names} hat exakt das Punktelimit von {pointLimit} Punkten erreicht und bekommt deshalb {bonusPoints} Punkte abgezogen!} other{{names} haben exakt das Punktelimit von {pointLimit} Punkten erreicht und bekommen deshalb jeweils {bonusPoints} Punkte abgezogen!}}", "@bonus_points_message": { "placeholders": { + "playerCount": { + "type": "int" + }, "names": { "type": "String" }, diff --git a/lib/l10n/arb/app_en.arb b/lib/l10n/arb/app_en.arb index 08072f1..19695a5 100644 --- a/lib/l10n/arb/app_en.arb +++ b/lib/l10n/arb/app_en.arb @@ -77,6 +77,9 @@ "bonus_points_message": "{playerCount, plural, =1{{names} has reached exactly the point limit of {pointLimit} points and therefore gets {bonusPoints} points deducted!} other{{names} have reached exactly the point limit of {pointLimit} points and therefore get {bonusPoints} points deducted!}}", "@bonus_points_message": { "placeholders": { + "playerCount": { + "type": "int" + }, "names": { "type": "String" }, diff --git a/lib/presentation/views/round_view.dart b/lib/presentation/views/round_view.dart index 45ce0ef..a821fb5 100644 --- a/lib/presentation/views/round_view.dart +++ b/lib/presentation/views/round_view.dart @@ -436,13 +436,17 @@ class _RoundViewState extends State { String resultText = ''; if (nameList.length == 1) { resultText = AppLocalizations.of(context).bonus_points_message( - nameList.first, pointLimit, bonusPoints, nameList.length); + nameList.length, nameList.first, pointLimit, bonusPoints); } else { resultText = nameList.length == 2 ? '${nameList[0]} & ${nameList[1]}' : '${nameList.sublist(0, nameList.length - 1).join(', ')} & ${nameList.last}'; resultText = AppLocalizations.of(context).bonus_points_message( - resultText, pointLimit, bonusPoints, nameList.length); + nameList.length, + resultText, + pointLimit, + bonusPoints, + ); } return resultText; } diff --git a/pubspec.yaml b/pubspec.yaml index 4d0b0f6..9db5d4b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: cabo_counter description: "Mobile app for the card game Cabo" publish_to: 'none' -version: 0.4.5+493 +version: 0.4.5+494 environment: sdk: ^3.5.4