[vlc-commits] qt: do not translate meta labels twice (refs #21516)

Rémi Denis-Courmont git at videolan.org
Tue Dec 4 21:10:48 CET 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Dec  4 22:09:47 2018 +0200| [e1a9badce1025d06132a0c99ebdf23c0da4a2020] | committer: Rémi Denis-Courmont

qt: do not translate meta labels twice (refs #21516)

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

 modules/gui/qt/components/info_panels.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt/components/info_panels.cpp b/modules/gui/qt/components/info_panels.cpp
index 4f86cb7f80..5ea566012c 100644
--- a/modules/gui/qt/components/info_panels.cpp
+++ b/modules/gui/qt/components/info_panels.cpp
@@ -72,7 +72,7 @@ MetaPanel::MetaPanel( QWidget *parent,
     QLabel *label;
 
 #define ADD_META( string, widget, col, colspan ) {                        \
-    label = new QLabel( qtr( string ) ); label->setFont( smallFont );     \
+    label = new QLabel( string ); label->setFont( smallFont );     \
     label->setContentsMargins( 3, 2, 0, 0 );                              \
     metaLayout->addWidget( label, line++, col, 1, colspan );              \
     widget = new QLineEdit;                                               \
@@ -86,7 +86,7 @@ MetaPanel::MetaPanel( QWidget *parent,
     ADD_META( VLC_META_ALBUM, collection_text, 0, 7 );
 
     /* Date */
-    label = new QLabel( qtr( VLC_META_DATE ) );
+    label = new QLabel( VLC_META_DATE );
     label->setFont( smallFont ); label->setContentsMargins( 3, 2, 0, 0 );
     metaLayout->addWidget( label, line - 1, 7, 1, 2 );
 
@@ -103,7 +103,7 @@ MetaPanel::MetaPanel( QWidget *parent,
     ADD_META( VLC_META_GENRE, genre_text, 0, 7 );
 
     /* Number - on the same line */
-    label = new QLabel( qtr( VLC_META_TRACK_NUMBER ) );
+    label = new QLabel( VLC_META_TRACK_NUMBER );
     label->setFont( smallFont ); label->setContentsMargins( 3, 2, 0, 0 );
     metaLayout->addWidget( label, line - 1, 7, 1, 3  );
 



More information about the vlc-commits mailing list