From ceb3344a70d2aab97bf4a21282a62c9171e72e35 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Wed, 23 Dec 2015 08:22:13 +0100 Subject: [PATCH] - update: localize question of flashing image --- data/locale/deutsch.locale | 2 ++ data/locale/english.locale | 2 ++ src/gui/update.cpp | 2 +- src/system/locals.h | 2 ++ src/system/locals_intern.h | 2 ++ 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/data/locale/deutsch.locale b/data/locale/deutsch.locale index 5546cc590..cbf4d6475 100644 --- a/data/locale/deutsch.locale +++ b/data/locale/deutsch.locale @@ -611,6 +611,8 @@ flashupdate.getupdatefile lade Update flashupdate.getupdatefileerror Kann Aktualisierung nicht laden! flashupdate.globalprogress Gesamtstatus: flashupdate.head Aktualisierung +flashupdate.install_image Heruntergeladenes Image installieren? +flashupdate.install_package Heruntergeladenes Paket installieren? flashupdate.md5check Imageprüfung flashupdate.md5sumerror Das Image ist fehlerhaft flashupdate.menu_apply_kernel Kernel flashen diff --git a/data/locale/english.locale b/data/locale/english.locale index 189e43380..4898ab4bd 100644 --- a/data/locale/english.locale +++ b/data/locale/english.locale @@ -612,6 +612,8 @@ flashupdate.getupdatefile getting update flashupdate.getupdatefileerror Can't get update! flashupdate.globalprogress Global Progress: flashupdate.head Software Update +flashupdate.install_image Flash downloaded image? +flashupdate.install_package Install downloadad pack? flashupdate.md5check checking image flashupdate.md5sumerror image has errors flashupdate.menu_apply_kernel Flashing kernel diff --git a/src/gui/update.cpp b/src/gui/update.cpp index 7aff4a3f5..7664dc950 100644 --- a/src/gui/update.cpp +++ b/src/gui/update.cpp @@ -517,7 +517,7 @@ int CFlashUpdate::exec(CMenuTarget* parent, const std::string &actionKey) return menu_return::RETURN_REPAINT; } if(softupdate_mode==1) { //internet-update - if ( ShowMsg(LOCALE_MESSAGEBOX_INFO, (fileType < '3') ? "Flash downloaded image ?" : "Install downloaded pack ?", CMessageBox::mbrYes, CMessageBox::mbYes | CMessageBox::mbNo, NEUTRINO_ICON_UPDATE) != CMessageBox::mbrYes) // UTF-8 + if ( ShowMsg(LOCALE_MESSAGEBOX_INFO, (fileType < '3') ? LOCALE_FLASHUPDATE_INSTALL_IMAGE : LOCALE_FLASHUPDATE_INSTALL_PACKAGE, CMessageBox::mbrYes, CMessageBox::mbYes | CMessageBox::mbNo, NEUTRINO_ICON_UPDATE) != CMessageBox::mbrYes) // UTF-8 { hide(); return menu_return::RETURN_REPAINT; diff --git a/src/system/locals.h b/src/system/locals.h index ed0b4642a..2b7c5cfc8 100644 --- a/src/system/locals.h +++ b/src/system/locals.h @@ -639,6 +639,8 @@ typedef enum LOCALE_FLASHUPDATE_GETUPDATEFILEERROR, LOCALE_FLASHUPDATE_GLOBALPROGRESS, LOCALE_FLASHUPDATE_HEAD, + LOCALE_FLASHUPDATE_INSTALL_IMAGE, + LOCALE_FLASHUPDATE_INSTALL_PACKAGE, LOCALE_FLASHUPDATE_MD5CHECK, LOCALE_FLASHUPDATE_MD5SUMERROR, LOCALE_FLASHUPDATE_MENU_APPLY_KERNEL, diff --git a/src/system/locals_intern.h b/src/system/locals_intern.h index 3bd5b0347..407159852 100644 --- a/src/system/locals_intern.h +++ b/src/system/locals_intern.h @@ -639,6 +639,8 @@ const char * locale_real_names[] = "flashupdate.getupdatefileerror", "flashupdate.globalprogress", "flashupdate.head", + "flashupdate.install_image", + "flashupdate.install_package", "flashupdate.md5check", "flashupdate.md5sumerror", "flashupdate.menu_apply_kernel",