Updated localizations
This commit is contained 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"
|
||||||
}
|
}
|
||||||
@@ -9,6 +9,9 @@
|
|||||||
"@amount_of_matches": {
|
"@amount_of_matches": {
|
||||||
"description": "Label for amount of matches statistic"
|
"description": "Label for amount of matches statistic"
|
||||||
},
|
},
|
||||||
|
"@app_name": {
|
||||||
|
"description": "The name of the App"
|
||||||
|
},
|
||||||
"@cancel": {
|
"@cancel": {
|
||||||
"description": "Cancel button text"
|
"description": "Cancel button text"
|
||||||
},
|
},
|
||||||
@@ -22,13 +25,7 @@
|
|||||||
"description": "Label for choosing a ruleset"
|
"description": "Label for choosing a ruleset"
|
||||||
},
|
},
|
||||||
"@could_not_add_player": {
|
"@could_not_add_player": {
|
||||||
"description": "Error message when adding a player fails",
|
"description": "Error message when adding a player fails"
|
||||||
"placeholders": {
|
|
||||||
"playerName": {
|
|
||||||
"type": "String",
|
|
||||||
"example": "John"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"@create_group": {
|
"@create_group": {
|
||||||
"description": "Button text to create a group"
|
"description": "Button text to create a group"
|
||||||
@@ -86,9 +83,6 @@
|
|||||||
"@game_name": {
|
"@game_name": {
|
||||||
"description": "Placeholder for game name search"
|
"description": "Placeholder for game name search"
|
||||||
},
|
},
|
||||||
"@game_tracker": {
|
|
||||||
"description": "App Name"
|
|
||||||
},
|
|
||||||
"@group": {
|
"@group": {
|
||||||
"description": "Group label"
|
"description": "Group label"
|
||||||
},
|
},
|
||||||
@@ -251,13 +245,7 @@
|
|||||||
"description": "Warning message for irreversible actions"
|
"description": "Warning message for irreversible actions"
|
||||||
},
|
},
|
||||||
"@today_at": {
|
"@today_at": {
|
||||||
"description": "Date format for today",
|
"description": "Date format for today"
|
||||||
"placeholders": {
|
|
||||||
"time": {
|
|
||||||
"type": "String",
|
|
||||||
"example": "14:30"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"@undo": {
|
"@undo": {
|
||||||
"description": "Undo button text"
|
"description": "Undo button text"
|
||||||
@@ -275,22 +263,17 @@
|
|||||||
"description": "Label for wins statistic"
|
"description": "Label for wins statistic"
|
||||||
},
|
},
|
||||||
"@yesterday_at": {
|
"@yesterday_at": {
|
||||||
"description": "Date format for yesterday",
|
"description": "Date format for yesterday"
|
||||||
"placeholders": {
|
|
||||||
"time": {
|
|
||||||
"type": "String",
|
|
||||||
"example": "14:30"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"all_players": "All players:",
|
"all_players": "All players:",
|
||||||
"all_players_selected": "All players selected",
|
"all_players_selected": "All players selected",
|
||||||
"amount_of_matches": "Amount of Matches",
|
"amount_of_matches": "Amount of Matches",
|
||||||
|
"app_name": "Game Tracker",
|
||||||
"cancel": "Cancel",
|
"cancel": "Cancel",
|
||||||
"choose_game": "Choose Game",
|
"choose_game": "Choose Game",
|
||||||
"choose_group": "Choose Group",
|
"choose_group": "Choose Group",
|
||||||
"choose_ruleset": "Choose Ruleset",
|
"choose_ruleset": "Choose Ruleset",
|
||||||
"could_not_add_player": "Could not add player {playerName}",
|
"could_not_add_player": "Could not add player",
|
||||||
"create_group": "Create Group",
|
"create_group": "Create Group",
|
||||||
"create_match": "Create match",
|
"create_match": "Create match",
|
||||||
"create_new_group": "Create new group",
|
"create_new_group": "Create new group",
|
||||||
@@ -308,7 +291,6 @@
|
|||||||
"format_exception": "Format Exception (see console)",
|
"format_exception": "Format Exception (see console)",
|
||||||
"game": "Game",
|
"game": "Game",
|
||||||
"game_name": "Game Name",
|
"game_name": "Game Name",
|
||||||
"game_tracker": "Game Tracker",
|
|
||||||
"group": "Group",
|
"group": "Group",
|
||||||
"group_name": "Group name",
|
"group_name": "Group name",
|
||||||
"groups": "Groups",
|
"groups": "Groups",
|
||||||
@@ -357,11 +339,11 @@
|
|||||||
"successfully_added_player": "Successfully added player {playerName}",
|
"successfully_added_player": "Successfully added player {playerName}",
|
||||||
"there_is_no_group_matching_your_search": "There is no group matching your search",
|
"there_is_no_group_matching_your_search": "There is no group matching your search",
|
||||||
"this_cannot_be_undone": "This can't be undone",
|
"this_cannot_be_undone": "This can't be undone",
|
||||||
"today_at": "Today at {time}",
|
"today_at": "Today at",
|
||||||
"undo": "Undo",
|
"undo": "Undo",
|
||||||
"unknown_exception": "Unknown Exception (see console)",
|
"unknown_exception": "Unknown Exception (see console)",
|
||||||
"winner": "Winner",
|
"winner": "Winner",
|
||||||
"winrate": "Winrate",
|
"winrate": "Winrate",
|
||||||
"wins": "Wins",
|
"wins": "Wins",
|
||||||
"yesterday_at": "Yesterday at {time}"
|
"yesterday_at": "Yesterday at"
|
||||||
}
|
}
|
||||||
@@ -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:
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|
||||||
@@ -254,9 +254,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';
|
||||||
@@ -274,7 +272,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';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|
||||||
@@ -253,9 +253,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 +271,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';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class GameTracker extends StatelessWidget {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
debugShowCheckedModeBanner: false,
|
debugShowCheckedModeBanner: false,
|
||||||
onGenerateTitle: (context) => AppLocalizations.of(context).game_tracker,
|
onGenerateTitle: (context) => AppLocalizations.of(context).app_name,
|
||||||
themeMode: ThemeMode.dark, // forces dark mode
|
themeMode: ThemeMode.dark, // forces dark mode
|
||||||
theme: ThemeData(
|
theme: ThemeData(
|
||||||
primaryColor: CustomTheme.primaryColor,
|
primaryColor: CustomTheme.primaryColor,
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user