diff --git a/refilc_mobile_ui/lib/screens/error_report_screen.dart b/refilc_mobile_ui/lib/screens/error_report_screen.dart index 0901be7..458ba0d 100644 --- a/refilc_mobile_ui/lib/screens/error_report_screen.dart +++ b/refilc_mobile_ui/lib/screens/error_report_screen.dart @@ -29,7 +29,7 @@ class ErrorReportScreen extends StatelessWidget { Padding( padding: const EdgeInsets.only(bottom: 4.0), child: Text( - "ekretaYou".i18n, + "title".i18n, style: TextStyle( color: AppColors.of(context).text.withOpacity(0.7), fontSize: 24.0, @@ -37,27 +37,27 @@ class ErrorReportScreen extends StatelessWidget { ), ), ), - FutureBuilder( - future: dirtyString(), - builder: (context, snapshot) { - if (snapshot.connectionState == ConnectionState.waiting) { - return const CircularProgressIndicator(); - } - if (snapshot.hasError) { - return Text("Error: ${snapshot.error}"); - } - return Text( - snapshot.data ?? "", - textAlign: TextAlign.center, - style: TextStyle( - color: AppColors.of(context).text, - fontSize: 24.0, - fontWeight: FontWeight.w700, - fontStyle: FontStyle.italic, - ), - ); - }, - ), + //FutureBuilder( + // future: dirtyString(), + // builder: (context, snapshot) { + // if (snapshot.connectionState == ConnectionState.waiting) { + // return const CircularProgressIndicator(); + // } + // if (snapshot.hasError) { + // return Text("Error: ${snapshot.error}"); + // } + // return Text( + // snapshot.data ?? "", + // textAlign: TextAlign.center, + // style: TextStyle( + // color: AppColors.of(context).text, + // fontSize: 24.0, + // fontWeight: FontWeight.w700, + // fontStyle: FontStyle.italic, + // ), + // ); + // }, + //), const SizedBox(height: 16), Text( "smth_went_wrong".i18n, diff --git a/refilc_mobile_ui/lib/screens/error_report_screen.i18n.dart b/refilc_mobile_ui/lib/screens/error_report_screen.i18n.dart index ee30471..a198376 100644 --- a/refilc_mobile_ui/lib/screens/error_report_screen.i18n.dart +++ b/refilc_mobile_ui/lib/screens/error_report_screen.i18n.dart @@ -4,8 +4,8 @@ extension SettingsLocalization on String { static final _t = Translations.byLocale("hu_hu") + { "en_en": { - "ekretaYou": "e-KRÉTA, you", - "description": "An error occurred!", + "title": "Unexpected error.", + "description": "Unexpected error while using the application!", "submit": "Submit", "goback": "Go back", "details": "Details", @@ -15,11 +15,11 @@ extension SettingsLocalization on String { "stack": "Stack Trace", "done": "Done", "smth_went_wrong": - "Something went wrong, it is of course the fault of Educational Development Informatikai Zrt. (e-KRÉTA) in any case! /s", + "An unexpected error occurred while using the app.", }, "hu_hu": { - "ekretaYou": "e-KRÉTA, te", - "description": "Fasz-emulátor hivatásos balfasz!", + "title": "Váratlan hiba.", + "description": "Váratlan hiba az alkalmazás használata közben!", "submit": "Hiba jelentése", "goback": "Vissza", "details": "Részletek", @@ -29,11 +29,11 @@ extension SettingsLocalization on String { "stack": "Stacktrace", "done": "Kész", "smth_went_wrong": - "Valami probléma történt, ez természetesen az Educational Development Informatikai Zrt. (e-KRÉTA) hibája minden esetben! /s", + "Nem várt hiba következett be az alkalmazás használata közben.", }, "de_de": { - "ekretaYou": "e-KRÉTA, du", - "description": "Ein Fehler ist aufgetreten!", + "title": "Unerwartetes Problem.", + "description": "Unerwarteter Fehler bei der Benutzung der Anwendung!", "submit": "Abschicken", "goback": "Zurück", "details": "Details", @@ -43,7 +43,7 @@ extension SettingsLocalization on String { "stack": "Stack Trace", "done": "Fertig", "smth_went_wrong": - "Irgendetwas ist schief gelaufen, es ist natürlich auf jeden Fall die Schuld der Educational Development Informatikai Zrt. (e-KRÉTA)! /s", + "Bei der Benutzung der Anwendung ist ein unerwarteter Fehler aufgetreten.", }, };