12 Commits

Author SHA1 Message Date
f0379e97c7 Merge pull request 'MVP' (#141) from development into main
Reviewed-on: #141
Reviewed-by: gelbeinhalb <spam@yannick-weigert.de>
2026-01-09 12:55:50 +00:00
c2394c3733 Merge pull request 'MVP-Refactoring' (#139) from refactoring/68-mvp-refactoring into development
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m6s
Pull Request Pipeline / lint (pull_request) Successful in 2m8s
Reviewed-on: #139
Reviewed-by: gelbeinhalb <spam@yannick-weigert.de>
Reviewed-by: Mathis Kirchner <mathis.kirchner.mk@gmail.com>
2026-01-08 20:24:01 +00:00
88766652b9 Small loc corrections
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m6s
Pull Request Pipeline / lint (pull_request) Successful in 2m21s
2026-01-08 21:21:33 +01:00
2a1573ee2d Remove Whitespace
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m12s
Pull Request Pipeline / lint (pull_request) Successful in 2m15s
2026-01-08 21:15:01 +01:00
cfb07bfe28 Updated localizations
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m14s
Pull Request Pipeline / lint (pull_request) Successful in 2m18s
2026-01-08 21:13:24 +01:00
d741990f2f Fixed navbar issue
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m4s
Pull Request Pipeline / lint (pull_request) Successful in 2m9s
2026-01-08 21:07:30 +01:00
76121eb4fb Updated localizations
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m6s
Pull Request Pipeline / lint (pull_request) Successful in 2m18s
2026-01-07 17:30:19 +01:00
d5ee6449b0 Updated localizations
All checks were successful
Pull Request Pipeline / lint (pull_request) Successful in 2m11s
Pull Request Pipeline / test (pull_request) Successful in 2m10s
2026-01-07 17:02:06 +01:00
7d9757abb6 Merge branch 'development' into refactoring/68-mvp-refactoring
# Conflicts:
#	lib/l10n/generated/app_localizations.dart
#	lib/l10n/generated/app_localizations_de.dart
#	lib/l10n/generated/app_localizations_en.dart
2026-01-07 16:58:15 +01:00
d94d51c6ea Merge pull request 'change settings icons to filled and rounded' (#140) from enhancement/135-settings-icons into development
Reviewed-on: #140
Reviewed-by: Felix Kirchner <felix.kirchner.fk@gmail.com>
2026-01-07 14:23:27 +00:00
gelbeinhalb
803cf8a972 update app_localizations
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m0s
Pull Request Pipeline / lint (pull_request) Successful in 2m6s
2026-01-07 15:17:13 +01:00
gelbeinhalb
13be75a65b change settings icons to filled and rounded
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m3s
Pull Request Pipeline / lint (pull_request) Successful in 2m5s
2026-01-07 15:12:12 +01:00
10 changed files with 389 additions and 445 deletions

View File

@@ -1,6 +1,6 @@
{ {
"@@locale": "de", "@@locale": "de",
"all_players": "Alle Spieler:innen:", "all_players": "Alle Spieler:innen",
"all_players_selected": "Alle Spieler:innen ausgewählt", "all_players_selected": "Alle Spieler:innen ausgewählt",
"amount_of_matches": "Anzahl der Spiele", "amount_of_matches": "Anzahl der Spiele",
"cancel": "Abbrechen", "cancel": "Abbrechen",
@@ -44,7 +44,7 @@
"no_matches_created_yet": "Noch keine Spiele erstellt", "no_matches_created_yet": "Noch keine Spiele erstellt",
"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:in ausgewählt", "no_players_selected": "Keine Spieler:innen ausgewählt",
"no_recent_matches_available": "Keine letzten Spiele verfügbar", "no_recent_matches_available": "Keine letzten Spiele verfügbar",
"no_second_match_available": "Kein zweites Spiel verfügbar", "no_second_match_available": "Kein zweites Spiel verfügbar",
"no_statistics_available": "Keine Statistiken verfügbar", "no_statistics_available": "Keine Statistiken verfügbar",
@@ -64,7 +64,7 @@
"search_for_groups": "Nach Gruppen suchen", "search_for_groups": "Nach Gruppen suchen",
"search_for_players": "Nach Spieler:innen suchen", "search_for_players": "Nach Spieler:innen suchen",
"select_winner": "Gewinner:in wählen:", "select_winner": "Gewinner:in wählen:",
"selected_players": "Ausgewählte Spieler:innen: {count}", "selected_players": "Ausgewählte Spieler:innen",
"settings": "Einstellungen", "settings": "Einstellungen",
"single_loser": "Ein:e Verlierer:in", "single_loser": "Ein:e Verlierer:in",
"single_winner": "Ein:e Gewinner:in", "single_winner": "Ein:e Gewinner:in",
@@ -73,11 +73,11 @@
"successfully_added_player": "Spieler:in {playerName} erfolgreich hinzugefügt", "successfully_added_player": "Spieler:in {playerName} erfolgreich hinzugefügt",
"there_is_no_group_matching_your_search": "Es gibt keine Gruppe, die deiner Suche entspricht", "there_is_no_group_matching_your_search": "Es gibt keine Gruppe, die deiner Suche entspricht",
"this_cannot_be_undone": "Dies kann nicht rückgängig gemacht werden", "this_cannot_be_undone": "Dies kann nicht rückgängig gemacht werden",
"today_at": "Heute um {time}", "today_at": "Heute um",
"undo": "Rückgängig", "undo": "Rückgängig",
"unknown_exception": "Unbekannter Fehler (siehe Konsole)", "unknown_exception": "Unbekannter Fehler (siehe Konsole)",
"winner": "Gewinner*in", "winner": "Gewinner:in",
"winrate": "Siegquote", "winrate": "Siegquote",
"wins": "Siege", "wins": "Siege",
"yesterday_at": "Gestern um {time}" "yesterday_at": "Gestern um"
} }

View File

@@ -1,367 +1,343 @@
{ {
"@@locale": "en", "@@locale": "en",
"@all_players": { "@all_players": {
"description": "Label for all players list" "description": "Label for all players list"
}, },
"@all_players_selected": { "@all_players_selected": {
"description": "Message when all players are added to selection" "description": "Message when all players are added to selection"
}, },
"@amount_of_matches": { "@amount_of_matches": {
"description": "Label for amount of matches statistic" "description": "Label for amount of matches statistic"
}, },
"@cancel": { "@app_name": {
"description": "Cancel button text" "description": "The name of the App"
}, },
"@choose_game": { "@cancel": {
"description": "Label for choosing a game" "description": "Cancel button text"
}, },
"@choose_group": { "@choose_game": {
"description": "Label for choosing a group" "description": "Label for choosing a game"
}, },
"@choose_ruleset": { "@choose_group": {
"description": "Label for choosing a ruleset" "description": "Label for choosing a group"
}, },
"@could_not_add_player": { "@choose_ruleset": {
"description": "Error message when adding a player fails", "description": "Label for choosing a ruleset"
"placeholders": { },
"playerName": { "@could_not_add_player": {
"type": "String", "description": "Error message when adding a player fails"
"example": "John" },
} "@create_group": {
} "description": "Button text to create a group"
}, },
"@create_group": { "@create_match": {
"description": "Button text to create a group" "description": "Button text to create a match"
}, },
"@create_match": { "@create_new_group": {
"description": "Button text to create a match" "description": "Button text to create a new group"
}, },
"@create_new_group": { "@create_new_match": {
"description": "Button text to create a new group" "description": "Button text to create a new match"
}, },
"@create_new_match": { "@data_successfully_deleted": {
"description": "Button text to create a new match" "description": "Success message after deleting data"
}, },
"@data_successfully_deleted": { "@data_successfully_exported": {
"description": "Success message after deleting data" "description": "Success message after exporting data"
}, },
"@data_successfully_exported": { "@data_successfully_imported": {
"description": "Success message after exporting data" "description": "Success message after importing data"
}, },
"@data_successfully_imported": { "@days_ago": {
"description": "Success message after importing data" "description": "Date format for days ago",
}, "placeholders": {
"@days_ago": { "count": {
"description": "Date format for days ago", "type": "int"
"placeholders": { }
"count": { }
"type": "int" },
} "@delete": {
} "description": "Delete button text"
}, },
"@delete": { "@delete_all_data": {
"description": "Delete button text" "description": "Confirmation dialog for deleting all data"
}, },
"@delete_all_data": { "@error_creating_group": {
"description": "Confirmation dialog for deleting all data" "description": "Error message when group creation fails"
}, },
"@error_creating_group": { "@error_reading_file": {
"description": "Error message when group creation fails" "description": "Error message when file cannot be read"
}, },
"@error_reading_file": { "@export_canceled": {
"description": "Error message when file cannot be read" "description": "Message when export is canceled"
}, },
"@export_canceled": { "@export_data": {
"description": "Message when export is canceled" "description": "Export data menu item"
}, },
"@export_data": { "@format_exception": {
"description": "Export data menu item" "description": "Error message for format exceptions"
}, },
"@format_exception": { "@game": {
"description": "Error message for format exceptions" "description": "Game label"
}, },
"@game": { "@game_name": {
"description": "Game label" "description": "Placeholder for game name search"
}, },
"@game_name": { "@group": {
"description": "Placeholder for game name search" "description": "Group label"
}, },
"@game_tracker": { "@group_name": {
"description": "App Name" "description": "Placeholder for group name input"
}, },
"@group": { "@groups": {
"description": "Group label" "description": "Label for groups"
}, },
"@group_name": { "@home": {
"description": "Placeholder for group name input" "description": "Home tab label"
}, },
"@groups": { "@import_canceled": {
"description": "Label for groups" "description": "Message when import is canceled"
}, },
"@home": { "@import_data": {
"description": "Home tab label" "description": "Import data menu item"
}, },
"@import_canceled": { "@info": {
"description": "Message when import is canceled" "description": "Info label"
}, },
"@import_data": { "@invalid_schema": {
"description": "Import data menu item" "description": "Error message for invalid schema"
}, },
"@info": { "@least_points": {
"description": "Info label" "description": "Title for least points ruleset"
}, },
"@invalid_schema": { "@match_in_progress": {
"description": "Error message for invalid schema" "description": "Message when match is in progress"
}, },
"@least_points": { "@match_name": {
"description": "Title for least points ruleset" "description": "Placeholder for match name input"
}, },
"@match_in_progress": { "@matches": {
"description": "Message when match is in progress" "description": "Label for matches"
}, },
"@match_name": { "@menu": {
"description": "Placeholder for match name input" "description": "Menu label"
}, },
"@matches": { "@most_points": {
"description": "Label for matches" "description": "Title for most points ruleset"
}, },
"@menu": { "@no_data_available": {
"description": "Menu label" "description": "Message when no data in the statistic tiles is given"
}, },
"@most_points": { "@no_groups_created_yet": {
"description": "Title for most points ruleset" "description": "Message when no groups exist"
}, },
"@no_data_available": { "@no_matches_created_yet": {
"description": "Message when no data in the statistic tiles is given" "description": "Message when no matches exist"
}, },
"@no_groups_created_yet": { "@no_players_created_yet": {
"description": "Message when no groups exist" "description": "Message when no players exist"
}, },
"@no_matches_created_yet": { "@no_players_found_with_that_name": {
"description": "Message when no matches exist" "description": "Message when search returns no results"
}, },
"@no_players_created_yet": { "@no_players_selected": {
"description": "Message when no players exist" "description": "Message when no players are selected"
}, },
"@no_players_found_with_that_name": { "@no_recent_matches_available": {
"description": "Message when search returns no results" "description": "Message when no recent matches exist"
}, },
"@no_players_selected": { "@no_second_match_available": {
"description": "Message when no players are selected" "description": "Message when no second match exists"
}, },
"@no_recent_matches_available": { "@no_statistics_available": {
"description": "Message when no recent matches exist" "description": "Message when no statistics are available, because no matches were played yet"
}, },
"@no_second_match_available": { "@none": {
"description": "Message when no second match exists" "description": "None option label"
}, },
"@no_statistics_available": { "@none_group": {
"description": "Message when no statistics are available, because no matches were played yet" "description": "None group option label"
}, },
"@none": { "@not_available": {
"description": "None option label" "description": "Abbreviation for not available"
}, },
"@none_group": { "@player_name": {
"description": "None group option label" "description": "Placeholder for player name input"
}, },
"@not_available": { "@players": {
"description": "Abbreviation for not available" "description": "Players label"
}, },
"@player_name": { "@players_count": {
"description": "Placeholder for player name input" "description": "Shows the number of players",
}, "placeholders": {
"@players": { "count": {
"description": "Players label" "type": "int"
}, }
"@players_count": { }
"description": "Shows the number of players", },
"placeholders": { "@quick_create": {
"count": { "description": "Title for quick create section"
"type": "int" },
} "@recent_matches": {
} "description": "Title for recent matches section"
}, },
"@quick_create": { "@ruleset": {
"description": "Title for quick create section" "description": "Ruleset label"
}, },
"@recent_matches": { "@ruleset_least_points": {
"description": "Title for recent matches section" "description": "Description for least points ruleset"
}, },
"@ruleset": { "@ruleset_most_points": {
"description": "Ruleset label" "description": "Description for most points ruleset"
}, },
"@ruleset_least_points": { "@ruleset_single_loser": {
"description": "Description for least points ruleset" "description": "Description for single loser ruleset"
}, },
"@ruleset_most_points": { "@ruleset_single_winner": {
"description": "Description for most points ruleset" "description": "Description for single winner ruleset"
}, },
"@ruleset_single_loser": { "@search_for_groups": {
"description": "Description for single loser ruleset" "description": "Hint text for group search input field"
}, },
"@ruleset_single_winner": { "@search_for_players": {
"description": "Description for single winner ruleset" "description": "Hint text for player search input field"
}, },
"@search_for_groups": { "@select_winner": {
"description": "Hint text for group search input field" "description": "Label to select the winner"
}, },
"@search_for_players": { "@selected_players": {
"description": "Hint text for player search input field" "description": "Shows the number of selected players"
}, },
"@select_winner": { "@settings": {
"description": "Label to select the winner" "description": "Settings label"
}, },
"@selected_players": { "@single_loser": {
"description": "Shows the number of selected players", "description": "Title for single loser ruleset"
"placeholders": { },
"count": { "@single_winner": {
"type": "int", "description": "Title for single winner ruleset"
"format": "compact" },
} "@statistics": {
} "description": "Statistics tab label"
}, },
"@settings": { "@stats": {
"description": "Settings label" "description": "Stats tab label (short)"
}, },
"@single_loser": { "@successfully_added_player": {
"description": "Title for single loser ruleset" "description": "Success message when adding a player",
}, "placeholders": {
"@single_winner": { "playerName": {
"description": "Title for single winner ruleset" "type": "String",
}, "example": "John"
"@statistics": { }
"description": "Statistics tab label" }
}, },
"@stats": { "@there_is_no_group_matching_your_search": {
"description": "Stats tab label (short)" "description": "Message when search returns no groups"
}, },
"@successfully_added_player": { "@this_cannot_be_undone": {
"description": "Success message when adding a player", "description": "Warning message for irreversible actions"
"placeholders": { },
"playerName": { "@today_at": {
"type": "String", "description": "Date format for today"
"example": "John" },
} "@undo": {
} "description": "Undo button text"
}, },
"@there_is_no_group_matching_your_search": { "@unknown_exception": {
"description": "Message when search returns no groups" "description": "Error message for unknown exceptions"
}, },
"@this_cannot_be_undone": { "@winner": {
"description": "Warning message for irreversible actions" "description": "Winner label"
}, },
"@today_at": { "@winrate": {
"description": "Date format for today", "description": "Label for winrate statistic"
"placeholders": { },
"time": { "@wins": {
"type": "String", "description": "Label for wins statistic"
"example": "14:30" },
} "@yesterday_at": {
} "description": "Date format for yesterday"
}, },
"@undo": { "all_players": "All players",
"description": "Undo button text" "all_players_selected": "All players selected",
}, "amount_of_matches": "Amount of Matches",
"@unknown_exception": { "app_name": "Game Tracker",
"description": "Error message for unknown exceptions" "cancel": "Cancel",
}, "choose_game": "Choose Game",
"@winner": { "choose_group": "Choose Group",
"description": "Winner label" "choose_ruleset": "Choose Ruleset",
}, "could_not_add_player": "Could not add player",
"@winrate": { "create_group": "Create Group",
"description": "Label for winrate statistic" "create_match": "Create match",
}, "create_new_group": "Create new group",
"@wins": { "create_new_match": "Create new match",
"description": "Label for wins statistic" "data_successfully_deleted": "Data successfully deleted",
}, "data_successfully_exported": "Data successfully exported",
"@yesterday_at": { "data_successfully_imported": "Data successfully imported",
"description": "Date format for yesterday", "days_ago": "{count} days ago",
"placeholders": { "delete": "Delete",
"time": { "delete_all_data": "Delete all data?",
"type": "String", "error_creating_group": "Error while creating group, please try again",
"example": "14:30" "error_reading_file": "Error reading file",
} "export_canceled": "Export canceled",
} "export_data": "Export data",
}, "format_exception": "Format Exception (see console)",
"all_players": "All players:", "game": "Game",
"all_players_selected": "All players selected", "game_name": "Game Name",
"amount_of_matches": "Amount of Matches", "group": "Group",
"cancel": "Cancel", "group_name": "Group name",
"choose_game": "Choose Game", "groups": "Groups",
"choose_group": "Choose Group", "home": "Home",
"choose_ruleset": "Choose Ruleset", "import_canceled": "Import canceled",
"could_not_add_player": "Could not add player {playerName}", "import_data": "Import data",
"create_group": "Create Group", "info": "Info",
"create_match": "Create match", "invalid_schema": "Invalid Schema",
"create_new_group": "Create new group", "least_points": "Least Points",
"create_new_match": "Create new match", "match_in_progress": "Match in progress...",
"data_successfully_deleted": "Data successfully deleted", "match_name": "Match name",
"data_successfully_exported": "Data successfully exported", "matches": "Matches",
"data_successfully_imported": "Data successfully imported", "menu": "Menu",
"days_ago": "{count} days ago", "most_points": "Most Points",
"delete": "Delete", "no_data_available": "No data available",
"delete_all_data": "Delete all data?", "no_groups_created_yet": "No groups created yet",
"error_creating_group": "Error while creating group, please try again", "no_matches_created_yet": "No matches created yet",
"error_reading_file": "Error reading file", "no_players_created_yet": "No players created yet",
"export_canceled": "Export canceled", "no_players_found_with_that_name": "No players found with that name",
"export_data": "Export data", "no_players_selected": "No players selected",
"format_exception": "Format Exception (see console)", "no_recent_matches_available": "No recent matches available",
"game": "Game", "no_second_match_available": "No second match available",
"game_name": "Game Name", "no_statistics_available": "No statistics available",
"game_tracker": "Game Tracker", "none": "None",
"group": "Group", "none_group": "None",
"group_name": "Group name", "not_available": "Not available",
"groups": "Groups", "player_name": "Player name",
"home": "Home", "players": "Players",
"import_canceled": "Import canceled", "players_count": "{count} Players",
"import_data": "Import data", "quick_create": "Quick Create",
"info": "Info", "recent_matches": "Recent Matches",
"invalid_schema": "Invalid Schema", "ruleset": "Ruleset",
"least_points": "Least Points", "ruleset_least_points": "Inverse scoring: the player with the fewest points wins.",
"match_in_progress": "Match in progress...", "ruleset_most_points": "Traditional ruleset: the player with the most points wins.",
"match_name": "Match name", "ruleset_single_loser": "Exactly one loser is determined; last place receives the penalty or consequence.",
"matches": "Matches", "ruleset_single_winner": "Exactly one winner is chosen; ties are resolved by a predefined tiebreaker.",
"menu": "Menu", "search_for_groups": "Search for groups",
"most_points": "Most Points", "search_for_players": "Search for players",
"no_data_available": "No data available", "select_winner": "Select Winner:",
"no_groups_created_yet": "No groups created yet", "selected_players": "Selected players",
"no_matches_created_yet": "No matches created yet", "settings": "Settings",
"no_players_created_yet": "No players created yet", "single_loser": "Single Loser",
"no_players_found_with_that_name": "No players found with that name", "single_winner": "Single Winner",
"no_players_selected": "No players selected", "statistics": "Statistics",
"no_recent_matches_available": "No recent matches available", "stats": "Stats",
"no_second_match_available": "No second match available", "successfully_added_player": "Successfully added player {playerName}",
"no_statistics_available": "No statistics available", "there_is_no_group_matching_your_search": "There is no group matching your search",
"none": "None", "this_cannot_be_undone": "This can't be undone",
"none_group": "None", "today_at": "Today at",
"not_available": "Not available", "undo": "Undo",
"player_name": "Player name", "unknown_exception": "Unknown Exception (see console)",
"players": "Players", "winner": "Winner",
"players_count": "{count} Players", "winrate": "Winrate",
"quick_create": "Quick Create", "wins": "Wins",
"recent_matches": "Recent Matches", "yesterday_at": "Yesterday at"
"ruleset": "Ruleset",
"ruleset_least_points": "Inverse scoring: the player with the fewest points wins.",
"ruleset_most_points": "Traditional ruleset: the player with the most points wins.",
"ruleset_single_loser": "Exactly one loser is determined; last place receives the penalty or consequence.",
"ruleset_single_winner": "Exactly one winner is chosen; ties are resolved by a predefined tiebreaker.",
"search_for_groups": "Search for groups",
"search_for_players": "Search for players",
"select_winner": "Select Winner:",
"selected_players": "Selected players: {count}",
"settings": "Settings",
"single_loser": "Single Loser",
"single_winner": "Single Winner",
"statistics": "Statistics",
"stats": "Stats",
"successfully_added_player": "Successfully added player {playerName}",
"there_is_no_group_matching_your_search": "There is no group matching your search",
"this_cannot_be_undone": "This can't be undone",
"today_at": "Today at {time}",
"undo": "Undo",
"unknown_exception": "Unknown Exception (see console)",
"winner": "Winner",
"winrate": "Winrate",
"wins": "Wins",
"yesterday_at": "Yesterday at {time}"
} }

View File

@@ -101,7 +101,7 @@ abstract class AppLocalizations {
/// Label for all players list /// Label for all players list
/// ///
/// In en, this message translates to: /// In en, this message translates to:
/// **'All players:'** /// **'All players'**
String get all_players; String get all_players;
/// Message when all players are added to selection /// Message when all players are added to selection
@@ -116,6 +116,12 @@ abstract class AppLocalizations {
/// **'Amount of Matches'** /// **'Amount of Matches'**
String get amount_of_matches; String get amount_of_matches;
/// The name of the App
///
/// In en, this message translates to:
/// **'Game Tracker'**
String get app_name;
/// Cancel button text /// Cancel button text
/// ///
/// In en, this message translates to: /// In en, this message translates to:
@@ -143,8 +149,8 @@ abstract class AppLocalizations {
/// Error message when adding a player fails /// Error message when adding a player fails
/// ///
/// In en, this message translates to: /// In en, this message translates to:
/// **'Could not add player {playerName}'** /// **'Could not add player'**
String could_not_add_player(String playerName); String could_not_add_player(Object playerName);
/// Button text to create a group /// Button text to create a group
/// ///
@@ -248,12 +254,6 @@ abstract class AppLocalizations {
/// **'Game Name'** /// **'Game Name'**
String get game_name; String get game_name;
/// App Name
///
/// In en, this message translates to:
/// **'Game Tracker'**
String get game_tracker;
/// Group label /// Group label
/// ///
/// In en, this message translates to: /// In en, this message translates to:
@@ -491,8 +491,8 @@ abstract class AppLocalizations {
/// Shows the number of selected players /// Shows the number of selected players
/// ///
/// In en, this message translates to: /// In en, this message translates to:
/// **'Selected players: {count}'** /// **'Selected players'**
String selected_players(int count); String get selected_players;
/// Settings label /// Settings label
/// ///
@@ -545,8 +545,8 @@ abstract class AppLocalizations {
/// Date format for today /// Date format for today
/// ///
/// In en, this message translates to: /// In en, this message translates to:
/// **'Today at {time}'** /// **'Today at'**
String today_at(String time); String get today_at;
/// Undo button text /// Undo button text
/// ///
@@ -581,8 +581,8 @@ abstract class AppLocalizations {
/// Date format for yesterday /// Date format for yesterday
/// ///
/// In en, this message translates to: /// In en, this message translates to:
/// **'Yesterday at {time}'** /// **'Yesterday at'**
String yesterday_at(String time); String get yesterday_at;
} }
class _AppLocalizationsDelegate class _AppLocalizationsDelegate

View File

@@ -9,7 +9,7 @@ class AppLocalizationsDe extends AppLocalizations {
AppLocalizationsDe([String locale = 'de']) : super(locale); AppLocalizationsDe([String locale = 'de']) : super(locale);
@override @override
String get all_players => 'Alle Spieler:innen:'; String get all_players => 'Alle Spieler:innen';
@override @override
String get all_players_selected => 'Alle Spieler:innen ausgewählt'; String get all_players_selected => 'Alle Spieler:innen ausgewählt';
@@ -17,6 +17,9 @@ class AppLocalizationsDe extends AppLocalizations {
@override @override
String get amount_of_matches => 'Anzahl der Spiele'; String get amount_of_matches => 'Anzahl der Spiele';
@override
String get app_name => 'Game Tracker';
@override @override
String get cancel => 'Abbrechen'; String get cancel => 'Abbrechen';
@@ -30,7 +33,7 @@ class AppLocalizationsDe extends AppLocalizations {
String get choose_ruleset => 'Regelwerk wählen'; String get choose_ruleset => 'Regelwerk wählen';
@override @override
String could_not_add_player(String playerName) { String could_not_add_player(Object playerName) {
return 'Spieler:in $playerName konnte nicht hinzugefügt werden'; return 'Spieler:in $playerName konnte nicht hinzugefügt werden';
} }
@@ -88,9 +91,6 @@ class AppLocalizationsDe extends AppLocalizations {
@override @override
String get game_name => 'Spielvorlagenname'; String get game_name => 'Spielvorlagenname';
@override
String get game_tracker => 'Game Tracker';
@override @override
String get group => 'Gruppe'; String get group => 'Gruppe';
@@ -150,7 +150,7 @@ class AppLocalizationsDe extends AppLocalizations {
'Keine Spieler:in mit diesem Namen gefunden'; 'Keine Spieler:in mit diesem Namen gefunden';
@override @override
String get no_players_selected => 'Keine Spieler:in ausgewählt'; String get no_players_selected => 'Keine Spieler:innen ausgewählt';
@override @override
String get no_recent_matches_available => 'Keine letzten Spiele verfügbar'; String get no_recent_matches_available => 'Keine letzten Spiele verfügbar';
@@ -216,14 +216,7 @@ class AppLocalizationsDe extends AppLocalizations {
String get select_winner => 'Gewinner:in wählen:'; String get select_winner => 'Gewinner:in wählen:';
@override @override
String selected_players(int count) { String get selected_players => 'Ausgewählte Spieler:innen';
final intl.NumberFormat countNumberFormat = intl.NumberFormat.compact(
locale: localeName,
);
final String countString = countNumberFormat.format(count);
return 'Ausgewählte Spieler:innen: $countString';
}
@override @override
String get settings => 'Einstellungen'; String get settings => 'Einstellungen';
@@ -254,9 +247,7 @@ class AppLocalizationsDe extends AppLocalizations {
'Dies kann nicht rückgängig gemacht werden'; 'Dies kann nicht rückgängig gemacht werden';
@override @override
String today_at(String time) { String get today_at => 'Heute um';
return 'Heute um $time';
}
@override @override
String get undo => 'Rückgängig'; String get undo => 'Rückgängig';
@@ -265,7 +256,7 @@ class AppLocalizationsDe extends AppLocalizations {
String get unknown_exception => 'Unbekannter Fehler (siehe Konsole)'; String get unknown_exception => 'Unbekannter Fehler (siehe Konsole)';
@override @override
String get winner => 'Gewinner*in'; String get winner => 'Gewinner:in';
@override @override
String get winrate => 'Siegquote'; String get winrate => 'Siegquote';
@@ -274,7 +265,5 @@ class AppLocalizationsDe extends AppLocalizations {
String get wins => 'Siege'; String get wins => 'Siege';
@override @override
String yesterday_at(String time) { String get yesterday_at => 'Gestern um';
return 'Gestern um $time';
}
} }

View File

@@ -9,7 +9,7 @@ class AppLocalizationsEn extends AppLocalizations {
AppLocalizationsEn([String locale = 'en']) : super(locale); AppLocalizationsEn([String locale = 'en']) : super(locale);
@override @override
String get all_players => 'All players:'; String get all_players => 'All players';
@override @override
String get all_players_selected => 'All players selected'; String get all_players_selected => 'All players selected';
@@ -17,6 +17,9 @@ class AppLocalizationsEn extends AppLocalizations {
@override @override
String get amount_of_matches => 'Amount of Matches'; String get amount_of_matches => 'Amount of Matches';
@override
String get app_name => 'Game Tracker';
@override @override
String get cancel => 'Cancel'; String get cancel => 'Cancel';
@@ -30,8 +33,8 @@ class AppLocalizationsEn extends AppLocalizations {
String get choose_ruleset => 'Choose Ruleset'; String get choose_ruleset => 'Choose Ruleset';
@override @override
String could_not_add_player(String playerName) { String could_not_add_player(Object playerName) {
return 'Could not add player $playerName'; return 'Could not add player';
} }
@override @override
@@ -88,9 +91,6 @@ class AppLocalizationsEn extends AppLocalizations {
@override @override
String get game_name => 'Game Name'; String get game_name => 'Game Name';
@override
String get game_tracker => 'Game Tracker';
@override @override
String get group => 'Group'; String get group => 'Group';
@@ -216,14 +216,7 @@ class AppLocalizationsEn extends AppLocalizations {
String get select_winner => 'Select Winner:'; String get select_winner => 'Select Winner:';
@override @override
String selected_players(int count) { String get selected_players => 'Selected players';
final intl.NumberFormat countNumberFormat = intl.NumberFormat.compact(
locale: localeName,
);
final String countString = countNumberFormat.format(count);
return 'Selected players: $countString';
}
@override @override
String get settings => 'Settings'; String get settings => 'Settings';
@@ -253,9 +246,7 @@ class AppLocalizationsEn extends AppLocalizations {
String get this_cannot_be_undone => 'This can\'t be undone'; String get this_cannot_be_undone => 'This can\'t be undone';
@override @override
String today_at(String time) { String get today_at => 'Today at';
return 'Today at $time';
}
@override @override
String get undo => 'Undo'; String get undo => 'Undo';
@@ -273,7 +264,5 @@ class AppLocalizationsEn extends AppLocalizations {
String get wins => 'Wins'; String get wins => 'Wins';
@override @override
String yesterday_at(String time) { String get yesterday_at => 'Yesterday at';
return 'Yesterday at $time';
}
} }

View File

@@ -34,21 +34,17 @@ class GameTracker extends StatelessWidget {
); );
}, },
debugShowCheckedModeBanner: false, debugShowCheckedModeBanner: false,
onGenerateTitle: (context) => AppLocalizations.of(context).game_tracker, onGenerateTitle: (context) => AppLocalizations.of(context).app_name,
darkTheme: ThemeData.dark(),
themeMode: ThemeMode.dark, // forces dark mode themeMode: ThemeMode.dark, // forces dark mode
theme: ThemeData( theme: ThemeData(
primaryColor: CustomTheme.primaryColor, primaryColor: CustomTheme.primaryColor,
scaffoldBackgroundColor: CustomTheme.backgroundColor, scaffoldBackgroundColor: CustomTheme.backgroundColor,
appBarTheme: CustomTheme.appBarTheme, appBarTheme: CustomTheme.appBarTheme,
colorScheme: ColorScheme.fromSeed( colorScheme: ColorScheme.fromSeed(
seedColor: CustomTheme.primaryColor, seedColor: CustomTheme.primaryColor,
brightness: Brightness.dark, brightness: Brightness.dark,
).copyWith(surface: CustomTheme.backgroundColor), ).copyWith(surface: CustomTheme.backgroundColor),
), ),
home: const CustomNavigationBar(), home: const CustomNavigationBar(),
); );
} }

View File

@@ -155,7 +155,7 @@ class _CreateMatchViewState extends State<CreateMatchView> {
(r) => r.$1 == selectedRuleset, (r) => r.$1 == selectedRuleset,
); );
} else { } else {
hintText = AppLocalizations.of(context).match_name; hintText = loc.match_name;
selectedRuleset = null; selectedRuleset = null;
} }
}); });

View File

@@ -58,7 +58,7 @@ class _SettingsViewState extends State<SettingsView> {
), ),
SettingsListTile( SettingsListTile(
title: loc.export_data, title: loc.export_data,
icon: Icons.upload_outlined, icon: Icons.upload_rounded,
suffixWidget: const Icon(Icons.arrow_forward_ios, size: 16), suffixWidget: const Icon(Icons.arrow_forward_ios, size: 16),
onPressed: () async { onPressed: () async {
final String json = final String json =
@@ -73,7 +73,7 @@ class _SettingsViewState extends State<SettingsView> {
), ),
SettingsListTile( SettingsListTile(
title: loc.import_data, title: loc.import_data,
icon: Icons.download_outlined, icon: Icons.download_rounded,
suffixWidget: const Icon(Icons.arrow_forward_ios, size: 16), suffixWidget: const Icon(Icons.arrow_forward_ios, size: 16),
onPressed: () async { onPressed: () async {
final result = await DataTransferService.importData( final result = await DataTransferService.importData(
@@ -85,7 +85,7 @@ class _SettingsViewState extends State<SettingsView> {
), ),
SettingsListTile( SettingsListTile(
title: loc.delete_all_data, title: loc.delete_all_data,
icon: Icons.download_outlined, icon: Icons.delete_rounded,
suffixWidget: const Icon(Icons.arrow_forward_ios, size: 16), suffixWidget: const Icon(Icons.arrow_forward_ios, size: 16),
onPressed: () { onPressed: () {
showDialog<bool>( showDialog<bool>(

View File

@@ -119,9 +119,7 @@ class _PlayerSelectionState extends State<PlayerSelection> {
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
Text( Text(
AppLocalizations.of( loc.selected_players,
context,
).selected_players(selectedPlayers.length),
style: const TextStyle(fontSize: 16, fontWeight: FontWeight.bold), style: const TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
), ),
const SizedBox(height: 10), const SizedBox(height: 10),

View File

@@ -161,13 +161,9 @@ class _MatchTileState extends State<MatchTile> {
final loc = AppLocalizations.of(context); final loc = AppLocalizations.of(context);
if (difference.inDays == 0) { if (difference.inDays == 0) {
return AppLocalizations.of( return "${loc.today_at} ${DateFormat('HH:mm').format(dateTime)}";
context,
).today_at(DateFormat('HH:mm').format(dateTime));
} else if (difference.inDays == 1) { } else if (difference.inDays == 1) {
return AppLocalizations.of( return "${loc.yesterday_at} ${DateFormat('HH:mm').format(dateTime)}";
context,
).yesterday_at(DateFormat('HH:mm').format(dateTime));
} else if (difference.inDays < 7) { } else if (difference.inDays < 7) {
return loc.days_ago(difference.inDays); return loc.days_ago(difference.inDays);
} else { } else {