diff options
| -rw-r--r-- | src/lib/job.cc | 20 | ||||
| -rw-r--r-- | src/lib/transcoder.cc | 2 | ||||
| -rw-r--r-- | src/wx/subtitle_panel.cc | 2 |
3 files changed, 19 insertions, 5 deletions
diff --git a/src/lib/job.cc b/src/lib/job.cc index 167692863..dba21f91c 100644 --- a/src/lib/job.cc +++ b/src/lib/job.cc @@ -34,6 +34,7 @@ #include <boost/thread.hpp> #include <boost/filesystem.hpp> #include <boost/foreach.hpp> +#include <boost/date_time/posix_time/posix_time.hpp> #include <iostream> #include "i18n.h" @@ -411,9 +412,22 @@ Job::status () const s += buffer; if (t > 10 && r > 0) { - /// TRANSLATORS: remaining here follows an amount of time that is remaining - /// on an operation. - s += "; " + seconds_to_approximate_hms (r) + " " + _("remaining"); + boost::posix_time::ptime now = boost::posix_time::second_clock::local_time(); + boost::posix_time::ptime finish = now + boost::posix_time::seconds(r); + char finish_string[6]; + snprintf (finish_string, sizeof(finish_string), "%02d:%02d", finish.time_of_day().hours(), finish.time_of_day().minutes()); + string day; + if (now.date() != finish.date()) { + /// TRANSLATORS: the %1 in this string will be filled in with a day of the week + /// to say what day a job will finish. + day = String::compose (_(" on %1"), finish.date().day_of_week().as_long_string()); + } + /// TRANSLATORS: "remaining; finishing at" here follows an amount of time that is remaining + /// on an operation; after it is an estimated wall-clock completion time. + s += String::compose( + _("; %1 remaining; finishing at %2%3"), + seconds_to_approximate_hms(r), finish_string, day + ); } } else if (finished_ok ()) { s = String::compose (_("OK (ran for %1)"), seconds_to_hms (_ran_for)); diff --git a/src/lib/transcoder.cc b/src/lib/transcoder.cc index c667a1486..ee099c7df 100644 --- a/src/lib/transcoder.cc +++ b/src/lib/transcoder.cc @@ -74,7 +74,7 @@ Transcoder::go () { shared_ptr<Job> job = _job.lock (); DCPOMATIC_ASSERT (job); - job->sub (_("Encoding picture and sound")); + job->sub (_("Encoding")); } DCPTime const frame = DCPTime::from_frames (1, _film->video_frame_rate ()); diff --git a/src/wx/subtitle_panel.cc b/src/wx/subtitle_panel.cc index b4c031ed0..91e2847dd 100644 --- a/src/wx/subtitle_panel.cc +++ b/src/wx/subtitle_panel.cc @@ -154,7 +154,7 @@ SubtitlePanel::SubtitlePanel (ContentPanel* p) _y_scale->Bind (wxEVT_SPINCTRL, boost::bind (&SubtitlePanel::y_scale_changed, this)); _line_spacing->Bind (wxEVT_SPINCTRL, boost::bind (&SubtitlePanel::line_spacing_changed, this)); _language->Bind (wxEVT_TEXT, boost::bind (&SubtitlePanel::language_changed, this)); - _stream->Bind (wxEVT_CHOICE, boost::bind (&SubtitlePanel::stream_changed, this)); + _stream->Bind (wxEVT_CHOICE, boost::bind (&SubtitlePanel::stream_changed, this)); _subtitle_view_button->Bind (wxEVT_BUTTON, boost::bind (&SubtitlePanel::subtitle_view_clicked, this)); _fonts_dialog_button->Bind (wxEVT_BUTTON, boost::bind (&SubtitlePanel::fonts_dialog_clicked, this)); _appearance_dialog_button->Bind (wxEVT_BUTTON, boost::bind (&SubtitlePanel::appearance_dialog_clicked, this)); |
