Small translation improvements

This commit is contained in:
2025-07-18 22:51:59 +02:00
parent e8797d7b35
commit 25552d7037
4 changed files with 35 additions and 33 deletions

View File

@@ -20,7 +20,7 @@
"about": "About", "about": "About",
"empty_text_1": "Pretty empty here...", "empty_text_1": "Pretty empty here...",
"empty_text_2": "Add a new round using the button in the top right corner.", "empty_text_2": "Create a new game using the button in the top right.",
"delete_game_title": "Delete game?", "delete_game_title": "Delete game?",
"delete_game_message": "Are you sure you want to delete the game \"{gameTitle}\"? This action cannot be undone.", "delete_game_message": "Are you sure you want to delete the game \"{gameTitle}\"? This action cannot be undone.",
"@delete_game_message": { "@delete_game_message": {
@@ -46,19 +46,19 @@
"select_mode": "Select a mode", "select_mode": "Select a mode",
"add_player": "Add Player", "add_player": "Add Player",
"create_game": "Create Game", "create_game": "Create Game",
"max_players_title": "Maximum reached", "max_players_title": "Player Limit Reached",
"max_players_message": "A maximum of 5 players can be added.", "max_players_message": "You can add a maximum of 5 players.",
"no_gameTitle_title": "No Title", "no_gameTitle_title": "Missing Game Title",
"no_gameTitle_message": "You must enter a title for the game.", "no_gameTitle_message": "Please enter a title for your game.",
"no_mode_title": "No Mode", "no_mode_title": "Game Mode Required",
"no_mode_message": "You must select a game mode.", "no_mode_message": "Please select a game mode to continue",
"min_players_title": "Too few players", "min_players_title": "Too Few Players",
"min_players_message": "At least 2 players must be added.", "min_players_message": "At least 2 players are required to start the game.",
"no_name_title": "No Name", "no_name_title": "Missing Player Names",
"no_name_message": "Each player must have a name.", "no_name_message": "Each player must have a name.",
"select_game_mode": "Select game mode", "select_game_mode": "Select game mode",
"point_limit_description": "The game ends when a player reaches more than {pointLimit} points.", "point_limit_description": "The game ends when a player scores more than {pointLimit} points.",
"@point_limit_description": { "@point_limit_description": {
"placeholders": { "placeholders": {
"pointLimit": { "pointLimit": {
@@ -66,10 +66,10 @@
} }
} }
}, },
"unlimited_description": "There is no limit. The game continues until you decide to stop.", "unlimited_description": "The game continues until you decide to stop playing",
"results": "Results", "results": "Results",
"who_said_cabo": "Who said CABO?", "who_said_cabo": "Who called Cabo?",
"kamikaze": "Kamikaze", "kamikaze": "Kamikaze",
"done": "Done", "done": "Done",
"next_round": "Next Round", "next_round": "Next Round",
@@ -107,9 +107,9 @@
"settings": "Settings", "settings": "Settings",
"cabo_penalty": "Cabo Penalty", "cabo_penalty": "Cabo Penalty",
"cabo_penalty_subtitle": "... for falsely calling Cabo.", "cabo_penalty_subtitle": "A point penalty for incorrectly calling Cabo.",
"point_limit": "Point Limit", "point_limit": "Point Limit",
"point_limit_subtitle": "... the game ends here.", "point_limit_subtitle": "The required score to win the game.",
"reset_to_default": "Reset to Default", "reset_to_default": "Reset to Default",
"game_data": "Game Data", "game_data": "Game Data",
"import_data": "Import Data", "import_data": "Import Data",

View File

@@ -61,7 +61,7 @@ class AppLocalizationsEn extends AppLocalizations {
@override @override
String get empty_text_2 => String get empty_text_2 =>
'Add a new round using the button in the top right corner.'; 'Create a new game using the button in the top right.';
@override @override
String get delete_game_title => 'Delete game?'; String get delete_game_title => 'Delete game?';
@@ -119,31 +119,32 @@ class AppLocalizationsEn extends AppLocalizations {
String get create_game => 'Create Game'; String get create_game => 'Create Game';
@override @override
String get max_players_title => 'Maximum reached'; String get max_players_title => 'Player Limit Reached';
@override @override
String get max_players_message => 'A maximum of 5 players can be added.'; String get max_players_message => 'You can add a maximum of 5 players.';
@override @override
String get no_gameTitle_title => 'No Title'; String get no_gameTitle_title => 'Missing Game Title';
@override @override
String get no_gameTitle_message => 'You must enter a title for the game.'; String get no_gameTitle_message => 'Please enter a title for your game.';
@override @override
String get no_mode_title => 'No Mode'; String get no_mode_title => 'Game Mode Required';
@override @override
String get no_mode_message => 'You must select a game mode.'; String get no_mode_message => 'Please select a game mode to continue';
@override @override
String get min_players_title => 'Too few players'; String get min_players_title => 'Too Few Players';
@override @override
String get min_players_message => 'At least 2 players must be added.'; String get min_players_message =>
'At least 2 players are required to start the game.';
@override @override
String get no_name_title => 'No Name'; String get no_name_title => 'Missing Player Names';
@override @override
String get no_name_message => 'Each player must have a name.'; String get no_name_message => 'Each player must have a name.';
@@ -153,18 +154,18 @@ class AppLocalizationsEn extends AppLocalizations {
@override @override
String point_limit_description(int pointLimit) { String point_limit_description(int pointLimit) {
return 'The game ends when a player reaches more than $pointLimit points.'; return 'The game ends when a player scores more than $pointLimit points.';
} }
@override @override
String get unlimited_description => String get unlimited_description =>
'There is no limit. The game continues until you decide to stop.'; 'The game continues until you decide to stop playing';
@override @override
String get results => 'Results'; String get results => 'Results';
@override @override
String get who_said_cabo => 'Who said CABO?'; String get who_said_cabo => 'Who called Cabo?';
@override @override
String get kamikaze => 'Kamikaze'; String get kamikaze => 'Kamikaze';
@@ -232,13 +233,14 @@ class AppLocalizationsEn extends AppLocalizations {
String get cabo_penalty => 'Cabo Penalty'; String get cabo_penalty => 'Cabo Penalty';
@override @override
String get cabo_penalty_subtitle => '... for falsely calling Cabo.'; String get cabo_penalty_subtitle =>
'A point penalty for incorrectly calling Cabo.';
@override @override
String get point_limit => 'Point Limit'; String get point_limit => 'Point Limit';
@override @override
String get point_limit_subtitle => '... the game ends here.'; String get point_limit_subtitle => 'The required score to win the game.';
@override @override
String get reset_to_default => 'Reset to Default'; String get reset_to_default => 'Reset to Default';

View File

@@ -72,7 +72,7 @@ class _MainMenuViewState extends State<MainMenuView> {
}); });
}, },
icon: const Icon(CupertinoIcons.settings, size: 30)), icon: const Icon(CupertinoIcons.settings, size: 30)),
middle: const Text('Cabo Counter'), middle: Text(AppLocalizations.of(context).app_name),
trailing: IconButton( trailing: IconButton(
onPressed: () => Navigator.push( onPressed: () => Navigator.push(
context, context,

View File

@@ -2,7 +2,7 @@ name: cabo_counter
description: "Mobile app for the card game Cabo" description: "Mobile app for the card game Cabo"
publish_to: 'none' publish_to: 'none'
version: 0.4.7+509 version: 0.4.7+512
environment: environment:
sdk: ^3.5.4 sdk: ^3.5.4