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 image Selecteer 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 System Besturingssysteem - + CHOOSE OS SELECTEER OS - - + + SD Card SD kaart - - + + CHOOSE SD CARD SELECTEER SD KAART - + WRITE SCHRIJF - - + + Writing... %1% Schrijven... %1% - + CANCEL WRITE Annuleer schrijven - - + + Cancelling... Annuleren... - + CANCEL VERIFY ANNULEER VERIFICATIE - - - + + + Finalizing... Afronden... - - + + Erase Wissen - + Format card as FAT32 Formatteer kaart als FAT32 - + Use custom Gebruik eigen bestand - + Select a custom .img from your computer Selecteer een eigen .img bestand - - + + Error parsing os_list.json Fout bij parsen os_list.json - + Back Terug - + Go back to main menu Terug naar hoofdmenu - + Released: %1 Release datum: %1 - + Cached on your computer Opgeslagen op computer - + Online - %1 GB download Online %1 GB download - + Mounted as %1 Mounted op %1 - + QUIT APP AFSLUITEN - + CONTINUE VERDER GAAN - + Error downloading OS list from Internet Fout bij downloaden van lijst met besturingssystemen - + Verifying... %1% Verifiëren... %1% - + Error Fout - + Write Successful Klaar 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 Card SD卡 - - + + 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