From 8afba5680b830dfc762b4b8730fbf7f9ffad0a6d Mon Sep 17 00:00:00 2001 From: mathiskirchner Date: Thu, 1 Jan 2026 18:18:14 +0100 Subject: [PATCH] Add localization for no statistics available message and removed dots from all messages --- lib/l10n/arb/app_de.arb | 9 +++++---- lib/l10n/arb/app_en.arb | 12 ++++++++---- lib/l10n/generated/app_localizations.dart | 14 ++++++++++---- lib/l10n/generated/app_localizations_de.dart | 9 ++++++--- lib/l10n/generated/app_localizations_en.dart | 9 ++++++--- 5 files changed, 35 insertions(+), 18 deletions(-) diff --git a/lib/l10n/arb/app_de.arb b/lib/l10n/arb/app_de.arb index f5e4855..4228671 100644 --- a/lib/l10n/arb/app_de.arb +++ b/lib/l10n/arb/app_de.arb @@ -15,12 +15,12 @@ "selected_players": "Ausgewählte Spieler: {count}", "no_players_selected": "Keine Spieler ausgewählt", "all_players": "Alle Spieler:", - "successfully_added_player": "Spieler {playerName} erfolgreich hinzugefügt.", - "could_not_add_player": "Spieler {playerName} konnte nicht hinzugefügt werden.", + "successfully_added_player": "Spieler {playerName} erfolgreich hinzugefügt", + "could_not_add_player": "Spieler {playerName} konnte nicht hinzugefügt werden", "winner": "Gewinner: {winnerName}", "players": "Spieler", "player_name": "Spielername", - "no_data_available": "Keine Daten verfügbar.", + "no_statistics_available": "Keine Statistiken verfügbar", "matches": "Matches", "groups": "Gruppen", "recent_matches": "Letzte Matches", @@ -78,5 +78,6 @@ "most_points": "Höchste Punkte", "least_points": "Niedrigste Punkte", "search_for_players": "Nach Spielern suchen", - "search_for_groups": "Nach Gruppen suchen" + "search_for_groups": "Nach Gruppen suchen", + "no_data_available": "Keine Daten verfügbar" } diff --git a/lib/l10n/arb/app_en.arb b/lib/l10n/arb/app_en.arb index ae3fa16..72e307c 100644 --- a/lib/l10n/arb/app_en.arb +++ b/lib/l10n/arb/app_en.arb @@ -66,7 +66,7 @@ "@all_players": { "description": "Label for all players list" }, - "successfully_added_player": "Successfully added player {playerName}.", + "successfully_added_player": "Successfully added player {playerName}", "@successfully_added_player": { "description": "Success message when adding a player", "placeholders": { @@ -76,7 +76,7 @@ } } }, - "could_not_add_player": "Could not add player {playerName}.", + "could_not_add_player": "Could not add player {playerName}", "@could_not_add_player": { "description": "Error message when adding a player fails", "placeholders": { @@ -100,9 +100,13 @@ "@players": { "description": "Players label" }, - "no_data_available": "No data available.", + "no_statistics_available": "No statistics available", + "@no_statistics_available": { + "description": "Message when no statistics are available, because no matches were played yet" + }, + "no_data_available": "No data available", "@no_data_available": { - "description": "Message when no data is available" + "description": "Message when no data in the statistic tiles is given" }, "matches": "Matches", "@matches": { diff --git a/lib/l10n/generated/app_localizations.dart b/lib/l10n/generated/app_localizations.dart index 05ce4b6..edd14df 100644 --- a/lib/l10n/generated/app_localizations.dart +++ b/lib/l10n/generated/app_localizations.dart @@ -191,13 +191,13 @@ abstract class AppLocalizations { /// Success message when adding a player /// /// In en, this message translates to: - /// **'Successfully added player {playerName}.'** + /// **'Successfully added player {playerName}'** String successfully_added_player(String playerName); /// Error message when adding a player fails /// /// In en, this message translates to: - /// **'Could not add player {playerName}.'** + /// **'Could not add player {playerName}'** String could_not_add_player(String playerName); /// Shows the winner's name @@ -212,10 +212,16 @@ abstract class AppLocalizations { /// **'Players'** String get players; - /// Message when no data is available + /// Message when no statistics are available, because no matches were played yet /// /// In en, this message translates to: - /// **'No data available.'** + /// **'No statistics available'** + String get no_statistics_available; + + /// Message when no data in the statistic tiles is given + /// + /// In en, this message translates to: + /// **'No data available'** String get no_data_available; /// Label for matches diff --git a/lib/l10n/generated/app_localizations_de.dart b/lib/l10n/generated/app_localizations_de.dart index 070cb9a..df46454 100644 --- a/lib/l10n/generated/app_localizations_de.dart +++ b/lib/l10n/generated/app_localizations_de.dart @@ -63,12 +63,12 @@ class AppLocalizationsDe extends AppLocalizations { @override String successfully_added_player(String playerName) { - return 'Spieler $playerName erfolgreich hinzugefügt.'; + return 'Spieler $playerName erfolgreich hinzugefügt'; } @override String could_not_add_player(String playerName) { - return 'Spieler $playerName konnte nicht hinzugefügt werden.'; + return 'Spieler $playerName konnte nicht hinzugefügt werden'; } @override @@ -80,7 +80,10 @@ class AppLocalizationsDe extends AppLocalizations { String get players => 'Spieler'; @override - String get no_data_available => 'Keine Daten verfügbar.'; + String get no_statistics_available => 'Keine Statistiken verfügbar'; + + @override + String get no_data_available => 'Keine Daten verfügbar'; @override String get matches => 'Matches'; diff --git a/lib/l10n/generated/app_localizations_en.dart b/lib/l10n/generated/app_localizations_en.dart index 8c78e86..7f000e5 100644 --- a/lib/l10n/generated/app_localizations_en.dart +++ b/lib/l10n/generated/app_localizations_en.dart @@ -63,12 +63,12 @@ class AppLocalizationsEn extends AppLocalizations { @override String successfully_added_player(String playerName) { - return 'Successfully added player $playerName.'; + return 'Successfully added player $playerName'; } @override String could_not_add_player(String playerName) { - return 'Could not add player $playerName.'; + return 'Could not add player $playerName'; } @override @@ -80,7 +80,10 @@ class AppLocalizationsEn extends AppLocalizations { String get players => 'Players'; @override - String get no_data_available => 'No data available.'; + String get no_statistics_available => 'No statistics available'; + + @override + String get no_data_available => 'No data available'; @override String get matches => 'Matches';