Added the interface language to mkvmerge's command line

The interface language selected in mmg must be inserted into
mkvmerge's command line. Otherwise it will use the environment's
default language.
This commit is contained in:
Moritz Bunkus 2009-02-10 22:38:45 +01:00
parent bdacad95bf
commit 154c5b0503

View File

@ -1309,6 +1309,14 @@ mmg_dialog::update_command_line() {
clargs.Add(wxT("UTF-8"));
clargs.Add(wxT("-o"));
clargs.Add(tc_output->GetValue());
#if defined(HAVE_LIBINTL_H)
if (!app->m_ui_locale.empty()) {
clargs.Add(wxT("--ui-language"));
clargs.Add(wxCS2WS(app->m_ui_locale));
}
#endif // HAVE_LIBINTL_H
args_start = clargs.Count();
if (options.priority != wxT("normal")) {