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

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