Fixed various i18n issues
This commit is contained in:
parent
62d4049710
commit
bd1fa1b937
|
@ -47,8 +47,8 @@ msgstr "Downloader"
|
|||
msgid "Downloading (no progress available)..."
|
||||
msgstr "Lädt herunter (Kein Fortschritt verfügbar) …"
|
||||
|
||||
msgid "Downloading... {0}"
|
||||
msgstr "Herunterladen … {0}"
|
||||
msgid "Downloading...{0}%"
|
||||
msgstr "Herunterladen …{0}%"
|
||||
|
||||
msgid "Manage existing machines"
|
||||
msgstr "Bestehende Maschinen verwalten"
|
||||
|
|
|
@ -13,6 +13,10 @@ msgstr ""
|
|||
"X-Poedit-Basepath: .\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#, fuzzy
|
||||
msgid "Quickgui : a Flutter frontend for Quickget and Quickemu"
|
||||
msgstr "Quickgui : a Flutter frontend for Quickget and Quickemu"
|
||||
|
||||
#, fuzzy
|
||||
msgid "Main menu"
|
||||
msgstr "Main menu"
|
||||
|
@ -58,8 +62,20 @@ msgid "Downloading (no progress available)..."
|
|||
msgstr "Downloading (no progress available)..."
|
||||
|
||||
#, fuzzy
|
||||
msgid "Downloading... {0}"
|
||||
msgstr "Downloading... {0}"
|
||||
msgid "Downloading...{0}%"
|
||||
msgstr "Downloading...{0}%"
|
||||
|
||||
#, fuzzy
|
||||
msgid "Downloading {0}"
|
||||
msgstr "Downloading {0}"
|
||||
|
||||
#, fuzzy
|
||||
msgid "Download complete"
|
||||
msgstr "Download complete"
|
||||
|
||||
#, fuzzy
|
||||
msgid "Download of {0} has completed."
|
||||
msgstr "Download of {0} has completed."
|
||||
|
||||
#, fuzzy
|
||||
msgid "Manage existing machines"
|
||||
|
|
|
@ -13,6 +13,10 @@ msgstr ""
|
|||
"X-Poedit-Basepath: .\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
|
||||
#, fuzzy
|
||||
msgid "Quickgui : a Flutter frontend for Quickget and Quickemu"
|
||||
msgstr "Quickgui : une interface en Flutter pour Quickget et Quickemu"
|
||||
|
||||
#, fuzzy
|
||||
msgid "Main menu"
|
||||
msgstr "Menu principal"
|
||||
|
@ -58,8 +62,20 @@ msgid "Downloading (no progress available)..."
|
|||
msgstr "Téléchargement (pas de barre de progression)..."
|
||||
|
||||
#, fuzzy
|
||||
msgid "Downloading... {0}"
|
||||
msgstr "Téléchargement... {0}"
|
||||
msgid "Downloading...{0}%"
|
||||
msgstr "Téléchargement...{0}%"
|
||||
|
||||
#, fuzzy
|
||||
msgid "Downloading {0}"
|
||||
msgstr "Téléchargement de {0}"
|
||||
|
||||
#, fuzzy
|
||||
msgid "Download complete"
|
||||
msgstr "Téléchargement terminé"
|
||||
|
||||
#, fuzzy
|
||||
msgid "Download of {0} has completed."
|
||||
msgstr "Le téléhcargement de {0} est terminé."
|
||||
|
||||
#, fuzzy
|
||||
msgid "Manage existing machines"
|
||||
|
|
|
@ -13,6 +13,9 @@ msgstr ""
|
|||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"Language: en\n"
|
||||
|
||||
msgid "Quickgui : a Flutter frontend for Quickget and Quickemu"
|
||||
msgstr ""
|
||||
|
||||
msgid "Main menu"
|
||||
msgstr ""
|
||||
|
||||
|
@ -46,7 +49,16 @@ msgstr ""
|
|||
msgid "Downloading (no progress available)..."
|
||||
msgstr ""
|
||||
|
||||
msgid "Downloading... {0}"
|
||||
msgid "Downloading...{0}%"
|
||||
msgstr ""
|
||||
|
||||
msgid "Downloading {0}"
|
||||
msgstr ""
|
||||
|
||||
msgid "Download complete"
|
||||
msgstr ""
|
||||
|
||||
msgid "Download of {0} has completed."
|
||||
msgstr ""
|
||||
|
||||
msgid "Manage existing machines"
|
||||
|
|
|
@ -48,7 +48,6 @@ Future<List<OperatingSystem>> loadOperatingSystems(bool showUbuntus) async {
|
|||
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
setWindowTitle('Quickgui : a flutter frontend for Quickget and Quickemu');
|
||||
setWindowMinSize(const Size(692, 580));
|
||||
setWindowMaxSize(const Size(692, 580));
|
||||
gOperatingSystems = await loadOperatingSystems(false);
|
||||
|
|
|
@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
|||
import 'package:flutter_localizations/flutter_localizations.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:gettext_i18n/gettext_i18n.dart';
|
||||
import 'package:window_size/window_size.dart';
|
||||
|
||||
import 'globals.dart';
|
||||
import 'mixins/preferences_mixin.dart';
|
||||
|
@ -30,7 +31,7 @@ class _AppState extends State<App> with PreferencesMixin {
|
|||
theme: ThemeData(primarySwatch: Colors.pink),
|
||||
darkTheme: ThemeData.dark(),
|
||||
themeMode: appTheme.themeMode,
|
||||
home: const MainPage(title: 'Quickgui - A Flutter frontend for Quickget and Quickemu'),
|
||||
home: const MainPage(),
|
||||
supportedLocales: const [
|
||||
/*
|
||||
* List of locales (language + country) we have translations for.
|
||||
|
|
|
@ -86,8 +86,8 @@ class _DownloaderState extends State<Downloader> {
|
|||
_downloadFinished = true;
|
||||
notificationsClient.notify(
|
||||
context.t('Download complete'),
|
||||
body: 'Download of ${widget.operatingSystem.name} has completed.',
|
||||
appName: context.t('QuickGUI'),
|
||||
body: context.t('Download of {0} has completed.', args: [widget.operatingSystem.name]),
|
||||
appName: 'Quickgui',
|
||||
expireTimeoutMs: 10000, /* 10 seconds */
|
||||
);
|
||||
});
|
||||
|
@ -105,7 +105,8 @@ class _DownloaderState extends State<Downloader> {
|
|||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text(
|
||||
'Downloading ${widget.operatingSystem.name} ${widget.version.version}' + (widget.option!.option.isNotEmpty ? ' (${widget.option!.option})' : ''),
|
||||
context.t('Downloading {0}',
|
||||
args: ['${widget.operatingSystem.name} ${widget.version.version}' + (widget.option!.option.isNotEmpty ? ' (${widget.option!.option})' : '')]),
|
||||
),
|
||||
automaticallyImplyLeading: false,
|
||||
),
|
||||
|
@ -130,7 +131,7 @@ class _DownloaderState extends State<Downloader> {
|
|||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(top: 32),
|
||||
child: Text(context.t('Target folder : {0}', args: [Directory.current])),
|
||||
child: Text(context.t('Target folder : {0}', args: [Directory.current.path])),
|
||||
),
|
||||
],
|
||||
);
|
||||
|
|
|
@ -1,20 +1,25 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:gettext_i18n/gettext_i18n.dart';
|
||||
import 'package:window_size/window_size.dart';
|
||||
|
||||
import '../widgets/home_page/logo.dart';
|
||||
import '../widgets/home_page/main_menu.dart';
|
||||
import '../widgets/left_menu.dart';
|
||||
|
||||
class MainPage extends StatefulWidget {
|
||||
const MainPage({Key? key, required this.title}) : super(key: key);
|
||||
|
||||
final String title;
|
||||
const MainPage({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<MainPage> createState() => _MainPageState();
|
||||
}
|
||||
|
||||
class _MainPageState extends State<MainPage> {
|
||||
@override
|
||||
void didChangeDependencies() {
|
||||
super.didChangeDependencies();
|
||||
setWindowTitle(context.t('Quickgui : a Flutter frontend for Quickget and Quickemu'));
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
|
|
Loading…
Reference in New Issue