Skip to content

Commit 5911010

Browse files
committed
[Take Survey] Translate detailed screen to spanish
1 parent 8357dfa commit 5911010

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

Space_Mapper/lang/en.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,7 @@
2424
"submit": "Submit",
2525
"reset": "Reset",
2626
"gender": "gender",
27-
"about_the_project": "About the project"
27+
"about_the_project": "About the project",
28+
"consent_form" : "Consent Form",
29+
"do_you_agree_to_share_your_anonymous_location_with" : "Do you agree to share your anonymous locations to "
2830
}

Space_Mapper/lang/es.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,7 @@
2424
"submit": "Enviar",
2525
"reset": "Restablecer",
2626
"gender": "género",
27-
"about_the_project": "Sobre el proyecto"
27+
"about_the_project": "Sobre el proyecto",
28+
"consent_form" : "Consentimiento",
29+
"do_you_agree_to_share_your_anonymous_location_with" : "¿Estás de acuerdo en compartir tu historial de ubicaciones anónimo con "
2830
}

Space_Mapper/lib/ui/survey_detail.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,8 @@ class _SurveyDetailState extends State<SurveyDetail> {
105105
}
106106

107107
Widget _renderConsentForm() {
108-
String title = "Consent Form";
109-
String text =
110-
"Do you agree to share your anonymous locations to ${survey.name}?";
108+
String title = AppLocalizations.of(context)!.translate("consent_form");
109+
String text = AppLocalizations.of(context)!.translate("do_you_agree_to_share_your_anonymous_location_with") + "${survey.name}?";
111110

112111
return Container(
113112
height: SurveyTileHeight,

0 commit comments

Comments
 (0)