]> git.sesse.net Git - vlc/commitdiff
Show utf-8 as utf-8, eg translations in playlistpanel.
authorIlkka Ollakka <ileoo@videolan.org>
Mon, 12 May 2008 11:29:42 +0000 (14:29 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Mon, 12 May 2008 11:29:42 +0000 (14:29 +0300)
also add _("ID") instead of empty label on first label (seems that it's id)

modules/gui/qt4/components/playlist/playlist_item.cpp
modules/gui/qt4/components/playlist/sorting.h
modules/gui/qt4/components/playlist/standardpanel.cpp

index dcb598cb34ab50dd7456ff34540b11ed9d9e236f..fd25e3efefd7fd17b797738911e4388660fecfec 100644 (file)
@@ -116,7 +116,7 @@ void PLItem::updateColumnHeaders()
     for( uint32_t i_index=1; i_index < COLUMN_END; i_index <<= 1 )
     {
         if( i_showflags & i_index )
-            item_col_strings.append( psz_column_title( i_index ) );
+            item_col_strings.append( qfu( psz_column_title( i_index ) ) );
     }
 }
 
@@ -187,7 +187,7 @@ void PLItem::update( playlist_item_t *p_item, bool iscurrent )
         if( parentItem->i_showflags & i_index )
         {
             char *psz = psz_column_meta( p_item->p_input, i_index );
-            item_col_strings.append( psz );
+            item_col_strings.append( qfu( psz ) );
             free( psz );
         }
     }
index d226040045d61616fb27dd0d0bb2541585d4242c..78cda9b2ed343f25cb6ed61d9945aeb173036cb5 100644 (file)
@@ -43,7 +43,7 @@ static const char * psz_column_title( uint32_t i_column )
 {
     switch( i_column )
     {
-    case COLUMN_NUMBER:          return "";
+    case COLUMN_NUMBER:          return _("ID");
     case COLUMN_TITLE:           return VLC_META_TITLE;
     case COLUMN_DURATION:        return _("Duration");
     case COLUMN_ARTIST:          return VLC_META_ARTIST;
index d420ac0e518e54bcbbba5be13bb679347784da5b..a8b0cf09e0d354c0eef165b9d2e0663466b4ede6 100644 (file)
@@ -267,9 +267,8 @@ void StandardPLPanel::popupSelectColumn( QPoint pos )
 
     QMenu selectColMenu;
 
-    char *psz_title;
 #define ADD_META_ACTION( meta ) {                                              \
-    QAction* option = selectColMenu.addAction( psz_column_title( meta ) );     \
+    QAction* option = selectColMenu.addAction( qfu( psz_column_title( meta ) ) );     \
     option->setCheckable( true );                                              \
     option->setChecked( model->shownFlags() & meta );                          \
     ContextUpdateMapper->setMapping( option, meta );                           \