Skip to content

Commit

Permalink
translation ita to eng
Browse files Browse the repository at this point in the history
  • Loading branch information
fedecarroz committed Sep 29, 2024
1 parent 1c269fa commit cb89345
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 33 deletions.
4 changes: 2 additions & 2 deletions lib/ui/pages/login_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -69,7 +69,7 @@ class LoginPage extends StatelessWidget {
),
),
child: const Text(
'ACCEDI',
'SIGN IN',
style: PresetTextStyle.white19w400,
),
),
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/pages/navigation_bar_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class NavigationBarPage extends StatelessWidget {
),
BottomNavigationBarItem(
icon: Icon(Icons.person),
label: 'Profilo',
label: 'Profile',
),
],
currentIndex: navigationShell.currentIndex,
Expand Down
6 changes: 3 additions & 3 deletions lib/ui/pages/quiz_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class QuizPage extends StatelessWidget {
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
),
child: const Text(
'INDIETRO',
'BACK',
style: TextStyle(color: Colors.white),
),
),
Expand All @@ -133,7 +133,7 @@ class QuizPage extends StatelessWidget {
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
),
child: const Text(
'AVANTI',
'NEXT',
style: TextStyle(color: Colors.white),
),
),
Expand Down Expand Up @@ -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}',
),
),
);
Expand Down
14 changes: 7 additions & 7 deletions lib/ui/pages/sign_up_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class SignUpPage extends StatelessWidget {
appBar: AppBar(
backgroundColor: ColorPalette.black,
title: const Text(
'Registrazione',
'Sign up',
style: PresetTextStyle.white21w500,
),
centerTitle: true,
Expand All @@ -40,7 +40,7 @@ class SignUpPage extends StatelessWidget {
mainAxisSize: MainAxisSize.max,
children: <Widget>[
const Text(
'Unisciti alla DevFest Bari 2024!',
'Join us at DevFest Bari 2024!',
style: PresetTextStyle.black19w500,
),
const SizedBox(height: 20),
Expand All @@ -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,
),
Expand Down Expand Up @@ -98,19 +98,19 @@ class SignUpPage extends StatelessWidget {
),
),
child: const Text(
'ISCRIVITI',
'SIGN UP',
style: PresetTextStyle.white21w400,
),
),
),
const SizedBox(height: 20),
RichText(
text: TextSpan(
text: 'Hai già un account? ',
text: 'Already have an account? ',
style: PresetTextStyle.black17w400,
children: <InlineSpan>[
TextSpan(
text: 'Accedi',
text: 'Sign in',
style: const TextStyle(
color: ColorPalette.coreRed,
fontWeight: FontWeight.w500,
Expand Down
21 changes: 11 additions & 10 deletions lib/ui/pages/welcome_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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),
// ),
],
),
),
Expand Down
4 changes: 2 additions & 2 deletions lib/ui/widgets/custom_segmented_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class CustomSegmentedButton extends StatelessWidget {
height: 35,
child: Center(
child: Text(
'Utenti',
'Users',
style: index == 0
? PresetTextStyle.white15w500
: PresetTextStyle.black15w400,
Expand All @@ -38,7 +38,7 @@ class CustomSegmentedButton extends StatelessWidget {
height: 35,
child: Center(
child: Text(
'Squadre',
'Teams',
style: index == 1
? PresetTextStyle.white15w500
: PresetTextStyle.black15w400,
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/widgets/dialogs/authentication_error_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
Expand Down
6 changes: 3 additions & 3 deletions lib/ui/widgets/dialogs/quiz_results_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ 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,
),
actions: <Widget>[
TextButton(
onPressed: onPressed,
style: TextButton.styleFrom(
backgroundColor: Colors.blue,
backgroundColor: ColorPalette.black,
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
),
child: const SizedBox(
Expand Down
4 changes: 2 additions & 2 deletions lib/ui/widgets/group_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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: <InlineSpan>[
TextSpan(
text: ': ${group.score} punti',
text: ': ${group.score} points',
style: PresetTextStyle.black17w400,
),
],
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/widgets/oauth_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
),
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/widgets/social_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class SocialInfo extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
Text(
'Seguici sui social',
'Follow us on our social media',
style: PresetTextStyle.black23w500,
),
SizedBox(height: 20),
Expand Down

0 comments on commit cb89345

Please sign in to comment.