fix: unlocalized messages (and wrong filename)

This commit is contained in:
Yannick Mauray 2024-06-27 18:42:29 +02:00 committed by Martin Wimpress
parent 2b9af064e1
commit 404579af36
5 changed files with 50 additions and 11 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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 ""

View File

@ -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';

View File

@ -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')),
],
),
),