feat: add localization for no matches played and not part of any group
This commit is contained in:
@@ -100,6 +100,7 @@
|
|||||||
"no_license_text_available": "Kein Lizenztext verfügbar",
|
"no_license_text_available": "Kein Lizenztext verfügbar",
|
||||||
"no_licenses_found": "Keine Lizenzen gefunden",
|
"no_licenses_found": "Keine Lizenzen gefunden",
|
||||||
"no_matches_created_yet": "Noch keine Spiele erstellt",
|
"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_created_yet": "Noch keine Spieler:in erstellt",
|
||||||
"no_players_found_with_that_name": "Keine Spieler:in mit diesem Namen gefunden",
|
"no_players_found_with_that_name": "Keine Spieler:in mit diesem Namen gefunden",
|
||||||
"no_players_selected": "Keine Spieler:innen ausgewählt",
|
"no_players_selected": "Keine Spieler:innen ausgewählt",
|
||||||
@@ -110,6 +111,7 @@
|
|||||||
"none": "Kein",
|
"none": "Kein",
|
||||||
"none_group": "Keine",
|
"none_group": "Keine",
|
||||||
"not_available": "Nicht verfügbar",
|
"not_available": "Nicht verfügbar",
|
||||||
|
"not_part_of_any_group": "Noch keiner Gruppe hinzugefügt",
|
||||||
"place": "Platz",
|
"place": "Platz",
|
||||||
"placement": "Platzierung",
|
"placement": "Platzierung",
|
||||||
"played_matches": "Gespielte Spiele",
|
"played_matches": "Gespielte Spiele",
|
||||||
|
|||||||
@@ -100,6 +100,7 @@
|
|||||||
"no_license_text_available": "No license text available",
|
"no_license_text_available": "No license text available",
|
||||||
"no_licenses_found": "No licenses found",
|
"no_licenses_found": "No licenses found",
|
||||||
"no_matches_created_yet": "No matches created yet",
|
"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_created_yet": "No players created yet",
|
||||||
"no_players_found_with_that_name": "No players found with that name",
|
"no_players_found_with_that_name": "No players found with that name",
|
||||||
"no_players_selected": "No players selected",
|
"no_players_selected": "No players selected",
|
||||||
@@ -110,6 +111,7 @@
|
|||||||
"none": "None",
|
"none": "None",
|
||||||
"none_group": "None",
|
"none_group": "None",
|
||||||
"not_available": "Not available",
|
"not_available": "Not available",
|
||||||
|
"not_part_of_any_group": "Not part of any group yet",
|
||||||
"place": "place",
|
"place": "place",
|
||||||
"placement": "Placement",
|
"placement": "Placement",
|
||||||
"played_matches": "Played Matches",
|
"played_matches": "Played Matches",
|
||||||
|
|||||||
@@ -656,6 +656,12 @@ abstract class AppLocalizations {
|
|||||||
/// **'No matches created yet'**
|
/// **'No matches created yet'**
|
||||||
String get 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.
|
/// No description provided for @no_players_created_yet.
|
||||||
///
|
///
|
||||||
/// In en, this message translates to:
|
/// In en, this message translates to:
|
||||||
@@ -716,6 +722,12 @@ abstract class AppLocalizations {
|
|||||||
/// **'Not available'**
|
/// **'Not available'**
|
||||||
String get 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.
|
/// No description provided for @place.
|
||||||
///
|
///
|
||||||
/// In en, this message translates to:
|
/// In en, this message translates to:
|
||||||
|
|||||||
@@ -303,6 +303,9 @@ class AppLocalizationsDe extends AppLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get no_matches_created_yet => 'Noch keine Spiele erstellt';
|
String get no_matches_created_yet => 'Noch keine Spiele erstellt';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get no_matches_played_yet => 'Noch kein Spiel gespielt';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get no_players_created_yet => 'Noch keine Spieler:in erstellt';
|
String get no_players_created_yet => 'Noch keine Spieler:in erstellt';
|
||||||
|
|
||||||
@@ -334,6 +337,9 @@ class AppLocalizationsDe extends AppLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get not_available => 'Nicht verfügbar';
|
String get not_available => 'Nicht verfügbar';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get not_part_of_any_group => 'Noch keiner Gruppe hinzugefügt';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get place => 'Platz';
|
String get place => 'Platz';
|
||||||
|
|
||||||
|
|||||||
@@ -303,6 +303,9 @@ class AppLocalizationsEn extends AppLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get no_matches_created_yet => 'No matches created yet';
|
String get no_matches_created_yet => 'No matches created yet';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get no_matches_played_yet => 'No games played yet';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get no_players_created_yet => 'No players created yet';
|
String get no_players_created_yet => 'No players created yet';
|
||||||
|
|
||||||
@@ -334,6 +337,9 @@ class AppLocalizationsEn extends AppLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get not_available => 'Not available';
|
String get not_available => 'Not available';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get not_part_of_any_group => 'Not part of any group yet';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get place => 'place';
|
String get place => 'place';
|
||||||
|
|
||||||
|
|||||||
@@ -185,18 +185,26 @@ class _PlayerDetailViewState extends State<PlayerDetailView> {
|
|||||||
enabled: isLoading,
|
enabled: isLoading,
|
||||||
fixLayoutBuilder: true,
|
fixLayoutBuilder: true,
|
||||||
alignment: Alignment.topLeft,
|
alignment: Alignment.topLeft,
|
||||||
child: Wrap(
|
child: playerMatches.isNotEmpty
|
||||||
alignment: WrapAlignment.start,
|
? Wrap(
|
||||||
crossAxisAlignment: WrapCrossAlignment.start,
|
alignment: WrapAlignment.start,
|
||||||
spacing: 12,
|
crossAxisAlignment: WrapCrossAlignment.start,
|
||||||
runSpacing: 8,
|
spacing: 12,
|
||||||
children: playerMatches.map((match) {
|
runSpacing: 8,
|
||||||
return TextIconTile(
|
children: playerMatches.map((match) {
|
||||||
text: match.name,
|
return TextIconTile(
|
||||||
iconEnabled: false,
|
text: match.name,
|
||||||
);
|
iconEnabled: false,
|
||||||
}).toList(),
|
);
|
||||||
),
|
}).toList(),
|
||||||
|
)
|
||||||
|
: Text(
|
||||||
|
loc.no_matches_played_yet,
|
||||||
|
style: const TextStyle(
|
||||||
|
fontSize: 14,
|
||||||
|
color: CustomTheme.textColor,
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 15),
|
const SizedBox(height: 15),
|
||||||
@@ -208,18 +216,26 @@ class _PlayerDetailViewState extends State<PlayerDetailView> {
|
|||||||
enabled: isLoading,
|
enabled: isLoading,
|
||||||
fixLayoutBuilder: true,
|
fixLayoutBuilder: true,
|
||||||
alignment: Alignment.topLeft,
|
alignment: Alignment.topLeft,
|
||||||
child: Wrap(
|
child: playerGroups.isNotEmpty
|
||||||
alignment: WrapAlignment.start,
|
? Wrap(
|
||||||
crossAxisAlignment: WrapCrossAlignment.start,
|
alignment: WrapAlignment.start,
|
||||||
spacing: 12,
|
crossAxisAlignment: WrapCrossAlignment.start,
|
||||||
runSpacing: 8,
|
spacing: 12,
|
||||||
children: playerGroups.map((group) {
|
runSpacing: 8,
|
||||||
return TextIconTile(
|
children: playerGroups.map((group) {
|
||||||
text: group.name,
|
return TextIconTile(
|
||||||
iconEnabled: false,
|
text: group.name,
|
||||||
);
|
iconEnabled: false,
|
||||||
}).toList(),
|
);
|
||||||
),
|
}).toList(),
|
||||||
|
)
|
||||||
|
: Text(
|
||||||
|
loc.not_part_of_any_group,
|
||||||
|
style: const TextStyle(
|
||||||
|
fontSize: 14,
|
||||||
|
color: CustomTheme.textColor,
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 15),
|
const SizedBox(height: 15),
|
||||||
|
|||||||
Reference in New Issue
Block a user