Use standard units and abbreviations in frontend
Replaces things like “fps”, “Kbps”, “m” (for minute), etc.
--- a/QTfrontend/ui/page/pageoptions.cpp Wed Apr 12 21:34:02 2017 +0200
+++ b/QTfrontend/ui/page/pageoptions.cpp Wed Apr 12 22:04:32 2017 +0200
@@ -828,7 +828,8 @@
// label for Bitrate
QLabel *labelBitrate = new QLabel(groupVideoRec);
- labelBitrate->setText(QLabel::tr("Bitrate (Kbps)"));
+ //: “Kibit/s” is the symbol for 1024 bits per second
+ labelBitrate->setText(QLabel::tr("Bitrate (Kibit/s)"));
groupVideoRec->layout()->addWidget(labelBitrate, 6, 2);
// bitrate
@@ -836,6 +837,7 @@
bitrateBox = new QSpinBox(groupVideoRec);
bitrateBox->setRange(100, 5000);
bitrateBox->setSingleStep(100);
+ bitrateBox->setWhatsThis(QSpinBox::tr("Specify the bitrate of recorded videos as a multiple of 1024 bits per second"));
groupVideoRec->layout()->addWidget(bitrateBox, 6, 3);
// button 'set default options'
--- a/QTfrontend/util/LibavInteraction.cpp Wed Apr 12 21:34:02 2017 +0200
+++ b/QTfrontend/util/LibavInteraction.cpp Wed Apr 12 22:04:32 2017 +0200
@@ -291,7 +291,8 @@
return "";
int s = float(pContext->duration)/AV_TIME_BASE;
- QString desc = tr("Duration: %1m %2s").arg(s/60).arg(s%60) + "\n";
+ //: Duration in minutes and seconds (SI units)
+ QString desc = tr("Duration: %1min %2s").arg(s/60).arg(s%60) + "\n";
for (int i = 0; i < (int)pContext->nb_streams; i++)
{
AVStream* pStream = pContext->streams[i];
@@ -307,7 +308,7 @@
if (pStream->avg_frame_rate.den)
{
float fps = float(pStream->avg_frame_rate.num)/pStream->avg_frame_rate.den;
- desc += QString(tr("%1 fps")).arg(fps, 0, 'f', 2) + ", ";
+ desc += QString(tr("%1 FPS")).arg(fps, 0, 'f', 2) + ", ";
}
}
else if (pCodec->codec_type == AVMEDIA_TYPE_AUDIO)