diff --git a/assets/i18n/en.po b/assets/i18n/en.po index 840dc39..801a20e 100644 --- a/assets/i18n/en.po +++ b/assets/i18n/en.po @@ -138,3 +138,15 @@ msgstr "Directory where the machines are stored" msgid "Search version" msgstr "Search version" + +msgid "quickemu was not found in your PATH" +msgstr "quickemu was not found in your PATH" + +msgid "Please install it and try again." +msgstr "Please install it and try again." + +msgid "See" +msgstr "See" + +msgid "for more information" +msgstr "for more information" diff --git a/assets/i18n/fr.po b/assets/i18n/fr.po index f97413c..c7f0a89 100644 --- a/assets/i18n/fr.po +++ b/assets/i18n/fr.po @@ -138,3 +138,15 @@ msgstr "Dossier ou sont enregistrées les machines" msgid "Search version" msgstr "Chercher une option" + +msgid "quickemu was not found in your PATH" +msgstr "quickemu n'est pas dans votre PATH" + +msgid "Please install it and try again." +msgstr "Veuillez l'installer, et essayer de nouveau." + +msgid "See" +msgstr "Voir" + +msgid "for more information" +msgstr "pour plus d'informations" diff --git a/assets/i18n/quickgui.pot b/assets/i18n/quickgui.pot index 1e82786..82df164 100644 --- a/assets/i18n/quickgui.pot +++ b/assets/i18n/quickgui.pot @@ -138,3 +138,17 @@ msgstr "" msgid "Search version" msgstr "" + +msgid "quickemu was not found in your PATH" +msgstr "" + +msgid "Please install it and try again." +msgstr "" + +# The complete sentence is "See github.com/quickemu-project/quickemu for more information" +msgid "See" +msgstr "" + +# The complete sentence is "See github.com/quickemu-project/quickemu for more information" +msgid "for more information" +msgstr "" diff --git a/lib/src/app.dart b/lib/src/app.dart index b02bc9b..c634dbf 100644 --- a/lib/src/app.dart +++ b/lib/src/app.dart @@ -5,7 +5,7 @@ import 'package:flutter_localizations/flutter_localizations.dart'; import 'package:gettext_i18n/gettext_i18n.dart'; import 'package:provider/provider.dart'; import 'package:quickgui/src/mixins/app_version.dart'; -import 'package:quickgui/src/pages/deget_not_found_page.dart'; +import 'package:quickgui/src/pages/debget_not_found_page.dart'; import 'package:quickgui/src/supported_locales.dart'; import 'package:shared_preferences/shared_preferences.dart'; diff --git a/lib/src/pages/deget_not_found_page.dart b/lib/src/pages/debget_not_found_page.dart similarity index 72% rename from lib/src/pages/deget_not_found_page.dart rename to lib/src/pages/debget_not_found_page.dart index 896fe3d..8897ac6 100644 --- a/lib/src/pages/deget_not_found_page.dart +++ b/lib/src/pages/debget_not_found_page.dart @@ -1,9 +1,10 @@ import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; +import 'package:gettext_i18n/gettext_i18n.dart'; import 'package:url_launcher/url_launcher.dart'; class DebgetNotFoundPage extends StatelessWidget { - const DebgetNotFoundPage({Key? key}) : super(key: key); + const DebgetNotFoundPage({super.key}); @override Widget build(BuildContext context) { @@ -12,18 +13,18 @@ class DebgetNotFoundPage extends StatelessWidget { child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ - const Text( - 'quickemu was not found in your PATH', - style: TextStyle( + Text( + context.t('quickemu was not found in your PATH'), + style: const TextStyle( fontSize: 24, ), ), const SizedBox( height: 16, ), - const Text( - 'Please install it and try again.', - style: TextStyle( + Text( + context.t('Please install it and try again.'), + style: const TextStyle( fontSize: 24, ), ), @@ -35,7 +36,7 @@ class DebgetNotFoundPage extends StatelessWidget { style: const TextStyle( fontSize: 16, ), - text: 'See ', + text: context.t('See'), children: [ TextSpan( recognizer: TapGestureRecognizer() @@ -45,10 +46,10 @@ class DebgetNotFoundPage extends StatelessWidget { 'https://github.com/quickemu-project/quickemu'), ); }, - text: 'github.com/quickemu-project/quickemu', + text: ' github.com/quickemu-project/quickemu ', style: const TextStyle(color: Colors.blue), ), - const TextSpan(text: ' for more information'), + TextSpan(text: context.t('for more information')), ], ), ),