merge: use proper singular/plural versions for error message for #1420

This commit is contained in:
Moritz Bunkus 2015-09-05 08:12:43 +02:00
parent f30daa4363
commit 8c2b139489
2 changed files with 4 additions and 2 deletions

View File

@ -76,7 +76,8 @@ ac3_packetizer_c::get_frame() {
m_packet_extensions.push_back(std::make_shared<before_adding_to_cluster_cb_packet_extension_c>([this, bytes](packet_cptr const &packet, int64_t timecode_offset) {
mxwarn_tid(m_ti.m_fname, m_ti.m_id,
boost::format("%1% %2%\n")
% (boost::format(Y("This audio track contains %1% bytes of invalid data which were skipped before timecode %2%.")) % bytes % format_timecode(packet->assigned_timecode - timecode_offset))
% (boost::format(NY("This audio track contains %1% byte of invalid data which was skipped before timecode %2%.",
"This audio track contains %1% bytes of invalid data which were skipped before timecode %2%.", bytes)) % bytes % format_timecode(packet->assigned_timecode - timecode_offset))
% Y("The audio/video synchronization may have been lost."));
}));
}

View File

@ -67,7 +67,8 @@ mp3_packetizer_c::handle_garbage(int64_t bytes) {
m_packet_extensions.push_back(std::make_shared<before_adding_to_cluster_cb_packet_extension_c>([this, bytes](packet_cptr const &packet, int64_t timecode_offset) {
mxwarn_tid(m_ti.m_fname, m_ti.m_id,
boost::format("%1% %2%\n")
% (boost::format(Y("This audio track contains %1% bytes of invalid data which were skipped before timecode %2%.")) % bytes % format_timecode(packet->assigned_timecode - timecode_offset))
% (boost::format(NY("This audio track contains %1% byte of invalid data which was skipped before timecode %2%.",
"This audio track contains %1% bytes of invalid data which were skipped before timecode %2%.", bytes)) % bytes % format_timecode(packet->assigned_timecode - timecode_offset))
% Y("The audio/video synchronization may have been lost."));
}));
}