Software Update with apply the settings (Part4)

- Use locale for message boxes


Origin commit data
------------------
Branch: ni/coolstream
Commit: dc8ddc5325
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2012-10-24 (Wed, 24 Oct 2012)

Origin message was:
------------------
* Software Update with apply the settings (Part4)

- Use locale for message boxes


------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2012-10-24 23:20:41 +02:00
parent 43e82e3288
commit 33c7b51731
5 changed files with 15 additions and 3 deletions

View File

@@ -484,6 +484,9 @@ flashupdate.settings Update-Einstellungen
flashupdate.squashfs.noversion Bei Updates werden Versionsüberprüfungen derzeit nur über Web-Updates unterstützt.\nWollen Sie das ausgewählte Image wirklich installieren? flashupdate.squashfs.noversion Bei Updates werden Versionsüberprüfungen derzeit nur über Web-Updates unterstützt.\nWollen Sie das ausgewählte Image wirklich installieren?
flashupdate.titlereadflash Flash auslesen flashupdate.titlereadflash Flash auslesen
flashupdate.titlewriteflash Flash schreiben flashupdate.titlewriteflash Flash schreiben
flashupdate.update_with_settings_processed Image wird bearbeitet...
flashupdate.update_with_settings_skipped Ordner [%s] kann nicht gesichert werden. Eintrag wird übersprungen.
flashupdate.update_with_settings_successfully Settingsübernahme erfolgreich.\nDas Image kann jetzt geflasht werden.
flashupdate.updatemode Updatemodus flashupdate.updatemode Updatemodus
flashupdate.updatemode_internet Internet flashupdate.updatemode_internet Internet
flashupdate.updatemode_manual von lokalem Update-Verzeichnis flashupdate.updatemode_manual von lokalem Update-Verzeichnis

View File

@@ -484,6 +484,9 @@ flashupdate.settings Update settings
flashupdate.squashfs.noversion SquashFS version checks are currently only supported when updating over the web.\nAre you sure that you wish to install this image? flashupdate.squashfs.noversion SquashFS version checks are currently only supported when updating over the web.\nAre you sure that you wish to install this image?
flashupdate.titlereadflash Reading Flash flashupdate.titlereadflash Reading Flash
flashupdate.titlewriteflash Writing Flash flashupdate.titlewriteflash Writing Flash
flashupdate.update_with_settings_processed Image is being processed...
flashupdate.update_with_settings_skipped Folder [%s] can not be saved. Entry is skipped.
flashupdate.update_with_settings_successfully Setting takeover successfully.\nThe image can now be flashed.
flashupdate.updatemode Updatemode flashupdate.updatemode Updatemode
flashupdate.updatemode_internet internet flashupdate.updatemode_internet internet
flashupdate.updatemode_manual from local update directory flashupdate.updatemode_manual from local update directory

View File

