From d7eeec5626ab96d39b4ad86900b1313e5865ce65 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Sun, 20 Jul 2025 23:48:26 +0200 Subject: [PATCH] Updated strings --- lib/l10n/arb/app_en.arb | 2 +- lib/l10n/generated/app_localizations_en.dart | 9 ++++++++- pubspec.yaml | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/l10n/arb/app_en.arb b/lib/l10n/arb/app_en.arb index bedf95f..7346343 100644 --- a/lib/l10n/arb/app_en.arb +++ b/lib/l10n/arb/app_en.arb @@ -97,7 +97,7 @@ }, "end_of_game_title": "End of Game", - "end_of_game_message": "{names} won the game with {points} points. Congratulations!", + "end_of_game_message": "{playerCount, plural, =1{{names} won the game with {points} points. Congratulations!} other{{names} won the game with {points} points. Congratulations to everyone!}}", "@end_of_game_message": { "placeholders": { "playerCount": { diff --git a/lib/l10n/generated/app_localizations_en.dart b/lib/l10n/generated/app_localizations_en.dart index 837c83e..eb341af 100644 --- a/lib/l10n/generated/app_localizations_en.dart +++ b/lib/l10n/generated/app_localizations_en.dart @@ -210,7 +210,14 @@ class AppLocalizationsEn extends AppLocalizations { @override String end_of_game_message(int playerCount, String names, int points) { - return '$names won the game with $points points. Congratulations!'; + String _temp0 = intl.Intl.pluralLogic( + playerCount, + locale: localeName, + other: + '$names won the game with $points points. Congratulations to everyone!', + one: '$names won the game with $points points. Congratulations!', + ); + return '$_temp0'; } @override diff --git a/pubspec.yaml b/pubspec.yaml index 4994cb9..af2a3bd 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.5.2+582 +version: 0.5.2+583 environment: sdk: ^3.5.4