[vlmc-devel] commit: MediaCellView: Fixing translation problems. (Hugo Beauzee-Luyssen )

git at videolan.org git at videolan.org
Thu Mar 25 11:06:56 CET 2010


vlmc | branch: master | Hugo Beauzee-Luyssen <beauze.h at gmail.com> | Thu Mar 25 11:06:43 2010 +0100| [c60e37711970a9327c263c99ccd1490a4862b6e5] | committer: Hugo Beauzee-Luyssen 

MediaCellView: Fixing translation problems.

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=c60e37711970a9327c263c99ccd1490a4862b6e5
---

 src/Gui/library/MediaCellView.cpp   |    6 ++++--
 src/Gui/library/ui/MediaCellView.ui |    6 +++---
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/Gui/library/MediaCellView.cpp b/src/Gui/library/MediaCellView.cpp
index 435a327..16cc4ab 100644
--- a/src/Gui/library/MediaCellView.cpp
+++ b/src/Gui/library/MediaCellView.cpp
@@ -92,6 +92,8 @@ void MediaCellView::changeEvent( QEvent *e )
     {
     case QEvent::LanguageChange:
         m_ui->retranslateUi( this );
+        nbClipUpdated();
+        setLength( m_clip->lengthSecond() * 1000 );
         break;
     default:
         break;
@@ -118,15 +120,15 @@ MediaCellView::nbClipUpdated()
         m_ui->clipCount->hide();
         m_ui->clipCountLabel->hide();
         m_ui->arrow->hide();
-        m_ui->clipCount->setText( "0" );
     }
     else
     {
         m_ui->clipCount->show();
         m_ui->clipCountLabel->show();
         m_ui->arrow->show();
-        m_ui->clipCount->setText( QString::number( nbClips ) );
     }
+    //Use QString::number in any case, so we use the current locale.
+    m_ui->clipCount->setText( QString::number( nbClips ) );
 }
 
 void
diff --git a/src/Gui/library/ui/MediaCellView.ui b/src/Gui/library/ui/MediaCellView.ui
index e9a9e3d..7a5f1ad 100644
--- a/src/Gui/library/ui/MediaCellView.ui
+++ b/src/Gui/library/ui/MediaCellView.ui
@@ -118,7 +118,7 @@
           </font>
          </property>
          <property name="text">
-          <string>Media Title</string>
+          <string notr="true">Media Title</string>
          </property>
          <property name="alignment">
           <set>Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing</set>
@@ -155,7 +155,7 @@
               </font>
              </property>
              <property name="text">
-              <string>0</string>
+              <string notr="true">0</string>
              </property>
              <property name="alignment">
               <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
@@ -185,7 +185,7 @@
               </font>
              </property>
              <property name="text">
-              <string>0</string>
+              <string notr="true">0</string>
              </property>
              <property name="alignment">
               <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>



More information about the Vlmc-devel mailing list