Fix badly-formatted FPS counts (#2155).
authorCarl Hetherington <cth@carlh.net>
Tue, 28 Dec 2021 22:55:25 +0000 (23:55 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 28 Dec 2021 22:55:25 +0000 (23:55 +0100)
This was introduced in a2e41d9a95b6e0000f3a54f513214130f8b6ca9f
when a snprintf() was changed for a locale_convert().

src/lib/transcode_job.cc

index 68cd30e540df71787d43c63898b9b1532f437076..6e19854003ef207d724eb17520598738184863d8 100644 (file)
@@ -175,7 +175,7 @@ TranscodeJob::status () const
        auto status = String::compose(_("%1; %2/%3 frames"), Job::status(), _encoder->frames_done(), _film->length().frames_round(_film->video_frame_rate()));
        if (auto const fps = _encoder->current_rate()) {
                /// TRANSLATORS: fps here is an abbreviation for frames per second
-               status += String::compose(_("; %1 fps"), dcp::locale_convert<string>(*fps, 1));
+               status += String::compose(_("; %1 fps"), dcp::locale_convert<string>(*fps, 1, true));
        }
 
        return status;