#include "arraylist.h"
#include "batchrender.h"
#include "bcsignals.h"
+#include "cstrdup.h"
#include "edl.h"
#include "file.h"
#include "filexml.h"
batch_path[0] = 0;
deamon_path[0] = 0;
Units::init();
-
+ const char *lang = getenv("LANGUAGE");
+ if( lang ) lang = cstrdup(lang);
File::init_cin_path();
const char *locale_path = File::get_locale_path();
const char *cin = File::get_cin();
}
if( restart <= 0 )
done = 1;
-
mwindow.save_defaults();
mwindow.save_undo_data();
//PRINT_TRACE
}
if( restart < 0 ) {
+ if( lang ) // reset to cmdline state
+ setenv("LANGUAGE", lang, 1);
+ else
+ unsetenv("LANGUAGE");
char exe_path[BCTEXTLEN];
int len = readlink("/proc/self/exe", exe_path, sizeof(exe_path)-1);
if( len < 0 ) break;
}
filenames.remove_all_objects();
+ delete [] lang;
Units::finit();
BC_WindowBase::finit_resources();