Commit ef680434 authored by Christophe Mutricy's avatar Christophe Mutricy

i18n fixes

parent 954866c0
...@@ -64,17 +64,17 @@ MetaPanel::MetaPanel( QWidget *parent, intf_thread_t *_p_intf ) : ...@@ -64,17 +64,17 @@ MetaPanel::MetaPanel( QWidget *parent, intf_thread_t *_p_intf ) :
l->addWidget( genre_text, line, 1, 1, 6 ); l->addWidget( genre_text, line, 1, 1, 6 );
/* Date (Should be in years) */ /* Date (Should be in years) */
date_text = new QSpinBox; setSpinBounds( date_text ); date_text = new QSpinBox; setSpinBounds( date_text );
l->addWidget( new QLabel( qfu( VLC_META_DATE ) + " :" ), line, 7 ); l->addWidget( new QLabel( qtr( VLC_META_DATE ) + " :" ), line, 7 );
l->addWidget( date_text, line, 8, 1, 2 ); l->addWidget( date_text, line, 8, 1, 2 );
line++; line++;
/* Number and Rating */ /* Number and Rating */
l->addWidget( new QLabel( qfu( _("Track number/Position" ) ) + " :" ), l->addWidget( new QLabel( qtr( "Track number/Position" ) + " :" ),
line, 0 ); line, 0 );
seqnum_text = new QSpinBox; setSpinBounds( seqnum_text ); seqnum_text = new QSpinBox; setSpinBounds( seqnum_text );
l->addWidget( seqnum_text, line, 1, 1, 4 ); l->addWidget( seqnum_text, line, 1, 1, 4 );
l->addWidget( new QLabel( qfu( VLC_META_RATING ) + " :" ), line, 5 ); l->addWidget( new QLabel( qtr( VLC_META_RATING ) + " :" ), line, 5 );
rating_text = new QSpinBox; setSpinBounds( rating_text) ; rating_text = new QSpinBox; setSpinBounds( rating_text) ;
l->addWidget( rating_text, line, 6, 1, 4 ); l->addWidget( rating_text, line, 6, 1, 4 );
line++; line++;
...@@ -85,7 +85,7 @@ MetaPanel::MetaPanel( QWidget *parent, intf_thread_t *_p_intf ) : ...@@ -85,7 +85,7 @@ MetaPanel::MetaPanel( QWidget *parent, intf_thread_t *_p_intf ) :
l->addWidget( new QLabel( qfu( VLC_META_LANGUAGE ) + " :" ), line, 0 ); l->addWidget( new QLabel( qfu( VLC_META_LANGUAGE ) + " :" ), line, 0 );
language_text = new QLineEdit; language_text = new QLineEdit;
l->addWidget( language_text, line, 1, 1, 4 ); l->addWidget( language_text, line, 1, 1, 4 );
l->addWidget( new QLabel( qfu( VLC_META_SETTING ) + " :" ), line, 5 ); l->addWidget( new QLabel( qtr( VLC_META_SETTING ) + " :" ), line, 5 );
setting_text = new QLineEdit; setting_text = new QLineEdit;
l->addWidget( setting_text, line, 6, 1, 4 ); l->addWidget( setting_text, line, 6, 1, 4 );
line++; line++;
......
...@@ -138,7 +138,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -138,7 +138,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
{ \ { \
Ui::SPrefs ## name ui; \ Ui::SPrefs ## name ui; \
ui.setupUi( panel ); \ ui.setupUi( panel ); \
panel_label->setText( qtr( label ) ); panel_label->setText( label );
#define END_SPREFS_CAT \ #define END_SPREFS_CAT \
break; \ break; \
...@@ -166,7 +166,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -166,7 +166,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
switch( number ) switch( number )
{ {
/* Video Panel Implementation */ /* Video Panel Implementation */
START_SPREFS_CAT( Video , "General video settings" ); START_SPREFS_CAT( Video , qtr("General video settings") );
CONFIG_GENERIC( "video", Bool, NULL, enableVideo ); CONFIG_GENERIC( "video", Bool, NULL, enableVideo );
CONFIG_GENERIC( "fullscreen", Bool, NULL, fullscreen ); CONFIG_GENERIC( "fullscreen", Bool, NULL, fullscreen );
...@@ -195,7 +195,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -195,7 +195,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
END_SPREFS_CAT; END_SPREFS_CAT;
/* Audio Panel Implementation */ /* Audio Panel Implementation */
START_SPREFS_CAT( Audio, "General audio settings" ); START_SPREFS_CAT( Audio, qtr("General audio settings") );
#ifdef WIN32 #ifdef WIN32
ui.OSSBrowse->hide(); ui.OSSBrowse->hide();
ui.OSSDevice->hide(); ui.OSSDevice->hide();
...@@ -236,7 +236,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -236,7 +236,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
END_SPREFS_CAT; END_SPREFS_CAT;
/* Input and Codecs Panel Implementation */ /* Input and Codecs Panel Implementation */
START_SPREFS_CAT( InputAndCodecs, "Input & Codecs settings" ); START_SPREFS_CAT( InputAndCodecs, qtr("Input & Codecs settings") );
/* Disk Devices */ /* Disk Devices */
/* CONFIG_GENERIC( );*/ //FIXME /* CONFIG_GENERIC( );*/ //FIXME
...@@ -260,7 +260,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -260,7 +260,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
END_SPREFS_CAT; END_SPREFS_CAT;
/* Interface Panel */ /* Interface Panel */
START_SPREFS_CAT( Interface, "Interface settings" ); START_SPREFS_CAT( Interface, qtr("Interface settings") );
ui.defaultLabel->setFont( italicFont ); ui.defaultLabel->setFont( italicFont );
ui.skinsLabel->setFont( italicFont ); ui.skinsLabel->setFont( italicFont );
...@@ -295,7 +295,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -295,7 +295,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
#endif #endif
END_SPREFS_CAT; END_SPREFS_CAT;
START_SPREFS_CAT( Subtitles, "Subtitles & OSD settings" ); START_SPREFS_CAT( Subtitles, qtr("Subtitles & OSD settings") );
CONFIG_GENERIC( "osd", Bool, NULL, OSDBox); CONFIG_GENERIC( "osd", Bool, NULL, OSDBox);
CONFIG_GENERIC( "subsdec-encoding", StringList, NULL, encoding ); CONFIG_GENERIC( "subsdec-encoding", StringList, NULL, encoding );
......
...@@ -61,8 +61,9 @@ PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf ) ...@@ -61,8 +61,9 @@ PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
types->setAlignment( Qt::AlignHCenter ); types->setAlignment( Qt::AlignHCenter );
QHBoxLayout *types_l = new QHBoxLayout(0); QHBoxLayout *types_l = new QHBoxLayout(0);
types_l->setSpacing( 3 ); types_l->setMargin( 3 ); types_l->setSpacing( 3 ); types_l->setMargin( 3 );
small = new QRadioButton( "Basic", types ); types_l->addWidget( small ); small = new QRadioButton( qtr("Basic"), types );
all = new QRadioButton( "All", types ); types_l->addWidget( all ); types_l->addWidget( small );
all = new QRadioButton( qtr("All"), types ); types_l->addWidget( all );
types->setLayout( types_l ); types->setLayout( types_l );
small->setChecked( true ); small->setChecked( true );
......
...@@ -68,10 +68,10 @@ vlc_module_begin(); ...@@ -68,10 +68,10 @@ vlc_module_begin();
add_integer( CFG_PREFIX "color", 0x00FF0000, NULL, COLOR_TEXT, add_integer( CFG_PREFIX "color", 0x00FF0000, NULL, COLOR_TEXT,
COLOR_LONGTEXT, VLC_FALSE ); COLOR_LONGTEXT, VLC_FALSE );
change_integer_list( pi_color_values, ppsz_color_descriptions, 0 ); change_integer_list( pi_color_values, ppsz_color_descriptions, 0 );
add_integer( CFG_PREFIX "saturationthres", 20, NULL, "saturaton threshold", add_integer( CFG_PREFIX "saturationthres", 20, NULL,
"", VLC_FALSE ); _("Saturaton threshold"), "", VLC_FALSE );
add_integer( CFG_PREFIX "similaritythres", 15, NULL, "similarity threshold", add_integer( CFG_PREFIX "similaritythres", 15, NULL,
"", VLC_FALSE ); _("Similarity threshold"), "", VLC_FALSE );
set_callbacks( Create, Destroy ); set_callbacks( Create, Destroy );
vlc_module_end(); vlc_module_end();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment