From e1870b08e5d01aa9b8e1eaf5aa466bba0c9e0f91 Mon Sep 17 00:00:00 2001 From: balint1414 Date: Fri, 14 Jun 2024 10:44:10 +0200 Subject: [PATCH 1/4] =?UTF-8?q?Hiba=20ablak=20sz=C3=B6veg=C3=A9nek=20megv?= =?UTF-8?q?=C3=A1ltoztat=C3=A1sa.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lib/screens/error_report_screen.dart | 44 +++++++++---------- .../lib/screens/error_report_screen.i18n.dart | 18 ++++---- 2 files changed, 31 insertions(+), 31 deletions(-) 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.", }, }; From cad7bd19dc3efff7f72b9e947ee0ce22a15a8b19 Mon Sep 17 00:00:00 2001 From: balint1414 Date: Fri, 14 Jun 2024 10:56:15 +0200 Subject: [PATCH 2/4] =?UTF-8?q?Hiba=20ablak=20sz=C3=B6veg=C3=A9nek=20megv?= =?UTF-8?q?=C3=A1ltoztat=C3=A1sa.=20(2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lib/screens/error_report_screen.dart | 42 +++++++++---------- .../lib/screens/error_report_screen.i18n.dart | 2 +- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/refilc_mobile_ui/lib/screens/error_report_screen.dart b/refilc_mobile_ui/lib/screens/error_report_screen.dart index 458ba0d..04e706f 100644 --- a/refilc_mobile_ui/lib/screens/error_report_screen.dart +++ b/refilc_mobile_ui/lib/screens/error_report_screen.dart @@ -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 a198376..0e3e1c5 100644 --- a/refilc_mobile_ui/lib/screens/error_report_screen.i18n.dart +++ b/refilc_mobile_ui/lib/screens/error_report_screen.i18n.dart @@ -51,4 +51,4 @@ extension SettingsLocalization on String { String fill(List params) => localizeFill(this, params); String plural(int value) => localizePlural(value, this, _t); String version(Object modifier) => localizeVersion(modifier, this, _t); -} +} \ No newline at end of file From ac11da1744ea1ca2913f83350762062777f09aae Mon Sep 17 00:00:00 2001 From: balint1414 Date: Fri, 14 Jun 2024 10:58:26 +0200 Subject: [PATCH 3/4] =?UTF-8?q?Hiba=20ablak=20sz=C3=B6veg=C3=A9nek=20megv?= =?UTF-8?q?=C3=A1ltoztat=C3=A1sa.=20(2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- refilc_mobile_ui/lib/screens/error_report_screen.dart | 2 +- refilc_mobile_ui/lib/screens/error_report_screen.i18n.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/refilc_mobile_ui/lib/screens/error_report_screen.dart b/refilc_mobile_ui/lib/screens/error_report_screen.dart index 04e706f..e64a5f5 100644 --- a/refilc_mobile_ui/lib/screens/error_report_screen.dart +++ b/refilc_mobile_ui/lib/screens/error_report_screen.dart @@ -276,4 +276,4 @@ class ErrorDetail extends StatelessWidget { ), ); } -} +} \ No newline at end of file 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 0e3e1c5..a198376 100644 --- a/refilc_mobile_ui/lib/screens/error_report_screen.i18n.dart +++ b/refilc_mobile_ui/lib/screens/error_report_screen.i18n.dart @@ -51,4 +51,4 @@ extension SettingsLocalization on String { String fill(List params) => localizeFill(this, params); String plural(int value) => localizePlural(value, this, _t); String version(Object modifier) => localizeVersion(modifier, this, _t); -} \ No newline at end of file +} From e6f7728e42852d2ef05b94c90b467593283c79fa Mon Sep 17 00:00:00 2001 From: balint1414 Date: Fri, 14 Jun 2024 11:27:29 +0200 Subject: [PATCH 4/4] =?UTF-8?q?Hiba=20ablak=20sz=C3=B6veg=C3=A9nek=20megv?= =?UTF-8?q?=C3=A1ltoztat=C3=A1sa.=20(3)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- refilc_mobile_ui/lib/screens/error_report_screen.dart | 2 +- refilc_mobile_ui/lib/screens/error_report_screen.i18n.dart | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/refilc_mobile_ui/lib/screens/error_report_screen.dart b/refilc_mobile_ui/lib/screens/error_report_screen.dart index e64a5f5..aed20d1 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( - "title".i18n, + "ekretaYou".i18n, style: TextStyle( color: AppColors.of(context).text.withOpacity(0.7), fontSize: 24.0, 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 a198376..8089fd3 100644 --- a/refilc_mobile_ui/lib/screens/error_report_screen.i18n.dart +++ b/refilc_mobile_ui/lib/screens/error_report_screen.i18n.dart @@ -4,7 +4,7 @@ extension SettingsLocalization on String { static final _t = Translations.byLocale("hu_hu") + { "en_en": { - "title": "Unexpected error.", + "ekretaYou": "e-KRÉTA, you", "description": "Unexpected error while using the application!", "submit": "Submit", "goback": "Go back", @@ -18,7 +18,7 @@ extension SettingsLocalization on String { "An unexpected error occurred while using the app.", }, "hu_hu": { - "title": "Váratlan hiba.", + "ekretaYou": "e-KRÉTA, te", "description": "Váratlan hiba az alkalmazás használata közben!", "submit": "Hiba jelentése", "goback": "Vissza", @@ -32,7 +32,7 @@ extension SettingsLocalization on String { "Nem várt hiba következett be az alkalmazás használata közben.", }, "de_de": { - "title": "Unerwartetes Problem.", + "ekretaYou": "e-KRÉTA, du", "description": "Unerwarteter Fehler bei der Benutzung der Anwendung!", "submit": "Abschicken", "goback": "Zurück",