From 4bd2f972df26cdd036f33a4064900e24a8b3b247 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Mon, 25 May 2026 13:17:02 +0200 Subject: [PATCH] fix: localizations --- lib/l10n/arb/app_de.arb | 36 ++++-- lib/l10n/arb/app_en.arb | 41 +++---- lib/l10n/generated/app_localizations.dart | 106 +++++++----------- lib/l10n/generated/app_localizations_de.dart | 66 +++++------ lib/l10n/generated/app_localizations_en.dart | 60 ++++------ .../create_statistic_view.dart | 50 ++++----- 6 files changed, 155 insertions(+), 204 deletions(-) diff --git a/lib/l10n/arb/app_de.arb b/lib/l10n/arb/app_de.arb index aef31dc..4eb5fd1 100644 --- a/lib/l10n/arb/app_de.arb +++ b/lib/l10n/arb/app_de.arb @@ -2,14 +2,18 @@ "@@locale": "de", "all_players": "Alle Spieler:innen", "all_players_selected": "Alle Spieler:innen ausgewählt", + "all_time": "Gesamter Zeitraum", "amount_of_matches": "Anzahl der Spiele", "app_name": "Tallee", + "average_score": "Durchschnittliche Punktzahl", "best_player": "Beste:r Spieler:in", + "best_score": "Beste Punktzahl", "cancel": "Abbrechen", "choose_color": "Farbe wählen", "choose_game": "Spielvorlage wählen", "choose_group": "Gruppe wählen", "choose_ruleset": "Regelwerk wählen", + "classifier": "Klassifikator", "color": "Farbe", "color_blue": "Blau", "color_green": "Grün", @@ -19,7 +23,6 @@ "color_red": "Rot", "color_teal": "Türkis", "color_yellow": "Gelb", - "displayed_entries": "Angezeigte Einträge", "confirm": "Bestätigen", "could_not_add_player": "Spieler:in {playerName} konnte nicht hinzugefügt werden", "@could_not_add_player": { @@ -66,6 +69,7 @@ "delete_match": "Spiel löschen", "delete_player": "Spieler:in löschen", "description": "Beschreibung", + "displayed_entries": "Angezeigte Einträge", "drag_to_set_placement": "Ziehen um Platzierung zu setzen", "edit_game": "Spielvorlage bearbeiten", "edit_group": "Gruppe bearbeiten", @@ -82,9 +86,11 @@ "exit_view": "Ansicht verlassen", "export_canceled": "Export abgebrochen", "export_data": "Daten exportieren", + "filter": "Filter", "format_exception": "Formatfehler (siehe Konsole)", "game": "Spielvorlage", "game_name": "Spielvorlagenname", + "games": "Spielvorlagen", "group": "Gruppe", "group_name": "Gruppenname", "group_profile": "Gruppenprofil", @@ -96,6 +102,11 @@ "import_data": "Daten importieren", "info": "Info", "invalid_schema": "Ungültiges Schema", + "last_180_days": "Letzte 180 Tage", + "last_30_days": "Letzte 30 Tage", + "last_7_days": "Letzte 7 Tage", + "last_90_days": "Letzte 90 Tage", + "last_year": "Letztes Jahr", "least_points": "Niedrigste Punkte", "legal": "Rechtliches", "legal_notice": "Impressum", @@ -128,6 +139,7 @@ "no_results_entered_yet": "Noch keine Ergebnisse eingetragen", "no_second_match_available": "Kein zweites Spiel verfügbar", "no_statistics_available": "Keine Statistiken verfügbar", + "no_statistics_created_yet": "Noch keine Statistiken erstellt", "none": "Kein", "none_group": "Keine", "not_available": "Nicht verfügbar", @@ -152,6 +164,7 @@ "ruleset_single_loser": "Genau ein:e Verlierer:in wird bestimmt; der letzte Platz erhält die Strafe oder Konsequenz.", "ruleset_single_winner": "Genau ein:e Gewinner:in wird gewählt; Unentschieden werden durch einen vordefinierten Tie-Breaker aufgelöst.", "save_changes": "Änderungen speichern", + "scope": "Bereich", "search_for_groups": "Nach Gruppen suchen", "search_for_players": "Nach Spieler:innen suchen", "select_a_classifier": "Klassifikator auswählen", @@ -160,17 +173,18 @@ "select_a_scope": "Bereich auswählen", "select_a_timeframe": "Zeitraum auswählen", "select_loser": "Verlierer:in wählen", + "select_the_filtered_games": "Wähle Spiele, nach denen gefiltert werden soll.", + "select_the_filtered_groups": "Wähle Gruppen, nach denen gefiltert werden soll.", + "select_the_filtered_timeframe": "Wähle einen Zeitraum, nach dem gefiltert werden soll.", "select_winner": "Gewinner:in wählen", "select_winners": "Gewinner:innen wählen", + "selected_games": "Ausgewählte Spielvorlagen", + "selected_groups": "Ausgewählte Gruppen", "selected_players": "Ausgewählte Spieler:innen", "set_name": "Name setzen", "settings": "Einstellungen", "single_loser": "Ein:e Verlierer:in", "single_winner": "Ein:e Gewinner:in", - "statistic_scope_all_players": "Alle Spieler:innen", - "statistic_scope_selected_games": "Ausgewählte Spielvorlagen", - "statistic_scope_selected_groups": "Ausgewählte Gruppen", - "statistic_scope_timeframe": "Zeitraum", "statistic_type_average_score": "Durchschnittliche Punktzahl", "statistic_type_best_score": "Beste Punktzahl", "statistic_type_total_losses": "Niederlagen insgesamt", @@ -186,18 +200,18 @@ "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.", "tie": "Unentschieden", - "timeframe_all_time": "Gesamter Zeitraum", - "timeframe_last_180_days": "Letzte 180 Tage", - "timeframe_last_30_days": "Letzte 30 Tage", - "timeframe_last_7_days": "Letzte 7 Tage", - "timeframe_last_90_days": "Letzte 90 Tage", - "timeframe_last_year": "Letztes Jahr", + "timeframe": "Zeitraum", "today_at": "Heute um", + "total_losses": "Niederlagen insgesamt", + "total_matches": "Spiele insgesamt", + "total_score": "Punktzahl insgesamt", + "total_wins": "Siege insgesamt", "undo": "Rückgängig", "unknown_exception": "Unbekannter Fehler (siehe Konsole)", "winner": "Gewinner:in", "winners": "Gewinner:innen", "winrate": "Siegquote", "wins": "Siege", + "worst_score": "Schlechteste Punktzahl", "yesterday_at": "Gestern um" } \ No newline at end of file diff --git a/lib/l10n/arb/app_en.arb b/lib/l10n/arb/app_en.arb index 902caad..988433b 100644 --- a/lib/l10n/arb/app_en.arb +++ b/lib/l10n/arb/app_en.arb @@ -35,14 +35,12 @@ "create_new_group": "Create new group", "create_new_match": "Create new match", "create_statistic": "Create statistic", - "which_key_metric": "Select which key metric you want to display", "classifier": "Classifier", - "select_the_filtered_games": "Select the filtered games", + "select_the_filtered_timeframe": "Select the timeframe you want to filter by.", + "select_the_filtered_games": "Select the games you want to filter by.", "games": "Games", - "select_the_filtered_groups": "Select the filtered groups", - "select_main_filter": "Select the main filter for your statistic. This will determine which data is used to calculate the selected classifier.", + "select_the_filtered_groups": "Select the groups you want to filter by.", "scope": "Scope", - "select_a_timeframe_for_which_data_will_be_filtered": "Select a timeframe for which the data will be filtered. Only matches that ended within the selected timeframe will be included in the statistic.", "timeframe": "Timeframe", "created_on": "Created on", "data": "Data", @@ -169,18 +167,15 @@ "single_winner": "Single Winner", "statistics": "Statistics", "stats": "Stats", - "statistic_scope_all_players": "All players", - "statistic_scope_selected_games": "Selected games", - "statistic_scope_selected_groups": "Selected groups", - "statistic_scope_timeframe": "Timeframe", - "statistic_type_average_score": "Average score", - "statistic_type_best_score": "Best score", - "statistic_type_total_losses": "Total losses", - "statistic_type_total_matches": "Total matches", - "statistic_type_total_score": "Total score", - "statistic_type_total_wins": "Total wins", - "statistic_type_winrate": "Winrate", - "statistic_type_worst_score": "Worst score", + "selected_games": "Selected games", + "selected_groups": "Selected groups", + "average_score": "Average score", + "best_score": "Best score", + "total_losses": "Total losses", + "total_matches": "Total matches", + "total_score": "Total score", + "total_wins": "Total wins", + "worst_score": "Worst score", "successfully_added_player": "Successfully added player {playerName}", "@successfully_added_player": { "description": "Success message when adding a player", @@ -195,12 +190,12 @@ "there_is_no_group_matching_your_search": "There is no group matching your search", "this_cannot_be_undone": "This can't be undone.", "tie": "Tie", - "timeframe_all_time": "All time", - "timeframe_last_180_days": "Last 180 days", - "timeframe_last_30_days": "Last 30 days", - "timeframe_last_7_days": "Last 7 days", - "timeframe_last_90_days": "Last 90 days", - "timeframe_last_year": "Last year", + "all_time": "All time", + "last_180_days": "Last 180 days", + "last_30_days": "Last 30 days", + "last_7_days": "Last 7 days", + "last_90_days": "Last 90 days", + "last_year": "Last year", "today_at": "Today at", "undo": "Undo", "unknown_exception": "Unknown Exception (see console)", diff --git a/lib/l10n/generated/app_localizations.dart b/lib/l10n/generated/app_localizations.dart index 37d0763..30e1b33 100644 --- a/lib/l10n/generated/app_localizations.dart +++ b/lib/l10n/generated/app_localizations.dart @@ -266,22 +266,22 @@ abstract class AppLocalizations { /// **'Create statistic'** String get create_statistic; - /// No description provided for @which_key_metric. - /// - /// In en, this message translates to: - /// **'Select which key metric you want to display'** - String get which_key_metric; - /// No description provided for @classifier. /// /// In en, this message translates to: /// **'Classifier'** String get classifier; + /// No description provided for @select_the_filtered_timeframe. + /// + /// In en, this message translates to: + /// **'Select the timeframe you want to filter by.'** + String get select_the_filtered_timeframe; + /// No description provided for @select_the_filtered_games. /// /// In en, this message translates to: - /// **'Select the filtered games'** + /// **'Select the games you want to filter by.'** String get select_the_filtered_games; /// No description provided for @games. @@ -293,27 +293,15 @@ abstract class AppLocalizations { /// No description provided for @select_the_filtered_groups. /// /// In en, this message translates to: - /// **'Select the filtered groups'** + /// **'Select the groups you want to filter by.'** String get select_the_filtered_groups; - /// No description provided for @select_main_filter. - /// - /// In en, this message translates to: - /// **'Select the main filter for your statistic. This will determine which data is used to calculate the selected classifier.'** - String get select_main_filter; - /// No description provided for @scope. /// /// In en, this message translates to: /// **'Scope'** String get scope; - /// No description provided for @select_a_timeframe_for_which_data_will_be_filtered. - /// - /// In en, this message translates to: - /// **'Select a timeframe for which the data will be filtered. Only matches that ended within the selected timeframe will be included in the statistic.'** - String get select_a_timeframe_for_which_data_will_be_filtered; - /// No description provided for @timeframe. /// /// In en, this message translates to: @@ -1028,77 +1016,59 @@ abstract class AppLocalizations { /// **'Stats'** String get stats; - /// No description provided for @statistic_scope_all_players. - /// - /// In en, this message translates to: - /// **'All players'** - String get statistic_scope_all_players; - - /// No description provided for @statistic_scope_selected_games. + /// No description provided for @selected_games. /// /// In en, this message translates to: /// **'Selected games'** - String get statistic_scope_selected_games; + String get selected_games; - /// No description provided for @statistic_scope_selected_groups. + /// No description provided for @selected_groups. /// /// In en, this message translates to: /// **'Selected groups'** - String get statistic_scope_selected_groups; + String get selected_groups; - /// No description provided for @statistic_scope_timeframe. - /// - /// In en, this message translates to: - /// **'Timeframe'** - String get statistic_scope_timeframe; - - /// No description provided for @statistic_type_average_score. + /// No description provided for @average_score. /// /// In en, this message translates to: /// **'Average score'** - String get statistic_type_average_score; + String get average_score; - /// No description provided for @statistic_type_best_score. + /// No description provided for @best_score. /// /// In en, this message translates to: /// **'Best score'** - String get statistic_type_best_score; + String get best_score; - /// No description provided for @statistic_type_total_losses. + /// No description provided for @total_losses. /// /// In en, this message translates to: /// **'Total losses'** - String get statistic_type_total_losses; + String get total_losses; - /// No description provided for @statistic_type_total_matches. + /// No description provided for @total_matches. /// /// In en, this message translates to: /// **'Total matches'** - String get statistic_type_total_matches; + String get total_matches; - /// No description provided for @statistic_type_total_score. + /// No description provided for @total_score. /// /// In en, this message translates to: /// **'Total score'** - String get statistic_type_total_score; + String get total_score; - /// No description provided for @statistic_type_total_wins. + /// No description provided for @total_wins. /// /// In en, this message translates to: /// **'Total wins'** - String get statistic_type_total_wins; + String get total_wins; - /// No description provided for @statistic_type_winrate. - /// - /// In en, this message translates to: - /// **'Winrate'** - String get statistic_type_winrate; - - /// No description provided for @statistic_type_worst_score. + /// No description provided for @worst_score. /// /// In en, this message translates to: /// **'Worst score'** - String get statistic_type_worst_score; + String get worst_score; /// Success message when adding a player /// @@ -1130,41 +1100,41 @@ abstract class AppLocalizations { /// **'Tie'** String get tie; - /// No description provided for @timeframe_all_time. + /// No description provided for @all_time. /// /// In en, this message translates to: /// **'All time'** - String get timeframe_all_time; + String get all_time; - /// No description provided for @timeframe_last_180_days. + /// No description provided for @last_180_days. /// /// In en, this message translates to: /// **'Last 180 days'** - String get timeframe_last_180_days; + String get last_180_days; - /// No description provided for @timeframe_last_30_days. + /// No description provided for @last_30_days. /// /// In en, this message translates to: /// **'Last 30 days'** - String get timeframe_last_30_days; + String get last_30_days; - /// No description provided for @timeframe_last_7_days. + /// No description provided for @last_7_days. /// /// In en, this message translates to: /// **'Last 7 days'** - String get timeframe_last_7_days; + String get last_7_days; - /// No description provided for @timeframe_last_90_days. + /// No description provided for @last_90_days. /// /// In en, this message translates to: /// **'Last 90 days'** - String get timeframe_last_90_days; + String get last_90_days; - /// No description provided for @timeframe_last_year. + /// No description provided for @last_year. /// /// In en, this message translates to: /// **'Last year'** - String get timeframe_last_year; + String get last_year; /// No description provided for @today_at. /// diff --git a/lib/l10n/generated/app_localizations_de.dart b/lib/l10n/generated/app_localizations_de.dart index 9457988..1417bb7 100644 --- a/lib/l10n/generated/app_localizations_de.dart +++ b/lib/l10n/generated/app_localizations_de.dart @@ -95,33 +95,28 @@ class AppLocalizationsDe extends AppLocalizations { String get create_statistic => 'Statistik erstellen'; @override - String get which_key_metric => 'Select which key metric you want to display'; + String get classifier => 'Klassifikator'; @override - String get classifier => 'Classifier'; + String get select_the_filtered_timeframe => + 'Wähle einen Zeitraum, nach dem gefiltert werden soll.'; @override - String get select_the_filtered_games => 'Select the filtered games'; + String get select_the_filtered_games => + 'Wähle Spiele, nach denen gefiltert werden soll.'; @override - String get games => 'Games'; + String get games => 'Spielvorlagen'; @override - String get select_the_filtered_groups => 'Select the filtered groups'; + String get select_the_filtered_groups => + 'Wähle Gruppen, nach denen gefiltert werden soll.'; @override - String get select_main_filter => - 'Select the main filter for your statistic. This will determine which data is used to calculate the selected classifier.'; + String get scope => 'Bereich'; @override - String get scope => 'Scope'; - - @override - String get select_a_timeframe_for_which_data_will_be_filtered => - 'Select a timeframe for which the data will be filtered. Only matches that ended within the selected timeframe will be included in the statistic.'; - - @override - String get timeframe => 'Timeframe'; + String get timeframe => 'Zeitraum'; @override String get created_on => 'Erstellt am'; @@ -370,7 +365,7 @@ class AppLocalizationsDe extends AppLocalizations { String get no_statistics_available => 'Keine Statistiken verfügbar'; @override - String get no_statistics_created_yet => 'No statistics created yet'; + String get no_statistics_created_yet => 'Noch keine Statistiken erstellt'; @override String get none => 'Kein'; @@ -498,40 +493,31 @@ class AppLocalizationsDe extends AppLocalizations { String get stats => 'Statistiken'; @override - String get statistic_scope_all_players => 'Alle Spieler:innen'; + String get selected_games => 'Ausgewählte Spielvorlagen'; @override - String get statistic_scope_selected_games => 'Ausgewählte Spielvorlagen'; + String get selected_groups => 'Ausgewählte Gruppen'; @override - String get statistic_scope_selected_groups => 'Ausgewählte Gruppen'; + String get average_score => 'Durchschnittliche Punktzahl'; @override - String get statistic_scope_timeframe => 'Zeitraum'; + String get best_score => 'Beste Punktzahl'; @override - String get statistic_type_average_score => 'Durchschnittliche Punktzahl'; + String get total_losses => 'Niederlagen insgesamt'; @override - String get statistic_type_best_score => 'Beste Punktzahl'; + String get total_matches => 'Spiele insgesamt'; @override - String get statistic_type_total_losses => 'Niederlagen insgesamt'; + String get total_score => 'Punktzahl insgesamt'; @override - String get statistic_type_total_matches => 'Spiele insgesamt'; + String get total_wins => 'Siege insgesamt'; @override - String get statistic_type_total_score => 'Punktzahl insgesamt'; - - @override - String get statistic_type_total_wins => 'Siege insgesamt'; - - @override - String get statistic_type_winrate => 'Siegquote'; - - @override - String get statistic_type_worst_score => 'Schlechteste Punktzahl'; + String get worst_score => 'Schlechteste Punktzahl'; @override String successfully_added_player(String playerName) { @@ -554,22 +540,22 @@ class AppLocalizationsDe extends AppLocalizations { String get tie => 'Unentschieden'; @override - String get timeframe_all_time => 'Gesamter Zeitraum'; + String get all_time => 'Gesamter Zeitraum'; @override - String get timeframe_last_180_days => 'Letzte 180 Tage'; + String get last_180_days => 'Letzte 180 Tage'; @override - String get timeframe_last_30_days => 'Letzte 30 Tage'; + String get last_30_days => 'Letzte 30 Tage'; @override - String get timeframe_last_7_days => 'Letzte 7 Tage'; + String get last_7_days => 'Letzte 7 Tage'; @override - String get timeframe_last_90_days => 'Letzte 90 Tage'; + String get last_90_days => 'Letzte 90 Tage'; @override - String get timeframe_last_year => 'Letztes Jahr'; + String get last_year => 'Letztes Jahr'; @override String get today_at => 'Heute um'; diff --git a/lib/l10n/generated/app_localizations_en.dart b/lib/l10n/generated/app_localizations_en.dart index 99ecca3..2275b97 100644 --- a/lib/l10n/generated/app_localizations_en.dart +++ b/lib/l10n/generated/app_localizations_en.dart @@ -94,32 +94,27 @@ class AppLocalizationsEn extends AppLocalizations { @override String get create_statistic => 'Create statistic'; - @override - String get which_key_metric => 'Select which key metric you want to display'; - @override String get classifier => 'Classifier'; @override - String get select_the_filtered_games => 'Select the filtered games'; + String get select_the_filtered_timeframe => + 'Select the timeframe you want to filter by.'; + + @override + String get select_the_filtered_games => + 'Select the games you want to filter by.'; @override String get games => 'Games'; @override - String get select_the_filtered_groups => 'Select the filtered groups'; - - @override - String get select_main_filter => - 'Select the main filter for your statistic. This will determine which data is used to calculate the selected classifier.'; + String get select_the_filtered_groups => + 'Select the groups you want to filter by.'; @override String get scope => 'Scope'; - @override - String get select_a_timeframe_for_which_data_will_be_filtered => - 'Select a timeframe for which the data will be filtered. Only matches that ended within the selected timeframe will be included in the statistic.'; - @override String get timeframe => 'Timeframe'; @@ -498,40 +493,31 @@ class AppLocalizationsEn extends AppLocalizations { String get stats => 'Stats'; @override - String get statistic_scope_all_players => 'All players'; + String get selected_games => 'Selected games'; @override - String get statistic_scope_selected_games => 'Selected games'; + String get selected_groups => 'Selected groups'; @override - String get statistic_scope_selected_groups => 'Selected groups'; + String get average_score => 'Average score'; @override - String get statistic_scope_timeframe => 'Timeframe'; + String get best_score => 'Best score'; @override - String get statistic_type_average_score => 'Average score'; + String get total_losses => 'Total losses'; @override - String get statistic_type_best_score => 'Best score'; + String get total_matches => 'Total matches'; @override - String get statistic_type_total_losses => 'Total losses'; + String get total_score => 'Total score'; @override - String get statistic_type_total_matches => 'Total matches'; + String get total_wins => 'Total wins'; @override - String get statistic_type_total_score => 'Total score'; - - @override - String get statistic_type_total_wins => 'Total wins'; - - @override - String get statistic_type_winrate => 'Winrate'; - - @override - String get statistic_type_worst_score => 'Worst score'; + String get worst_score => 'Worst score'; @override String successfully_added_player(String playerName) { @@ -553,22 +539,22 @@ class AppLocalizationsEn extends AppLocalizations { String get tie => 'Tie'; @override - String get timeframe_all_time => 'All time'; + String get all_time => 'All time'; @override - String get timeframe_last_180_days => 'Last 180 days'; + String get last_180_days => 'Last 180 days'; @override - String get timeframe_last_30_days => 'Last 30 days'; + String get last_30_days => 'Last 30 days'; @override - String get timeframe_last_7_days => 'Last 7 days'; + String get last_7_days => 'Last 7 days'; @override - String get timeframe_last_90_days => 'Last 90 days'; + String get last_90_days => 'Last 90 days'; @override - String get timeframe_last_year => 'Last year'; + String get last_year => 'Last year'; @override String get today_at => 'Today at'; diff --git a/lib/presentation/views/main_menu/statistics_view/create_statistic_view.dart b/lib/presentation/views/main_menu/statistics_view/create_statistic_view.dart index 92a01bb..a88432a 100644 --- a/lib/presentation/views/main_menu/statistics_view/create_statistic_view.dart +++ b/lib/presentation/views/main_menu/statistics_view/create_statistic_view.dart @@ -76,10 +76,10 @@ class _CreateStatisticViewState extends State { fontWeight: FontWeight.bold, ), ), - Text( - loc.select_a_classifier, + const Text( + 'description', textAlign: TextAlign.start, - style: const TextStyle( + style: TextStyle( color: CustomTheme.textColor, fontSize: 12, ), @@ -147,10 +147,10 @@ class _CreateStatisticViewState extends State { fontWeight: FontWeight.bold, ), ), - Text( - loc.select_a_scope, + const Text( + 'description', textAlign: TextAlign.start, - style: const TextStyle( + style: TextStyle( color: CustomTheme.textColor, fontSize: 12, ), @@ -405,7 +405,7 @@ class _CreateStatisticViewState extends State { ), ), Text( - loc.select_a_timeframe_for_which_data_will_be_filtered, + loc.select_the_filtered_timeframe, textAlign: TextAlign.start, style: const TextStyle( color: CustomTheme.textColor, @@ -581,17 +581,17 @@ String translateTimeframeToString(Timeframe timeframe, BuildContext context) { final loc = AppLocalizations.of(context); switch (timeframe) { case Timeframe.last7Days: - return loc.timeframe_last_7_days; + return loc.last_7_days; case Timeframe.last30Days: - return loc.timeframe_last_30_days; + return loc.last_30_days; case Timeframe.last90Days: - return loc.timeframe_last_90_days; + return loc.last_90_days; case Timeframe.last180Days: - return loc.timeframe_last_180_days; + return loc.last_180_days; case Timeframe.lastYear: - return loc.timeframe_last_year; + return loc.last_year; case Timeframe.allTime: - return loc.timeframe_all_time; + return loc.all_time; } } @@ -599,13 +599,13 @@ String translateScopeToString(StatisticScope scope, BuildContext context) { final loc = AppLocalizations.of(context); switch (scope) { case StatisticScope.allPlayers: - return loc.statistic_scope_all_players; + return loc.all_players; case StatisticScope.selectedGroups: - return loc.statistic_scope_selected_groups; + return loc.selected_groups; case StatisticScope.selectedGames: - return loc.statistic_scope_selected_games; + return loc.selected_games; case StatisticScope.timeframe: - return loc.statistic_scope_timeframe; + return loc.timeframe; } } @@ -616,20 +616,20 @@ String translateStatisticTypeToString( final loc = AppLocalizations.of(context); switch (type) { case StatisticType.totalMatches: - return loc.statistic_type_total_matches; + return loc.total_matches; case StatisticType.totalWins: - return loc.statistic_type_total_wins; + return loc.total_wins; case StatisticType.totalScore: - return loc.statistic_type_total_score; + return loc.total_score; case StatisticType.totalLosses: - return loc.statistic_type_total_losses; + return loc.total_losses; case StatisticType.averageScore: - return loc.statistic_type_average_score; + return loc.average_score; case StatisticType.bestScore: - return loc.statistic_type_best_score; + return loc.best_score; case StatisticType.worstScore: - return loc.statistic_type_worst_score; + return loc.worst_score; case StatisticType.winrate: - return loc.statistic_type_winrate; + return loc.winrate; } }