Add localization for no statistics available message and removed dots from all messages
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m6s
Pull Request Pipeline / lint (pull_request) Successful in 2m11s

This commit is contained in:
2026-01-01 18:18:14 +01:00
parent 7103765054
commit 8afba5680b
5 changed files with 35 additions and 18 deletions

View File

@@ -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"
}

View File

@@ -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": {

View File

@@ -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

View File

@@ -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';

View File

@@ -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';