Skip to content

Commit

Permalink
add more i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
Iankk committed Jul 3, 2021
1 parent 3daa527 commit 5258c12
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/components/action_participation_component.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class _ActionParticipationComponentState
),
Text((widget._action.usersRegistered > 0
? this.widget._action.usersRegistered.toString()
: 'pas de') +
: AppLocalizations.of(context)!.label_no) +
' participant' +
(widget._action.usersRegistered > 1 ? 's' : '')),
],
Expand Down
3 changes: 2 additions & 1 deletion lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,6 @@
"association_name_label": "Your association's name",
"post_management_main_title": "Posts Management",
"events_management_main_title": "Events Management",
"association_messaging_main_title": "Messaging"
"association_messaging_main_title": "Messaging",
"label_no": "Pas de"
}
3 changes: 2 additions & 1 deletion lib/l10n/app_fr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,6 @@
"association_name_label": "Nom de votre association",
"post_management_main_title": "Gestion des Posts",
"events_management_main_title": "Gestion des évènements",
"association_messaging_main_title": "Messagerie"
"association_messaging_main_title": "Messagerie",
"label_no": "No"
}
8 changes: 6 additions & 2 deletions lib/pages/detail/signup_form.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,14 @@ class _SignUpFormState extends State<SignUpForm> {
_mail, _pwd, _firstName, _lastName);
if (res == null) {
Utils.displaySnackBarWithMessage(
context, "Failed to connect, try again", Colors.green);
context,
AppLocalizations.of(context)!.failed_to_connect_snackbar,
Colors.green);
} else {
Utils.displaySnackBarWithMessage(
context, "Succesfully connected ! Welcome", Colors.deepOrange);
context,
AppLocalizations.of(context)!.succeed_to_connect_snackbar,
Colors.deepOrange);
}
}
}
Expand Down

0 comments on commit 5258c12

Please sign in to comment.