diff --git a/ChangeLog b/ChangeLog index 0f81ea9d9..4b7da2c00 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2009-03-25 Moritz Bunkus + * mmg: bug fix: The job manager's status output was garbled if mmg + was run with another language as English. + * mmg: bug fix: The progress bar for each individual job in the job dialog wasn't updated if mmg was run with another language as English. diff --git a/src/mmg/jobs.cpp b/src/mmg/jobs.cpp index f96404908..995bd741f 100644 --- a/src/mmg/jobs.cpp +++ b/src/mmg/jobs.cpp @@ -243,7 +243,7 @@ job_run_dialog::on_end_process(wxProcessEvent &evt) { int ndx = jobs_to_start[current_job]; int exit_code = evt.GetExitCode(); - const wxChar *status; + wxString status; if (abort) { jobs[ndx].status = JOBS_ABORTED; @@ -261,8 +261,7 @@ job_run_dialog::on_end_process(wxProcessEvent &evt) { jobs[ndx].finished_on = wxGetUTCTime(); - wxString format = Z("Finished job ID %d on %s: status '%s'"); - add_to_log(wxString::Format(format, jobs[ndx].id, format_date_time(jobs[ndx].finished_on).c_str(), status)); + add_to_log(wxString::Format(Z("Finished job ID %d on %s: status '%s'"), jobs[ndx].id, format_date_time(jobs[ndx].finished_on).c_str(), status.c_str())); mdlg->save_job_queue(); delete process;