mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-03 02:41:21 +02:00
@@ -513,6 +513,9 @@ typedef enum
|
||||
LOCALE_FLASHUPDATE_MD5SUMERROR,
|
||||
LOCALE_FLASHUPDATE_MENU_APPLY_KERNEL,
|
||||
LOCALE_FLASHUPDATE_MENU_APPLY_SETTINGS,
|
||||
LOCALE_FLASHUPDATE_MKFS_CREATE_IMAGE,
|
||||
LOCALE_FLASHUPDATE_MKFS_PREPARING_FILES,
|
||||
LOCALE_FLASHUPDATE_MKFS_USING_SUMTOOL,
|
||||
LOCALE_FLASHUPDATE_MSGBOX,
|
||||
LOCALE_FLASHUPDATE_MSGBOX_MANUAL,
|
||||
LOCALE_FLASHUPDATE_MTDSELECTOR,
|
||||
|
@@ -513,6 +513,9 @@ const char * locale_real_names[] =
|
||||
"flashupdate.md5sumerror",
|
||||
"flashupdate.menu_apply_kernel",
|
||||
"flashupdate.menu_apply_settings",
|
||||
"flashupdate.mkfs_create_image",
|
||||
"flashupdate.mkfs_preparing_files",
|
||||
"flashupdate.mkfs_using_sumtool",
|
||||
"flashupdate.msgbox",
|
||||
"flashupdate.msgbox_manual",
|
||||
"flashupdate.mtdselector",
|
||||
|
@@ -69,6 +69,9 @@
|
||||
#include <string>
|
||||
|
||||
#include "rbtree.h"
|
||||
#include <system/localize.h>
|
||||
|
||||
extern CLocaleManager *g_Locale;
|
||||
|
||||
#define PROGRAM_NAME "mkfs.jffs2"
|
||||
|
||||
@@ -1239,7 +1242,7 @@ bool CMkfsJFFS2::makeJffs2Image(std::string& path,
|
||||
if (progressBar != NULL) {
|
||||
progressBar->showLocalStatus(0);
|
||||
progressBar->showGlobalStatus(0);
|
||||
progressBar->showStatusMessageUTF("Read Files and Directories");
|
||||
progressBar->showStatusMessageUTF(g_Locale->getText(LOCALE_FLASHUPDATE_MKFS_PREPARING_FILES));
|
||||
}
|
||||
fse_root = recursive_add_host_directory(NULL, "/", cwd, skipSpezialFolders, progressBar);
|
||||
if (progressBar != NULL) {
|
||||
@@ -1264,11 +1267,12 @@ bool CMkfsJFFS2::makeJffs2Image(std::string& path,
|
||||
|
||||
if (progressBar != NULL) {
|
||||
progressBar->showLocalStatus(0);
|
||||
progressBar->showStatusMessageUTF("Create Image");
|
||||
progressBar->showStatusMessageUTF(g_Locale->getText(LOCALE_FLASHUPDATE_MKFS_CREATE_IMAGE));
|
||||
}
|
||||
create_target_filesystem(fse_root);
|
||||
if (progressBar != NULL) {
|
||||
progressBar->showGlobalStatus(90);
|
||||
progressBar->showStatusMessageUTF(g_Locale->getText(LOCALE_FLASHUPDATE_MKFS_USING_SUMTOOL));
|
||||
}
|
||||
if (printProgress)
|
||||
printProgressData(true);
|
||||
@@ -1280,7 +1284,6 @@ bool CMkfsJFFS2::makeJffs2Image(std::string& path,
|
||||
CSumtoolJFFS2 st;
|
||||
st.sumtool(imageName_, sumName_, eraseBlockSize, ((padFsSize==0)?0:1), addCleanmarkers, targetEndian);
|
||||
unlink(imageName_.c_str());
|
||||
sync();
|
||||
}
|
||||
if (progressBar != NULL) {
|
||||
paintProgressBar(true);
|
||||
|
Reference in New Issue
Block a user