Use standard units and abbreviations in frontend
authorWuzzy <almikes@aol.com>
Wed, 12 Apr 2017 22:04:32 +0200
changeset 12244 8db93a3a29dc
parent 12243 41267eea2f96
child 12245 88b31fdc760b
Use standard units and abbreviations in frontend Replaces things like “fps”, “Kbps”, “m” (for minute), etc.
QTfrontend/ui/page/pageoptions.cpp
QTfrontend/util/LibavInteraction.cpp
--- 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)