@@ -141,7 +141,7 @@ bool CExtUpdate::writemtdExt(const std::string & filename)
WRITE_UPDATE_LOG("ERROR: %s", err); WRITE_UPDATE_LOG("ERROR: %s", err);
return false; return false;
} }
ShowMsgUTF(LOCALE_MESSAGEBOX_INFO, "Settingsübernahme erfolgreich.\nDas Image kann jetzt geflasht werden.", CMessageBox::mbrOk, CMessageBox::mbOk, NEUTRINO_ICON_INFO); ShowMsgUTF(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_FLASHUPDATE_UPDATE_WITH_SETTINGS_SUCCESSFULLY), CMessageBox::mbrOk, CMessageBox::mbOk, NEUTRINO_ICON_INFO);
WRITE_UPDATE_LOG("\n"); WRITE_UPDATE_LOG("\n");
WRITE_UPDATE_LOG("##### Settings taken. #####\n"); WRITE_UPDATE_LOG("##### Settings taken. #####\n");
CFlashExpert::getInstance()->writemtd(filename, mtdNumber); CFlashExpert::getInstance()->writemtd(filename, mtdNumber);
@@ -152,7 +152,7 @@ bool CExtUpdate::writemtdExt(const std::string & filename)
bool CExtUpdate::writemtdExt() bool CExtUpdate::writemtdExt()
{ {
if(!hintBox) if(!hintBox)
hintBox = new CHintBox(LOCALE_MESSAGEBOX_INFO, "Image wird bearbeitet..."); hintBox = new CHintBox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_FLASHUPDATE_UPDATE_WITH_SETTINGS_PROCESSED));
hintBox->paint(); hintBox->paint();
mtdRamError = ""; mtdRamError = "";
std::string osrelease = ""; std::string osrelease = "";
@@ -468,7 +468,7 @@ bool CExtUpdate::readBackupList(const std::string & dstPath)
// special folders // special folders
else if ((line == "/") || (line == "/*") || (line == "/*.*") || (line.find("/dev") == 0) || (line.find("/proc") == 0) || else if ((line == "/") || (line == "/*") || (line == "/*.*") || (line.find("/dev") == 0) || (line.find("/proc") == 0) ||
(line.find("/sys") == 0) || (line.find("/mnt") == 0) || (line.find("/tmp") == 0)) { (line.find("/sys") == 0) || (line.find("/mnt") == 0) || (line.find("/tmp") == 0)) {
snprintf(buf, sizeof(buf), "Ordner [%s] kann nicht übertragen werden. Eintrag wird übersprungen.", line.c_str()); snprintf(buf, sizeof(buf), g_Locale->getText(LOCALE_FLASHUPDATE_UPDATE_WITH_SETTINGS_SKIPPED), line.c_str());
WRITE_UPDATE_LOG("%s%s", buf, "\n"); WRITE_UPDATE_LOG("%s%s", buf, "\n");
ShowMsgUTF(LOCALE_MESSAGEBOX_INFO, buf, CMessageBox::mbrOk, CMessageBox::mbOk, NEUTRINO_ICON_INFO); ShowMsgUTF(LOCALE_MESSAGEBOX_INFO, buf, CMessageBox::mbrOk, CMessageBox::mbOk, NEUTRINO_ICON_INFO);
continue; continue;

View File

@@ -511,6 +511,9 @@ typedef enum
LOCALE_FLASHUPDATE_SQUASHFS_NOVERSION, LOCALE_FLASHUPDATE_SQUASHFS_NOVERSION,
LOCALE_FLASHUPDATE_TITLEREADFLASH, LOCALE_FLASHUPDATE_TITLEREADFLASH,
LOCALE_FLASHUPDATE_TITLEWRITEFLASH, LOCALE_FLASHUPDATE_TITLEWRITEFLASH,
LOCALE_FLASHUPDATE_UPDATE_WITH_SETTINGS_PROCESSED,
LOCALE_FLASHUPDATE_UPDATE_WITH_SETTINGS_SKIPPED,
LOCALE_FLASHUPDATE_UPDATE_WITH_SETTINGS_SUCCESSFULLY,
LOCALE_FLASHUPDATE_UPDATEMODE, LOCALE_FLASHUPDATE_UPDATEMODE,
LOCALE_FLASHUPDATE_UPDATEMODE_INTERNET, LOCALE_FLASHUPDATE_UPDATEMODE_INTERNET,
LOCALE_FLASHUPDATE_UPDATEMODE_MANUAL, LOCALE_FLASHUPDATE_UPDATEMODE_MANUAL,

View File

@@ -511,6 +511,9 @@ const char * locale_real_names[] =
"flashupdate.squashfs.noversion", "flashupdate.squashfs.noversion",
"flashupdate.titlereadflash", "flashupdate.titlereadflash",
"flashupdate.titlewriteflash", "flashupdate.titlewriteflash",
"flashupdate.update_with_settings_processed",
"flashupdate.update_with_settings_skipped",
"flashupdate.update_with_settings_successfully",
"flashupdate.updatemode", "flashupdate.updatemode",
"flashupdate.updatemode_internet", "flashupdate.updatemode_internet",
"flashupdate.updatemode_manual", "flashupdate.updatemode_manual",