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