hdd_menu: better error message

...when trying to check unsupported file system type
This commit is contained in:
Stefan Seyfried
2014-02-23 17:57:02 +01:00
committed by svenhoefer
parent a25bc90d7b
commit 64a61f5aa2
5 changed files with 7 additions and 1 deletions

View File

@@ -621,6 +621,7 @@ hdd_format Formatiere Festplatte
hdd_format_failed Formatierung fehlgeschlagen
hdd_format_warn Formatierung wird gestartet
hdd_fs Dateisystem zum formatieren
hdd_fs_unknown unbekannt
hdd_manage Laufwerke verwalten
hdd_middle Mittel
hdd_noise Akustikkontrolle (AAM)

View File

@@ -621,6 +621,7 @@ hdd_format Formating drive...
hdd_format_failed Formating failed!
hdd_format_warn Start format...
hdd_fs Filesystem used to format
hdd_fs_unknown unknown
hdd_manage Manage drives
hdd_middle Mid
hdd_noise Acoustic-control (AAM)

View File

@@ -2,7 +2,7 @@
Neutrino-GUI - DBoxII-Project
Copyright (C) 2001 Steffen Hehn 'McClean'
Copyright (C) 2010-2012 Stefan Seyfried
Copyright (C) 2010-2014 Stefan Seyfried
License: GPL
@@ -617,6 +617,8 @@ int CHDDChkExec::exec(CMenuTarget* /*parent*/, const std::string& key)
((fmt_type == "ext4") && (!ext4FsckBinaryExist) && (!e2fsckBinaryExist))) {
char msg1[512], msg2[512];
if (fmt_type.empty())
fmt_type = g_Locale->getText(LOCALE_HDD_FS_UNKNOWN);
snprintf(msg1, sizeof(msg1)-1, "%s", g_Locale->getText(LOCALE_HDD_CHECK_FORMAT_BAD));
snprintf(msg2, sizeof(msg2)-1, msg1, fmt_type.c_str());
hintbox = new CHintBox(LOCALE_HDD_CHECK, msg2);

View File

@@ -648,6 +648,7 @@ typedef enum
LOCALE_HDD_FORMAT_FAILED,
LOCALE_HDD_FORMAT_WARN,
LOCALE_HDD_FS,
LOCALE_HDD_FS_UNKNOWN,
LOCALE_HDD_MANAGE,
LOCALE_HDD_MIDDLE,
LOCALE_HDD_NOISE,

View File

@@ -648,6 +648,7 @@ const char * locale_real_names[] =
"hdd_format_failed",
"hdd_format_warn",
"hdd_fs",
"hdd_fs_unknown",
"hdd_manage",
"hdd_middle",
"hdd_noise",