Updated localizations
This commit is contained in:
@@ -73,11 +73,11 @@
|
||||
"successfully_added_player": "Spieler:in {playerName} erfolgreich hinzugefügt",
|
||||
"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",
|
||||
"today_at": "Heute um {time}",
|
||||
"today_at": "Heute um",
|
||||
"undo": "Rückgängig",
|
||||
"unknown_exception": "Unbekannter Fehler (siehe Konsole)",
|
||||
"winner": "Gewinner:in",
|
||||
"winrate": "Siegquote",
|
||||
"wins": "Siege",
|
||||
"yesterday_at": "Gestern um {time}"
|
||||
"yesterday_at": "Gestern um"
|
||||
}
|
||||
@@ -9,6 +9,9 @@
|
||||
"@amount_of_matches": {
|
||||
"description": "Label for amount of matches statistic"
|
||||
},
|
||||
"@app_name": {
|
||||
"description": "The name of the App"
|
||||
},
|
||||
"@cancel": {
|
||||
"description": "Cancel button text"
|
||||
},
|
||||
@@ -22,13 +25,7 @@
|
||||
"description": "Label for choosing a ruleset"
|
||||
},
|
||||
"@could_not_add_player": {
|
||||
"description": "Error message when adding a player fails",
|
||||
"placeholders": {
|
||||
"playerName": {
|
||||
"type": "String",
|
||||
"example": "John"
|
||||
}
|
||||
}
|
||||
"description": "Error message when adding a player fails"
|
||||
},
|
||||
"@create_group": {
|
||||
"description": "Button text to create a group"
|
||||
@@ -86,9 +83,6 @@
|
||||
"@game_name": {
|
||||
"description": "Placeholder for game name search"
|
||||
},
|
||||
"@game_tracker": {
|
||||
"description": "App Name"
|
||||
},
|
||||
"@group": {
|
||||
"description": "Group label"
|
||||
},
|
||||
@@ -251,13 +245,7 @@
|
||||
"description": "Warning message for irreversible actions"
|
||||
},
|
||||
"@today_at": {
|
||||
"description": "Date format for today",
|
||||
"placeholders": {
|
||||
"time": {
|
||||
"type": "String",
|
||||
"example": "14:30"
|
||||
}
|
||||
}
|
||||
"description": "Date format for today"
|
||||
},
|
||||
"@undo": {
|
||||
"description": "Undo button text"
|
||||
@@ -275,22 +263,17 @@
|
||||
"description": "Label for wins statistic"
|
||||
},
|
||||
"@yesterday_at": {
|
||||
"description": "Date format for yesterday",
|
||||
"placeholders": {
|
||||
"time": {
|
||||
"type": "String",
|
||||
"example": "14:30"
|
||||
}
|
||||
}
|
||||
"description": "Date format for yesterday"
|
||||
},
|
||||
"all_players": "All players:",
|
||||
"all_players_selected": "All players selected",
|
||||
"amount_of_matches": "Amount of Matches",
|
||||
"app_name": "Game Tracker",
|
||||
"cancel": "Cancel",
|
||||
"choose_game": "Choose Game",
|
||||
"choose_group": "Choose Group",
|
||||
"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_match": "Create match",
|
||||
"create_new_group": "Create new group",
|
||||
@@ -308,7 +291,6 @@
|
||||
"format_exception": "Format Exception (see console)",
|
||||
"game": "Game",
|
||||
"game_name": "Game Name",
|
||||
"game_tracker": "Game Tracker",
|
||||
"group": "Group",
|
||||
"group_name": "Group name",
|
||||
"groups": "Groups",
|
||||
@@ -357,11 +339,11 @@
|
||||
"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}",
|
||||
"today_at": "Today at",
|
||||
"undo": "Undo",
|
||||
"unknown_exception": "Unknown Exception (see console)",
|
||||
"winner": "Winner",
|
||||
"winrate": "Winrate",
|
||||
"wins": "Wins",
|
||||
"yesterday_at": "Yesterday at {time}"
|
||||
"yesterday_at": "Yesterday at"
|
||||
}
|
||||
@@ -116,6 +116,12 @@ abstract class AppLocalizations {
|
||||
/// **'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
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -143,8 +149,8 @@ abstract class AppLocalizations {
|
||||
/// Error message when adding a player fails
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Could not add player {playerName}'**
|
||||
String could_not_add_player(String playerName);
|
||||
/// **'Could not add player'**
|
||||
String could_not_add_player(Object playerName);
|
||||
|
||||
/// Button text to create a group
|
||||
///
|
||||
@@ -248,12 +254,6 @@ abstract class AppLocalizations {
|
||||
/// **'Game Name'**
|
||||
String get game_name;
|
||||
|
||||
/// App Name
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Game Tracker'**
|
||||
String get game_tracker;
|
||||
|
||||
/// Group label
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -545,8 +545,8 @@ abstract class AppLocalizations {
|
||||
/// Date format for today
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Today at {time}'**
|
||||
String today_at(String time);
|
||||
/// **'Today at'**
|
||||
String get today_at;
|
||||
|
||||
/// Undo button text
|
||||
///
|
||||
@@ -581,8 +581,8 @@ abstract class AppLocalizations {
|
||||
/// Date format for yesterday
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Yesterday at {time}'**
|
||||
String yesterday_at(String time);
|
||||
/// **'Yesterday at'**
|
||||
String get yesterday_at;
|
||||
}
|
||||
|
||||
class _AppLocalizationsDelegate
|
||||
|
||||
@@ -17,6 +17,9 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
@override
|
||||
String get amount_of_matches => 'Anzahl der Spiele';
|
||||
|
||||
@override
|
||||
String get app_name => 'Game Tracker';
|
||||
|
||||
@override
|
||||
String get cancel => 'Abbrechen';
|
||||
|
||||
@@ -30,7 +33,7 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
String get choose_ruleset => 'Regelwerk wählen';
|
||||
|
||||
@override
|
||||
String could_not_add_player(String playerName) {
|
||||
String could_not_add_player(Object playerName) {
|
||||
return 'Spieler:in $playerName konnte nicht hinzugefügt werden';
|
||||
}
|
||||
|
||||
@@ -88,9 +91,6 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
@override
|
||||
String get game_name => 'Spielvorlagenname';
|
||||
|
||||
@override
|
||||
String get game_tracker => 'Game Tracker';
|
||||
|
||||
@override
|
||||
String get group => 'Gruppe';
|
||||
|
||||
@@ -254,9 +254,7 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
'Dies kann nicht rückgängig gemacht werden';
|
||||
|
||||
@override
|
||||
String today_at(String time) {
|
||||
return 'Heute um $time';
|
||||
}
|
||||
String get today_at => 'Heute um';
|
||||
|
||||
@override
|
||||
String get undo => 'Rückgängig';
|
||||
@@ -274,7 +272,5 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
String get wins => 'Siege';
|
||||
|
||||
@override
|
||||
String yesterday_at(String time) {
|
||||
return 'Gestern um $time';
|
||||
}
|
||||
String get yesterday_at => 'Gestern um';
|
||||
}
|
||||
|
||||
@@ -17,6 +17,9 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
@override
|
||||
String get amount_of_matches => 'Amount of Matches';
|
||||
|
||||
@override
|
||||
String get app_name => 'Game Tracker';
|
||||
|
||||
@override
|
||||
String get cancel => 'Cancel';
|
||||
|
||||
@@ -30,8 +33,8 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
String get choose_ruleset => 'Choose Ruleset';
|
||||
|
||||
@override
|
||||
String could_not_add_player(String playerName) {
|
||||
return 'Could not add player $playerName';
|
||||
String could_not_add_player(Object playerName) {
|
||||
return 'Could not add player';
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -88,9 +91,6 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
@override
|
||||
String get game_name => 'Game Name';
|
||||
|
||||
@override
|
||||
String get game_tracker => 'Game Tracker';
|
||||
|
||||
@override
|
||||
String get group => 'Group';
|
||||
|
||||
@@ -253,9 +253,7 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
String get this_cannot_be_undone => 'This can\'t be undone';
|
||||
|
||||
@override
|
||||
String today_at(String time) {
|
||||
return 'Today at $time';
|
||||
}
|
||||
String get today_at => 'Today at';
|
||||
|
||||
@override
|
||||
String get undo => 'Undo';
|
||||
@@ -273,7 +271,5 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
String get wins => 'Wins';
|
||||
|
||||
@override
|
||||
String yesterday_at(String time) {
|
||||
return 'Yesterday at $time';
|
||||
}
|
||||
String get yesterday_at => 'Yesterday at';
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ class GameTracker extends StatelessWidget {
|
||||
);
|
||||
},
|
||||
debugShowCheckedModeBanner: false,
|
||||
onGenerateTitle: (context) => AppLocalizations.of(context).game_tracker,
|
||||
onGenerateTitle: (context) => AppLocalizations.of(context).app_name,
|
||||
themeMode: ThemeMode.dark, // forces dark mode
|
||||
theme: ThemeData(
|
||||
primaryColor: CustomTheme.primaryColor,
|
||||
|
||||
@@ -161,13 +161,9 @@ class _MatchTileState extends State<MatchTile> {
|
||||
final loc = AppLocalizations.of(context);
|
||||
|
||||
if (difference.inDays == 0) {
|
||||
return AppLocalizations.of(
|
||||
context,
|
||||
).today_at(DateFormat('HH:mm').format(dateTime));
|
||||
return "${loc.today_at} ${DateFormat('HH:mm').format(dateTime)}";
|
||||
} else if (difference.inDays == 1) {
|
||||
return AppLocalizations.of(
|
||||
context,
|
||||
).yesterday_at(DateFormat('HH:mm').format(dateTime));
|
||||
return "${loc.yesterday_at} ${DateFormat('HH:mm').format(dateTime)}";
|
||||
} else if (difference.inDays < 7) {
|
||||
return loc.days_ago(difference.inDays);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user