From cb89345a21952737ba97376d76536cdc338fca4b Mon Sep 17 00:00:00 2001 From: Federico Carrozzino Date: Sun, 29 Sep 2024 17:47:00 +0200 Subject: [PATCH] translation ita to eng --- lib/ui/pages/login_page.dart | 4 ++-- lib/ui/pages/navigation_bar_page.dart | 2 +- lib/ui/pages/quiz_page.dart | 6 +++--- lib/ui/pages/sign_up_page.dart | 14 ++++++------- lib/ui/pages/welcome_page.dart | 21 ++++++++++--------- lib/ui/widgets/custom_segmented_button.dart | 4 ++-- .../dialogs/authentication_error_dialog.dart | 2 +- .../widgets/dialogs/quiz_results_dialog.dart | 6 +++--- lib/ui/widgets/group_tile.dart | 4 ++-- lib/ui/widgets/oauth_button.dart | 2 +- lib/ui/widgets/social_info.dart | 2 +- 11 files changed, 34 insertions(+), 33 deletions(-) diff --git a/lib/ui/pages/login_page.dart b/lib/ui/pages/login_page.dart index 353056a..e1cf7d3 100644 --- a/lib/ui/pages/login_page.dart +++ b/lib/ui/pages/login_page.dart @@ -17,7 +17,7 @@ class LoginPage extends StatelessWidget { appBar: AppBar( backgroundColor: ColorPalette.black, title: const Text( - 'Accedi con Email', + 'Sign in with Email', style: PresetTextStyle.white21w500, ), centerTitle: true, @@ -69,7 +69,7 @@ class LoginPage extends StatelessWidget { ), ), child: const Text( - 'ACCEDI', + 'SIGN IN', style: PresetTextStyle.white19w400, ), ), diff --git a/lib/ui/pages/navigation_bar_page.dart b/lib/ui/pages/navigation_bar_page.dart index 81f8edf..22a29aa 100644 --- a/lib/ui/pages/navigation_bar_page.dart +++ b/lib/ui/pages/navigation_bar_page.dart @@ -58,7 +58,7 @@ class NavigationBarPage extends StatelessWidget { ), BottomNavigationBarItem( icon: Icon(Icons.person), - label: 'Profilo', + label: 'Profile', ), ], currentIndex: navigationShell.currentIndex, diff --git a/lib/ui/pages/quiz_page.dart b/lib/ui/pages/quiz_page.dart index bf76985..e54b23e 100644 --- a/lib/ui/pages/quiz_page.dart +++ b/lib/ui/pages/quiz_page.dart @@ -109,7 +109,7 @@ class QuizPage extends StatelessWidget { tapTargetSize: MaterialTapTargetSize.shrinkWrap, ), child: const Text( - 'INDIETRO', + 'BACK', style: TextStyle(color: Colors.white), ), ), @@ -133,7 +133,7 @@ class QuizPage extends StatelessWidget { tapTargetSize: MaterialTapTargetSize.shrinkWrap, ), child: const Text( - 'AVANTI', + 'NEXT', style: TextStyle(color: Colors.white), ), ), @@ -165,7 +165,7 @@ void _quizListener( builder: (_) => QuizResultsDialog( onPressed: () => context.goNamed(RouteNames.leaderboardRoute.name), content: Text( - 'Punteggio: ${state.results.score}/${state.results.maxScore}', + 'Score: ${state.results.score}/${state.results.maxScore}', ), ), ); diff --git a/lib/ui/pages/sign_up_page.dart b/lib/ui/pages/sign_up_page.dart index 3b12739..9b3f130 100644 --- a/lib/ui/pages/sign_up_page.dart +++ b/lib/ui/pages/sign_up_page.dart @@ -21,7 +21,7 @@ class SignUpPage extends StatelessWidget { appBar: AppBar( backgroundColor: ColorPalette.black, title: const Text( - 'Registrazione', + 'Sign up', style: PresetTextStyle.white21w500, ), centerTitle: true, @@ -40,7 +40,7 @@ class SignUpPage extends StatelessWidget { mainAxisSize: MainAxisSize.max, children: [ const Text( - 'Unisciti alla DevFest Bari 2024!', + 'Join us at DevFest Bari 2024!', style: PresetTextStyle.black19w500, ), const SizedBox(height: 20), @@ -51,13 +51,13 @@ class SignUpPage extends StatelessWidget { ), const SizedBox(height: 10), CustomTextField( - hint: 'Nome', + hint: 'Name', controller: nameController, keyboardType: TextInputType.name, ), const SizedBox(height: 10), CustomTextField( - hint: 'Cognome', + hint: 'Surname', controller: surnameController, keyboardType: TextInputType.name, ), @@ -98,7 +98,7 @@ class SignUpPage extends StatelessWidget { ), ), child: const Text( - 'ISCRIVITI', + 'SIGN UP', style: PresetTextStyle.white21w400, ), ), @@ -106,11 +106,11 @@ class SignUpPage extends StatelessWidget { const SizedBox(height: 20), RichText( text: TextSpan( - text: 'Hai giĆ  un account? ', + text: 'Already have an account? ', style: PresetTextStyle.black17w400, children: [ TextSpan( - text: 'Accedi', + text: 'Sign in', style: const TextStyle( color: ColorPalette.coreRed, fontWeight: FontWeight.w500, diff --git a/lib/ui/pages/welcome_page.dart b/lib/ui/pages/welcome_page.dart index 204f14d..6e14b0b 100644 --- a/lib/ui/pages/welcome_page.dart +++ b/lib/ui/pages/welcome_page.dart @@ -34,16 +34,17 @@ class WelcomePage extends StatelessWidget { method: 'email', onPressed: () => context.pushNamed(RouteNames.signUpRoute.name), ), - const SizedBox(height: 10), - OAuthButton( - method: 'google', - onPressed: () => context.pushNamed(RouteNames.loginRoute.name), - ), - const SizedBox(height: 10), - OAuthButton( - method: 'apple', - onPressed: () => context.pushNamed(RouteNames.loginRoute.name), - ), + // TODO: future implementation + // const SizedBox(height: 10), + // OAuthButton( + // method: 'google', + // onPressed: () => context.pushNamed(RouteNames.loginRoute.name), + // ), + // const SizedBox(height: 10), + // OAuthButton( + // method: 'apple', + // onPressed: () => context.pushNamed(RouteNames.loginRoute.name), + // ), ], ), ), diff --git a/lib/ui/widgets/custom_segmented_button.dart b/lib/ui/widgets/custom_segmented_button.dart index 99cc6dc..2b4ae77 100644 --- a/lib/ui/widgets/custom_segmented_button.dart +++ b/lib/ui/widgets/custom_segmented_button.dart @@ -27,7 +27,7 @@ class CustomSegmentedButton extends StatelessWidget { height: 35, child: Center( child: Text( - 'Utenti', + 'Users', style: index == 0 ? PresetTextStyle.white15w500 : PresetTextStyle.black15w400, @@ -38,7 +38,7 @@ class CustomSegmentedButton extends StatelessWidget { height: 35, child: Center( child: Text( - 'Squadre', + 'Teams', style: index == 1 ? PresetTextStyle.white15w500 : PresetTextStyle.black15w400, diff --git a/lib/ui/widgets/dialogs/authentication_error_dialog.dart b/lib/ui/widgets/dialogs/authentication_error_dialog.dart index f5fd6a8..ba08d3c 100644 --- a/lib/ui/widgets/dialogs/authentication_error_dialog.dart +++ b/lib/ui/widgets/dialogs/authentication_error_dialog.dart @@ -29,7 +29,7 @@ class AuthenticationErrorDialog extends StatelessWidget { Widget build(BuildContext context) { return AlertDialog( title: Text( - 'ERRORE', + 'ERROR', style: PresetTextStyle.black23w500.copyWith( color: ColorPalette.coreRed, ), diff --git a/lib/ui/widgets/dialogs/quiz_results_dialog.dart b/lib/ui/widgets/dialogs/quiz_results_dialog.dart index fa1baff..6ea8460 100644 --- a/lib/ui/widgets/dialogs/quiz_results_dialog.dart +++ b/lib/ui/widgets/dialogs/quiz_results_dialog.dart @@ -14,9 +14,9 @@ class QuizResultsDialog extends StatelessWidget { @override Widget build(BuildContext context) { return AlertDialog( - title: const Text('RISULTATI'), + title: const Text('SCORE'), content: SizedBox( - height: MediaQuery.of(context).size.height / 8, + height: MediaQuery.of(context).size.height / 10, width: MediaQuery.of(context).size.width - 40, child: content, ), @@ -24,7 +24,7 @@ class QuizResultsDialog extends StatelessWidget { TextButton( onPressed: onPressed, style: TextButton.styleFrom( - backgroundColor: Colors.blue, + backgroundColor: ColorPalette.black, tapTargetSize: MaterialTapTargetSize.shrinkWrap, ), child: const SizedBox( diff --git a/lib/ui/widgets/group_tile.dart b/lib/ui/widgets/group_tile.dart index 239a601..46fa038 100644 --- a/lib/ui/widgets/group_tile.dart +++ b/lib/ui/widgets/group_tile.dart @@ -37,11 +37,11 @@ class GroupTile extends StatelessWidget { const SizedBox(height: 10), RichText( text: TextSpan( - text: 'Team ${group.name}', + text: 'Team ${group.name.capitalize()}', style: PresetTextStyle.black17w700, children: [ TextSpan( - text: ': ${group.score} punti', + text: ': ${group.score} points', style: PresetTextStyle.black17w400, ), ], diff --git a/lib/ui/widgets/oauth_button.dart b/lib/ui/widgets/oauth_button.dart index f2c587d..9543109 100644 --- a/lib/ui/widgets/oauth_button.dart +++ b/lib/ui/widgets/oauth_button.dart @@ -40,7 +40,7 @@ class OAuthButton extends StatelessWidget { const SizedBox(width: 30), Expanded( child: Text( - 'Accedi con ${method.capitalize()}', + 'Sign in with ${method.capitalize()}', style: PresetTextStyle.white19w400, ), ), diff --git a/lib/ui/widgets/social_info.dart b/lib/ui/widgets/social_info.dart index 41e0abe..baeb541 100644 --- a/lib/ui/widgets/social_info.dart +++ b/lib/ui/widgets/social_info.dart @@ -10,7 +10,7 @@ class SocialInfo extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.center, children: [ Text( - 'Seguici sui social', + 'Follow us on our social media', style: PresetTextStyle.black23w500, ), SizedBox(height: 20),