* slight improvements to italian * some corrections thanks to Alessandro Volturno * consistently dithering is better than inconsistency * Simple check for negative process.exitCode when active download is cancelled re #41 * added cancel download to pot * Suggested translations added to existing lanquages * First addition missed the italian evolution Co-authored-by: Phil Clifford <philip.clifford@gmail.com> Co-authored-by: Yannick Mauray <yannick.mauray@gmail.com>
This commit is contained in:
parent
847b12108d
commit
35f11fbf67
|
|
@ -3,14 +3,14 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: quickgui\n"
|
"Project-Id-Version: quickgui\n"
|
||||||
"POT-Creation-Date: 2021-09-29 09:59+0200\n"
|
"POT-Creation-Date: 2021-09-29 09:59+0200\n"
|
||||||
"PO-Revision-Date: 2021-11-14 23:05+0100\n"
|
"PO-Revision-Date: 2021-12-02 20:24+0000\n"
|
||||||
"Last-Translator: Philipp Kiemle <philipp.kiemle@gmail.com>\n"
|
"Last-Translator: Philipp Kiemle <philipp.kiemle@gmail.com>\n"
|
||||||
"Language-Team: German <philipp.kiemle@gmail.com>\n"
|
"Language-Team: German <philipp.kiemle@gmail.com>\n"
|
||||||
"Language: de\n"
|
"Language: de\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"X-Generator: Lokalize 21.08.3\n"
|
"X-Generator: Poedit 3.0\n"
|
||||||
"X-Poedit-Basepath: .\n"
|
"X-Poedit-Basepath: .\n"
|
||||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
|
|
||||||
|
|
@ -56,6 +56,9 @@ msgstr "Herunterladen …{0}%"
|
||||||
msgid "Downloading {0}"
|
msgid "Downloading {0}"
|
||||||
msgstr "{0} wird herunterladen"
|
msgstr "{0} wird herunterladen"
|
||||||
|
|
||||||
|
msgid "Download cancelled"
|
||||||
|
msgstr "Download abgebrochen"
|
||||||
|
|
||||||
msgid "Download complete"
|
msgid "Download complete"
|
||||||
msgstr "Download abgeschlossen"
|
msgstr "Download abgeschlossen"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: quickgui\n"
|
"Project-Id-Version: quickgui\n"
|
||||||
"POT-Creation-Date: 2021-09-29 09:59+0200\n"
|
"POT-Creation-Date: 2021-09-29 09:59+0200\n"
|
||||||
"PO-Revision-Date: 2021-11-11 16:44+0100\n"
|
"PO-Revision-Date: 2021-12-02 20:23+0000\n"
|
||||||
"Last-Translator: Yannick Mauray\n"
|
"Last-Translator: Yannick Mauray\n"
|
||||||
"Language-Team: Yannick Mauray\n"
|
"Language-Team: Yannick Mauray\n"
|
||||||
"Language: fr\n"
|
"Language: fr\n"
|
||||||
|
|
@ -69,6 +69,9 @@ msgstr "Téléchargement...{0}%"
|
||||||
msgid "Downloading {0}"
|
msgid "Downloading {0}"
|
||||||
msgstr "Téléchargement de {0}"
|
msgstr "Téléchargement de {0}"
|
||||||
|
|
||||||
|
msgid "Download cancelled"
|
||||||
|
msgstr "Téléchargement annulé"
|
||||||
|
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Download complete"
|
msgid "Download complete"
|
||||||
msgstr "Téléchargement terminé"
|
msgstr "Téléchargement terminé"
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: quickgui\n"
|
"Project-Id-Version: quickgui\n"
|
||||||
"POT-Creation-Date: 2021-09-29 09:59+0200\n"
|
"POT-Creation-Date: 2021-09-29 09:59+0200\n"
|
||||||
"PO-Revision-Date: 2021-11-22 20:13+0000\n"
|
"PO-Revision-Date: 2021-12-02 20:24+0000\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: Phil Clifford <philip.clifford@gmail.com>\n"
|
||||||
"Language-Team: Italian\n"
|
"Language-Team: Italian\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
|
@ -60,6 +60,9 @@ msgstr "Scaricando...{0}%"
|
||||||
msgid "Downloading {0}"
|
msgid "Downloading {0}"
|
||||||
msgstr "Scaricamento di {0}"
|
msgstr "Scaricamento di {0}"
|
||||||
|
|
||||||
|
msgid "Download cancelled"
|
||||||
|
msgstr "Scaricamento interrotto"
|
||||||
|
|
||||||
msgid "Download complete"
|
msgid "Download complete"
|
||||||
msgstr "Scaricamento completato"
|
msgstr "Scaricamento completato"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,9 @@ msgstr ""
|
||||||
msgid "Downloading {0}"
|
msgid "Downloading {0}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Download cancelled"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Download complete"
|
msgid "Download complete"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -81,12 +81,18 @@ class _DownloaderState extends State<Downloader> {
|
||||||
}
|
}
|
||||||
|
|
||||||
process.exitCode.then((value) {
|
process.exitCode.then((value) {
|
||||||
|
bool _cancelled = value.isNegative;
|
||||||
controller.close();
|
controller.close();
|
||||||
setState(() {
|
setState(() {
|
||||||
_downloadFinished = true;
|
_downloadFinished = true;
|
||||||
notificationsClient.notify(
|
notificationsClient.notify(
|
||||||
context.t('Download complete'),
|
_cancelled ? context.t('Download cancelled') : context.t('Download complete'),
|
||||||
body: context.t('Download of {0} has completed.', args: [widget.operatingSystem.name]),
|
body: _cancelled
|
||||||
|
? context.t(
|
||||||
|
'Download of {0} has completed.',
|
||||||
|
args: [widget.operatingSystem.name],
|
||||||
|
)
|
||||||
|
: context.t('Download cancelled.'),
|
||||||
appName: 'Quickgui',
|
appName: 'Quickgui',
|
||||||
expireTimeoutMs: 10000, /* 10 seconds */
|
expireTimeoutMs: 10000, /* 10 seconds */
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue