Less confusion to translators
authorunc0rr
Wed, 05 Jun 2013 00:26:22 +0400
changeset 9107 4dde5fecffe2
parent 9105 18ebb59c89fe
child 9109 878f06e9c484
Less confusion to translators
QTfrontend/ui/page/pagevideos.cpp
QTfrontend/util/LibavInteraction.cpp
--- a/QTfrontend/ui/page/pagevideos.cpp	Tue Jun 04 23:58:42 2013 +0400
+++ b/QTfrontend/ui/page/pagevideos.cpp	Wed Jun 05 00:26:22 2013 +0400
@@ -508,8 +508,8 @@
     else
     {
         QString path = item->path();
-        desc += tr("Date: %1\n").arg(QFileInfo(path).created().toString(Qt::DefaultLocaleLongDate));
-        desc += tr("Size: %1\n").arg(FileSizeStr(path));
+        desc += tr("Date: %1").arg(QFileInfo(path).created().toString(Qt::DefaultLocaleLongDate)) + "\n";
+        desc += tr("Size: %1").arg(FileSizeStr(path)) + "\n";
         if (item->desc.isEmpty())
         {
             // Extract description from file;
--- a/QTfrontend/util/LibavInteraction.cpp	Tue Jun 04 23:58:42 2013 +0400
+++ b/QTfrontend/util/LibavInteraction.cpp	Wed Jun 05 00:26:22 2013 +0400
@@ -278,7 +278,7 @@
         return "";
 
     int s = float(pContext->duration)/AV_TIME_BASE;
-    QString desc = QString(tr("Duration: %1m %2s\n")).arg(s/60).arg(s%60);
+    QString desc = tr("Duration: %1m %2s").arg(s/60).arg(s%60) + "\n";
     for (int i = 0; i < (int)pContext->nb_streams; i++)
     {
         AVStream* pStream = pContext->streams[i];
@@ -290,11 +290,11 @@
 
         if (pCodec->codec_type == AVMEDIA_TYPE_VIDEO)
         {
-            desc += QString(tr("Video: %1x%2, ")).arg(pCodec->width).arg(pCodec->height);
+            desc += QString(tr("Video: %1x%2")).arg(pCodec->width).arg(pCodec->height) + ", ";
             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)