From d5d318929e2b601d20095c4d1b1730c6b4611ed9 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Thu, 10 Jul 2025 17:42:05 +0200 Subject: [PATCH] Updated strings --- lib/l10n/arb/app_de.arb | 5 ++++ lib/l10n/arb/app_en.arb | 5 ++++ lib/l10n/generated/app_localizations.dart | 24 ++++++++++++++++++++ lib/l10n/generated/app_localizations_de.dart | 13 +++++++++++ lib/l10n/generated/app_localizations_en.dart | 13 +++++++++++ lib/presentation/views/main_menu_view.dart | 8 +++---- pubspec.yaml | 2 +- 7 files changed, 65 insertions(+), 5 deletions(-) diff --git a/lib/l10n/arb/app_de.arb b/lib/l10n/arb/app_de.arb index 7615b27..64a6d02 100644 --- a/lib/l10n/arb/app_de.arb +++ b/lib/l10n/arb/app_de.arb @@ -30,6 +30,11 @@ } } }, + "rating_title": "Gefällt dir die App?", + "rating_message": "Feedback hilft mir, die App zu verbessern. Vielen Dank!", + "yes": "Ja", + "no": "Nein", + "overview": "Übersicht", "new_game": "Neues Spiel", "game_title": "Titel des Spiels", diff --git a/lib/l10n/arb/app_en.arb b/lib/l10n/arb/app_en.arb index ee01699..805a178 100644 --- a/lib/l10n/arb/app_en.arb +++ b/lib/l10n/arb/app_en.arb @@ -30,6 +30,11 @@ } } }, + "rating_title": "Do you like the app?", + "rating_message": "Feedback helps me to continuously improve the app. Thank you!", + "yes": "Yes", + "no": "No", + "overview": "Overview", "new_game": "New Game", "game_title": "Game Title", diff --git a/lib/l10n/generated/app_localizations.dart b/lib/l10n/generated/app_localizations.dart index ff14253..c349078 100644 --- a/lib/l10n/generated/app_localizations.dart +++ b/lib/l10n/generated/app_localizations.dart @@ -218,6 +218,30 @@ abstract class AppLocalizations { /// **'Bist du sicher, dass du das Spiel \"{gameTitle}\" löschen möchtest? Diese Aktion kann nicht rückgängig gemacht werden.'** String delete_game_message(String gameTitle); + /// No description provided for @rating_title. + /// + /// In de, this message translates to: + /// **'Gefällt dir die App?'** + String get rating_title; + + /// No description provided for @rating_message. + /// + /// In de, this message translates to: + /// **'Feedback hilft mir, die App zu verbessern. Vielen Dank!'** + String get rating_message; + + /// No description provided for @yes. + /// + /// In de, this message translates to: + /// **'Ja'** + String get yes; + + /// No description provided for @no. + /// + /// In de, this message translates to: + /// **'Nein'** + String get no; + /// No description provided for @overview. /// /// In de, this message translates to: diff --git a/lib/l10n/generated/app_localizations_de.dart b/lib/l10n/generated/app_localizations_de.dart index 898df64..d6fcf72 100644 --- a/lib/l10n/generated/app_localizations_de.dart +++ b/lib/l10n/generated/app_localizations_de.dart @@ -71,6 +71,19 @@ class AppLocalizationsDe extends AppLocalizations { return 'Bist du sicher, dass du das Spiel \"$gameTitle\" löschen möchtest? Diese Aktion kann nicht rückgängig gemacht werden.'; } + @override + String get rating_title => 'Gefällt dir die App?'; + + @override + String get rating_message => + 'Feedback hilft mir, die App zu verbessern. Vielen Dank!'; + + @override + String get yes => 'Ja'; + + @override + String get no => 'Nein'; + @override String get overview => 'Übersicht'; diff --git a/lib/l10n/generated/app_localizations_en.dart b/lib/l10n/generated/app_localizations_en.dart index c057432..4adaa4b 100644 --- a/lib/l10n/generated/app_localizations_en.dart +++ b/lib/l10n/generated/app_localizations_en.dart @@ -71,6 +71,19 @@ class AppLocalizationsEn extends AppLocalizations { return 'Are you sure you want to delete the game \"$gameTitle\"? This action cannot be undone.'; } + @override + String get rating_title => 'Do you like the app?'; + + @override + String get rating_message => + 'Feedback helps me to continuously improve the app. Thank you!'; + + @override + String get yes => 'Yes'; + + @override + String get no => 'No'; + @override String get overview => 'Overview'; diff --git a/lib/presentation/views/main_menu_view.dart b/lib/presentation/views/main_menu_view.dart index fee5c72..bf417f7 100644 --- a/lib/presentation/views/main_menu_view.dart +++ b/lib/presentation/views/main_menu_view.dart @@ -260,17 +260,17 @@ class _MainMenuViewState extends State { context: context, builder: (BuildContext context) { return CupertinoAlertDialog( - title: const Text('Gefällt dir die App?'), - content: const Text('Dein Feedback hilft uns weiter.'), + title: Text(AppLocalizations.of(context).rating_title), + content: Text(AppLocalizations.of(context).rating_message), actions: [ CupertinoDialogAction( - child: const Text('Ja'), + child: Text(AppLocalizations.of(context).yes), onPressed: () { Navigator.of(context).pop(RATING_DIALOG_YES); }, ), CupertinoDialogAction( - child: const Text('Nein'), + child: Text(AppLocalizations.of(context).no), onPressed: () { Navigator.of(context).pop(RATING_DIALOG_NO); }, diff --git a/pubspec.yaml b/pubspec.yaml index 35eac0b..f0d4ba4 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.0+443 +version: 0.4.0+451 environment: sdk: ^3.5.4