diff --git a/data/locale/deutsch.locale b/data/locale/deutsch.locale index 09b445d1d..9dd4b45c5 100644 --- a/data/locale/deutsch.locale +++ b/data/locale/deutsch.locale @@ -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) diff --git a/data/locale/english.locale b/data/locale/english.locale index c61b29047..af747cb90 100644 --- a/data/locale/english.locale +++ b/data/locale/english.locale @@ -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) diff --git a/src/gui/hdd_menu.cpp b/src/gui/hdd_menu.cpp index e1ee63f33..7b9e0c734 100644 --- a/src/gui/hdd_menu.cpp +++ b/src/gui/hdd_menu.cpp @@ -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); diff --git a/src/system/locals.h b/src/system/locals.h index 958e0d76a..a38cf9c63 100644 --- a/src/system/locals.h +++ b/src/system/locals.h @@ -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, diff --git a/src/system/locals_intern.h b/src/system/locals_intern.h index 73cd38ef2..d8bf9e571 100644 --- a/src/system/locals_intern.h +++ b/src/system/locals_intern.h @@ -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",