mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
hdd_menu: better error message
...when trying to check unsupported file system type
This commit is contained in:
committed by
svenhoefer
parent
a25bc90d7b
commit
64a61f5aa2
@@ -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)
|
||||
|
@@ -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)
|
||||
|
@@ -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);
|
||||
|
@@ -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,
|
||||
|
@@ -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",
|
||||
|
Reference in New Issue
Block a user