feat: add localization for no matches played and not part of any group

This commit is contained in:
2026-05-21 16:20:48 +02:00
parent bf2cd2bf58
commit 78c59a9b52
6 changed files with 68 additions and 24 deletions

View File

@@ -100,6 +100,7 @@
"no_license_text_available": "Kein Lizenztext verfügbar",
"no_licenses_found": "Keine Lizenzen gefunden",
"no_matches_created_yet": "Noch keine Spiele erstellt",
"no_matches_played_yet": "Noch kein Spiel gespielt",
"no_players_created_yet": "Noch keine Spieler:in erstellt",
"no_players_found_with_that_name": "Keine Spieler:in mit diesem Namen gefunden",
"no_players_selected": "Keine Spieler:innen ausgewählt",
@@ -110,6 +111,7 @@
"none": "Kein",
"none_group": "Keine",
"not_available": "Nicht verfügbar",
"not_part_of_any_group": "Noch keiner Gruppe hinzugefügt",
"place": "Platz",
"placement": "Platzierung",
"played_matches": "Gespielte Spiele",

View File

@@ -100,6 +100,7 @@
"no_license_text_available": "No license text available",
"no_licenses_found": "No licenses found",
"no_matches_created_yet": "No matches created yet",
"no_matches_played_yet": "No games played yet",
"no_players_created_yet": "No players created yet",
"no_players_found_with_that_name": "No players found with that name",
"no_players_selected": "No players selected",
@@ -110,6 +111,7 @@
"none": "None",
"none_group": "None",
"not_available": "Not available",
"not_part_of_any_group": "Not part of any group yet",
"place": "place",
"placement": "Placement",
"played_matches": "Played Matches",

View File

@@ -656,6 +656,12 @@ abstract class AppLocalizations {
/// **'No matches created yet'**
String get no_matches_created_yet;
/// No description provided for @no_matches_played_yet.
///
/// In en, this message translates to:
/// **'No games played yet'**
String get no_matches_played_yet;
/// No description provided for @no_players_created_yet.
///
/// In en, this message translates to:
@@ -716,6 +722,12 @@ abstract class AppLocalizations {
/// **'Not available'**
String get not_available;
/// No description provided for @not_part_of_any_group.
///
/// In en, this message translates to:
/// **'Not part of any group yet'**
String get not_part_of_any_group;
/// No description provided for @place.
///
/// In en, this message translates to:

View File

@@ -303,6 +303,9 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get no_matches_created_yet => 'Noch keine Spiele erstellt';
@override
String get no_matches_played_yet => 'Noch kein Spiel gespielt';
@override
String get no_players_created_yet => 'Noch keine Spieler:in erstellt';
@@ -334,6 +337,9 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get not_available => 'Nicht verfügbar';
@override
String get not_part_of_any_group => 'Noch keiner Gruppe hinzugefügt';
@override
String get place => 'Platz';

View File

@@ -303,6 +303,9 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get no_matches_created_yet => 'No matches created yet';
@override
String get no_matches_played_yet => 'No games played yet';
@override
String get no_players_created_yet => 'No players created yet';
@@ -334,6 +337,9 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get not_available => 'Not available';
@override
String get not_part_of_any_group => 'Not part of any group yet';
@override
String get place => 'place';

View File

@@ -185,18 +185,26 @@ class _PlayerDetailViewState extends State<PlayerDetailView> {
enabled: isLoading,
fixLayoutBuilder: true,
alignment: Alignment.topLeft,
child: Wrap(
alignment: WrapAlignment.start,
crossAxisAlignment: WrapCrossAlignment.start,
spacing: 12,
runSpacing: 8,
children: playerMatches.map((match) {
return TextIconTile(
text: match.name,
iconEnabled: false,
);
}).toList(),
),
child: playerMatches.isNotEmpty
? Wrap(
alignment: WrapAlignment.start,
crossAxisAlignment: WrapCrossAlignment.start,
spacing: 12,
runSpacing: 8,
children: playerMatches.map((match) {
return TextIconTile(
text: match.name,
iconEnabled: false,
);
}).toList(),
)
: Text(
loc.no_matches_played_yet,
style: const TextStyle(
fontSize: 14,
color: CustomTheme.textColor,
),
),
),
),
const SizedBox(height: 15),
@@ -208,18 +216,26 @@ class _PlayerDetailViewState extends State<PlayerDetailView> {
enabled: isLoading,
fixLayoutBuilder: true,
alignment: Alignment.topLeft,
child: Wrap(
alignment: WrapAlignment.start,
crossAxisAlignment: WrapCrossAlignment.start,
spacing: 12,
runSpacing: 8,
children: playerGroups.map((group) {
return TextIconTile(
text: group.name,
iconEnabled: false,
);
}).toList(),
),
child: playerGroups.isNotEmpty
? Wrap(
alignment: WrapAlignment.start,
crossAxisAlignment: WrapCrossAlignment.start,
spacing: 12,
runSpacing: 8,
children: playerGroups.map((group) {
return TextIconTile(
text: group.name,
iconEnabled: false,
);
}).toList(),
)
: Text(
loc.not_part_of_any_group,
style: const TextStyle(
fontSize: 14,
color: CustomTheme.textColor,
),
),
),
),
const SizedBox(height: 15),