diff --git a/i18n/rpi-imager_nl.ts b/i18n/rpi-imager_nl.ts
index 638cbd9..b7c5ced 100644
--- a/i18n/rpi-imager_nl.ts
+++ b/i18n/rpi-imager_nl.ts
@@ -85,13 +85,13 @@ Kaart geeft mogelijk onjuiste capaciteit aan (mogelijk counterfeit)Fout bij schrijven naar eerste deel van kaart (partitie tabel)
-
+ Error reading from storage.
SD card may be broken.Fout bij lezen van SD kaart. Kaart is mogelijk defect.
-
+ Verifying write failed. Contents of SD card is different from what was written to it.Verificatie mislukt. De gegevens die op de SD kaart staan wijken af van wat er naar geschreven is.
@@ -173,7 +173,7 @@ Bestandsgrootte %1 bytes is geen veelvoud van 512 bytes.
Downloaden en schrijven van image
-
+ Select imageSelecteer image
@@ -186,158 +186,168 @@ Bestandsgrootte %1 bytes is geen veelvoud van 512 bytes.
Raspberry Pi Imager v%1
-
-
+
+ Are you sure you want to quit?
+ Weet u zeker dat u wilt afsluiten?
+
+
+
+ Imager is still busy.<br>Are you sure you want to quit?
+ Imager is nog niet klaar.<br>Weet u zeker dat u wilt afsluiten?
+
+
+
+ Operating SystemBesturingssysteem
-
+ CHOOSE OSSELECTEER OS
-
-
+
+ SD CardSD kaart
-
-
+
+ CHOOSE SD CARDSELECTEER SD KAART
-
+ WRITESCHRIJF
-
-
+
+ Writing... %1%Schrijven... %1%
-
+ CANCEL WRITEAnnuleer schrijven
-
-
+
+ Cancelling...Annuleren...
-
+ CANCEL VERIFYANNULEER VERIFICATIE
-
-
-
+
+
+ Finalizing...Afronden...
-
-
+
+ EraseWissen
-
+ Format card as FAT32Formatteer kaart als FAT32
-
+ Use customGebruik eigen bestand
-
+ Select a custom .img from your computerSelecteer een eigen .img bestand
-
-
+
+ Error parsing os_list.jsonFout bij parsen os_list.json
-
+ BackTerug
-
+ Go back to main menuTerug naar hoofdmenu
-
+ Released: %1Release datum: %1
-
+ Cached on your computerOpgeslagen op computer
-
+ Online - %1 GB downloadOnline %1 GB download
-
+ Mounted as %1Mounted op %1
-
+ QUIT APPAFSLUITEN
-
+ CONTINUEVERDER GAAN
-
+ Error downloading OS list from InternetFout bij downloaden van lijst met besturingssystemen
-
+ Verifying... %1%Verifiëren... %1%
-
+ ErrorFout
-
+ Write SuccessfulKlaar met schrijven
-
+ <b>%2</b> has been erased<br><br>You can now remove the SD card from the reader<b>%2</b> is gewist<br><br>U kunt nu de SD kaart uit de lezer halen
-
+ <b>%1</b> has been written to <b>%2</b><br><br>You can now remove the SD card from the reader
- <b>%1</b> is geschreven naar <b>%2</b><br><br>U kunt nu de SD kaart uit de lezer halen
+ <b>%1</b> is geschreven naar <b>%2</b><br><br>U kunt nu de SD kaart uit de lezer halen
diff --git a/i18n/rpi-imager_zh_cn.ts b/i18n/rpi-imager_zh_cn.ts
index a7210d5..1539b69 100644
--- a/i18n/rpi-imager_zh_cn.ts
+++ b/i18n/rpi-imager_zh_cn.ts
@@ -84,13 +84,13 @@ Card could be advertising wrong capacity (possible counterfeit)
-
+ Error reading from storage.
SD card may be broken.
-
+ Verifying write failed. Contents of SD card is different from what was written to it.
@@ -170,7 +170,7 @@ File size %1 bytes is not a multiple of 512 bytes.
-
+ Select image
@@ -183,156 +183,166 @@ File size %1 bytes is not a multiple of 512 bytes.
树莓派镜像烧录 v%1
-
-
+
+ Are you sure you want to quit?
+
+
+
+
+ Imager is still busy.<br>Are you sure you want to quit?
+
+
+
+
+ Operating System操作系统
-
+ CHOOSE OS选择操作系统
-
-
+
+ SD CardSD卡
-
-
+
+ CHOOSE SD CARD选择SD卡
-
+ WRITE烧录
-
-
+
+ Writing... %1%写入中...%1%
-
+ CANCEL WRITE取消写入
-
-
+
+ Cancelling...取消中...
-
+ CANCEL VERIFY取消验证
-
-
-
+
+
+ Finalizing...完成中...
-
-
+
+ Erase擦除
-
+ Format card as FAT32格式化SD卡为FAT32格式
-
+ Use custom使用自定义镜像
-
+ Select a custom .img from your computer使用下载的系统镜像文件烧录
-
-
+
+ Error parsing os_list.json解析 os_list.json 错误
-
+ Back返回
-
+ Go back to main menu回到主页
-
+ Released: %1解压中...%1
-
+ Cached on your computer在你的电脑上缓存
-
+ Online - %1 GB download已下载:%1 GB
-
+ Mounted as %1挂载在:%1 上
-
+ QUIT APP退出
-
+ CONTINUE继续
-
+ Error downloading OS list from Internet下载镜像列表错误
-
+ Verifying... %1%验证文件中...%1%
-
+ Error错误
-
+ Write Successful烧录成功
-
+ <b>%2</b> has been erased<br><br>You can now remove the SD card from the reader
-
+ <b>%1</b> has been written to <b>%2</b><br><br>You can now remove the SD card from the reader<b>%1</b> 已经成功烧录到 <b>%2</b><br><br>上了,你可以卸载SD卡了
diff --git a/main.qml b/main.qml
index 38ecaaa..ec8e025 100644
--- a/main.qml
+++ b/main.qml
@@ -26,6 +26,16 @@ ApplicationWindow {
FontLoader {id: robotoLight; source: "fonts/Roboto-Light.ttf"}
FontLoader {id: robotoBold; source: "fonts/Roboto-Bold.ttf"}
+ onClosing: {
+ if (progressBar.visible) {
+ close.accepted = false
+ msgpopupheader.text = qsTr("Are you sure you want to quit?")
+ msgpopupbody.text = qsTr("Imager is still busy. Are you sure you want to quit?")
+ quitbutton.visible = true
+ msgpopup.open()
+ }
+ }
+
ColumnLayout {
id: bg
spacing: 0
@@ -783,7 +793,10 @@ ApplicationWindow {
Button {
id: continuebutton
text: qsTr("CONTINUE")
- onClicked: msgpopup.close()
+ onClicked: {
+ msgpopup.close()
+ quitbutton.visible = false
+ }
Material.foreground: "#ffffff"
Material.background: "#c51a4a"
font.family: roboto.name