diff --git a/CMakeLists.txt b/CMakeLists.txt index 2d10c32..ddb06f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,7 +8,7 @@ endif() project(rpi-imager LANGUAGES CXX) set(IMAGER_VERSION_MAJOR 1) -set(IMAGER_VERSION_MINOR 3) +set(IMAGER_VERSION_MINOR 4) set(IMAGER_VERSION_STR "${IMAGER_VERSION_MAJOR}.${IMAGER_VERSION_MINOR}") set(IMAGER_VERSION_CSV "${IMAGER_VERSION_MAJOR},${IMAGER_VERSION_MINOR},0,0") add_definitions(-DIMAGER_VERSION_STR="${IMAGER_VERSION_STR}") @@ -75,8 +75,8 @@ if (Qt5Widgets_FOUND) set(EXTRALIBS ${EXTRALIBS} Qt5::Widgets) endif() -#qt5_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} i18n/rpi-imager_nl.ts i18n/rpi-imager_zh_cn.ts) -qt5_add_translation(QM_FILES i18n/rpi-imager_nl.ts i18n/rpi-imager_zh_cn.ts) +#qt5_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} i18n/rpi-imager_en.ts i18n/rpi-imager_nl.ts i18n/rpi-imager_zh_cn.ts) +qt5_add_translation(QM_FILES i18n/rpi-imager_en.ts i18n/rpi-imager_nl.ts i18n/rpi-imager_zh_cn.ts) configure_file(i18n/translations.qrc "${CMAKE_CURRENT_BINARY_DIR}" COPYONLY) set(SOURCES ${SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/translations.qrc ${QM_FILES}) diff --git a/i18n/rpi-imager_en.ts b/i18n/rpi-imager_en.ts new file mode 100644 index 0000000..934748a --- /dev/null +++ b/i18n/rpi-imager_en.ts @@ -0,0 +1,410 @@ + + + + + DownloadExtractThread + + + Error writing to storage + + + + + + Error extracting archive: %1 + + + + + Error mounting FAT32 partition + + + + + Operating system did not mount FAT32 partition + + + + + Error changing to directory '%1' + + + + + DownloadThread + + + Error running diskpart: %1 + + + + + Error removing existing partitions + + + + + Error running authopen to gain access to disk device '%1' + + + + + Cannot open storage device '%1'. + + + + + Write error while zero'ing out MBR + + + + + Write error while trying to zero out last part of card. +Card could be advertising wrong capacity (possible counterfeit) + + + + + Error writing to storage (while flushing) + + + + + Error writing to storage (while fsync) + + + + + Download corrupt. Hash does not match + + + + + Error writing first block (partition table) + + + + + Error reading from storage. +SD card may be broken. + + + + + Verifying write failed. Contents of SD card is different from what was written to it. + + + + + DriveFormatThread + + + + + Error partitioning: %1 + + + + + Error starting fat32format + + + + + Error running fat32format: %1 + + + + + Error determining new drive letter + + + + + Invalid device: %1 + + + + + Error formatting (through udisks2) + + + + + Error starting sfdisk + + + + + Error starting mkfs.fat + + + + + Error running mkfs.fat: %1 + + + + + Formatting not implemented for this platform + + + + + ImageWriter + + + Storage capacity is not large enough. +Needs to be at least %1 GB + + + + + Input file is not a valid disk image. +File size %1 bytes is not a multiple of 512 bytes. + + + + + Downloading and writing image + + + + + Select image + + + + + LocalFileExtractThread + + + Error opening image file + + + + + MsgPopup + + + NO + + + + + YES + + + + + CONTINUE + + + + + QObject + + + Internal SD card reader + + + + + main + + + Raspberry Pi Imager v%1 + + + + + + Operating System + + + + + CHOOSE OS + + + + + Select this button to change the operating system + + + + + + SD Card + + + + + + CHOOSE SD CARD + + + + + Select this button to change the destination SD card + + + + + WRITE + + + + + Select this button to start writing the image + + + + + CANCEL WRITE + + + + + + Cancelling... + + + + + CANCEL VERIFY + + + + + + + Finalizing... + + + + + + Erase + + + + + Format card as FAT32 + + + + + Use custom + + + + + Select a custom .img from your computer + + + + + Back + + + + + Go back to main menu + + + + + Released: %1 + + + + + Cached on your computer + + + + + Local file + + + + + Online - %1 GB download + + + + + + Mounted as %1 + + + + + Are you sure you want to quit? + + + + + Raspberry Pi Imager is still busy.<br>Are you sure you want to quit? + + + + + Warning + + + + + + Writing... %1% + + + + + All existing data on '%1' will be erased.<br>Are you sure you want to continue? + + + + + Error downloading OS list from Internet + + + + + Verifying... %1% + + + + + Error + + + + + Write Successful + + + + + <b>%1</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 + + + + + + Error parsing os_list.json + + + + + Connect an USB stick containing images first.<br>The images must be located in the root folder of the USB stick. + + + + diff --git a/i18n/translations.qrc b/i18n/translations.qrc index 550d77d..1207e70 100644 --- a/i18n/translations.qrc +++ b/i18n/translations.qrc @@ -1,5 +1,6 @@ + rpi-imager_en.qm rpi-imager_nl.qm rpi-imager_zh_cn.qm