Commit 8e756cec authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

String updates ( some are meant to match the macosx interface and simplify translators' work)

parent 6a260a1c
...@@ -1294,7 +1294,7 @@ SyncControls::SyncControls( intf_thread_t *_p_intf, QWidget *_parent ) : ...@@ -1294,7 +1294,7 @@ SyncControls::SyncControls( intf_thread_t *_p_intf, QWidget *_parent ) :
updateButton = new QToolButton; updateButton = new QToolButton;
updateButton->setAutoRaise( true ); updateButton->setAutoRaise( true );
updateButton->setText( "u" ); updateButton->setText( "u" );
updateButton->setToolTip( qtr( "Force update of the values in this dialog" ) ); updateButton->setToolTip( qtr( "Force update of this dialog's values" ) );
mainLayout->addWidget( updateButton, 0, 4, 1, 1 ); mainLayout->addWidget( updateButton, 0, 4, 1, 1 );
......
...@@ -419,7 +419,7 @@ InfoPanel::InfoPanel( QWidget *parent, ...@@ -419,7 +419,7 @@ InfoPanel::InfoPanel( QWidget *parent,
QList<QTreeWidgetItem *> items; QList<QTreeWidgetItem *> items;
QLabel *topLabel = new QLabel( qtr( "Information about what your media or" QLabel *topLabel = new QLabel( qtr( "Information about what your media or"
" stream is made of.\n Muxer, Audio and Video Codecs, Subtitles " " stream is made of.\nMuxer, Audio and Video Codecs, Subtitles "
"are shown." ) ); "are shown." ) );
topLabel->setWordWrap( true ); topLabel->setWordWrap( true );
layout->addWidget( topLabel, 0, 0 ); layout->addWidget( topLabel, 0, 0 );
...@@ -492,8 +492,8 @@ InputStatsPanel::InputStatsPanel( QWidget *parent, ...@@ -492,8 +492,8 @@ InputStatsPanel::InputStatsPanel( QWidget *parent,
QList<QTreeWidgetItem *> items; QList<QTreeWidgetItem *> items;
QLabel *topLabel = new QLabel( qtr( "Various statistics about the current" QLabel *topLabel = new QLabel( qtr( "Statistics about the currently "
" media or stream.\n Played and streamed info are shown." ) ); "playing media or stream." ) );
topLabel->setWordWrap( true ); topLabel->setWordWrap( true );
layout->addWidget( topLabel, 0, 0 ); layout->addWidget( topLabel, 0, 0 );
...@@ -540,7 +540,7 @@ InputStatsPanel::InputStatsPanel( QWidget *parent, ...@@ -540,7 +540,7 @@ InputStatsPanel::InputStatsPanel( QWidget *parent,
CREATE_AND_ADD_TO_CAT( send_stat, qtr("Sent packets"), "0", streaming, "" ); CREATE_AND_ADD_TO_CAT( send_stat, qtr("Sent packets"), "0", streaming, "" );
CREATE_AND_ADD_TO_CAT( send_bytes_stat, qtr("Sent bytes"), CREATE_AND_ADD_TO_CAT( send_bytes_stat, qtr("Sent bytes"),
"0", streaming, "kB" ); "0", streaming, "kB" );
CREATE_AND_ADD_TO_CAT( send_bitrate_stat, qtr("Sent bitrates"), CREATE_AND_ADD_TO_CAT( send_bitrate_stat, qtr("Sent bitrate"),
"0", streaming, "kb/s" ); "0", streaming, "kb/s" );
CREATE_AND_ADD_TO_CAT( adecoded_stat, qtr("Decoded blocks"), CREATE_AND_ADD_TO_CAT( adecoded_stat, qtr("Decoded blocks"),
......
...@@ -81,7 +81,7 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) : ...@@ -81,7 +81,7 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
dialogBox->setSizeGripEnabled( false ); dialogBox->setSizeGripEnabled( false );
/* Add a tooltip */ /* Add a tooltip */
dialogBox->setToolTip( qtr( "Select one or multiple files, or a folder" ) ); dialogBox->setToolTip( qtr( "Select one or multiple files" ) );
// But hide the two OK/Cancel buttons. Enable them for debug. // But hide the two OK/Cancel buttons. Enable them for debug.
QDialogButtonBox *fileDialogAcceptBox = QDialogButtonBox *fileDialogAcceptBox =
...@@ -733,7 +733,7 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) : ...@@ -733,7 +733,7 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
/* Jack Main panel */ /* Jack Main panel */
/* Channels */ /* Channels */
QLabel *jackChannelsLabel = new QLabel( qtr( "Channels :" ) ); QLabel *jackChannelsLabel = new QLabel( qtr( "Channels:" ) );
jackDevLayout->addWidget( jackChannelsLabel, 1, 0 ); jackDevLayout->addWidget( jackChannelsLabel, 1, 0 );
jackChannels = new QSpinBox; jackChannels = new QSpinBox;
...@@ -746,7 +746,7 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) : ...@@ -746,7 +746,7 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
/* Jack Props panel */ /* Jack Props panel */
/* Selected ports */ /* Selected ports */
QLabel *jackPortsLabel = new QLabel( qtr( "Selected ports :" ) ); QLabel *jackPortsLabel = new QLabel( qtr( "Selected ports:" ) );
jackPropLayout->addWidget( jackPortsLabel, 0 , 0 ); jackPropLayout->addWidget( jackPortsLabel, 0 , 0 );
jackPortsSelected = new QLineEdit( qtr( ".*") ); jackPortsSelected = new QLineEdit( qtr( ".*") );
...@@ -754,7 +754,7 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) : ...@@ -754,7 +754,7 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
jackPropLayout->addWidget( jackPortsSelected, 0, 1 ); jackPropLayout->addWidget( jackPortsSelected, 0, 1 );
/* Caching */ /* Caching */
QLabel *jackCachingLabel = new QLabel( qtr( "Input caching :" ) ); QLabel *jackCachingLabel = new QLabel( qtr( "Input caching:" ) );
jackPropLayout->addWidget( jackCachingLabel, 1 , 0 ); jackPropLayout->addWidget( jackCachingLabel, 1 , 0 );
jackCaching = new QSpinBox; jackCaching = new QSpinBox;
setSpinBoxFreq( jackCaching ); setSpinBoxFreq( jackCaching );
......
...@@ -72,7 +72,7 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, ...@@ -72,7 +72,7 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i,
art->setMaximumWidth( 128 ); art->setMaximumWidth( 128 );
art->setScaledContents( true ); art->setScaledContents( true );
art->setPixmap( QPixmap( ":/noart.png" ) ); art->setPixmap( QPixmap( ":/noart.png" ) );
art->setToolTip( qtr( "Double click to get the media informations" ) ); art->setToolTip( qtr( "Double click to get media informations" ) );
artContLay->addWidget( art, 1 ); artContLay->addWidget( art, 1 );
......
...@@ -178,7 +178,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -178,7 +178,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
/****************************** /******************************
* VIDEO Panel Implementation * * VIDEO Panel Implementation *
******************************/ ******************************/
START_SPREFS_CAT( Video , qtr("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 );
...@@ -208,7 +208,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -208,7 +208,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
/****************************** /******************************
* AUDIO Panel Implementation * * AUDIO Panel Implementation *
******************************/ ******************************/
START_SPREFS_CAT( Audio, qtr("General audio settings") ); START_SPREFS_CAT( Audio, qtr("General Audio Settings") );
CONFIG_GENERIC( "audio", Bool, NULL, enableAudio ); CONFIG_GENERIC( "audio", Bool, NULL, enableAudio );
...@@ -347,7 +347,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -347,7 +347,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, qtr("Input & Codecs settings") ); START_SPREFS_CAT( InputAndCodecs, qtr("Input & Codecs Settings") );
/* Disk Devices */ /* Disk Devices */
{ {
...@@ -448,7 +448,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -448,7 +448,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
/******************* /*******************
* Interface Panel * * Interface Panel *
*******************/ *******************/
START_SPREFS_CAT( Interface, qtr("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 );
...@@ -507,7 +507,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -507,7 +507,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
#endif #endif
END_SPREFS_CAT; END_SPREFS_CAT;
START_SPREFS_CAT( Subtitles, qtr("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 );
......
...@@ -58,7 +58,7 @@ ExtendedDialog::ExtendedDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf ) ...@@ -58,7 +58,7 @@ ExtendedDialog::ExtendedDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
audioTab->addTab( spatial, qtr( "Spatializer" ) ); audioTab->addTab( spatial, qtr( "Spatializer" ) );
audioLayout->addWidget( audioTab ); audioLayout->addWidget( audioTab );
mainTabW->addTab( audioWidget, qtr( "Audio effects" ) ); mainTabW->addTab( audioWidget, qtr( "Audio Effects" ) );
/* Video Effects */ /* Video Effects */
QWidget *videoWidget = new QWidget; QWidget *videoWidget = new QWidget;
......
...@@ -59,7 +59,7 @@ GotoTimeDialog::GotoTimeDialog( QWidget *parent, intf_thread_t *_p_intf) ...@@ -59,7 +59,7 @@ GotoTimeDialog::GotoTimeDialog( QWidget *parent, intf_thread_t *_p_intf)
QGroupBox *timeGroupBox = new QGroupBox; QGroupBox *timeGroupBox = new QGroupBox;
QGridLayout *boxLayout = new QGridLayout( timeGroupBox ); QGridLayout *boxLayout = new QGridLayout( timeGroupBox );
QLabel *timeIntro = new QLabel( qtr( "Go to time:" ) ); QLabel *timeIntro = new QLabel( qtr( "Go to time" ) + ":" );
timeIntro->setWordWrap( true ); timeIntro->setWordWrap( true );
timeIntro->setAlignment( Qt::AlignCenter ); timeIntro->setAlignment( Qt::AlignCenter );
......
...@@ -99,7 +99,7 @@ AboutDialog::AboutDialog( QWidget *parent, intf_thread_t *_p_intf) ...@@ -99,7 +99,7 @@ AboutDialog::AboutDialog( QWidget *parent, intf_thread_t *_p_intf)
closeButton->setDefault( true ); closeButton->setDefault( true );
QLabel *introduction = new QLabel( QLabel *introduction = new QLabel(
qtr( "VLC media player " VERSION_MESSAGE ) ); qtr( "VLC media player" " " VERSION_MESSAGE ) );
QLabel *iconVLC = new QLabel; QLabel *iconVLC = new QLabel;
if( QDate::currentDate().dayOfYear() >= 354 ) if( QDate::currentDate().dayOfYear() >= 354 )
iconVLC->setPixmap( QPixmap( ":/vlc48-christmas.png" ) ); iconVLC->setPixmap( QPixmap( ":/vlc48-christmas.png" ) );
...@@ -124,7 +124,7 @@ AboutDialog::AboutDialog( QWidget *parent, intf_thread_t *_p_intf) ...@@ -124,7 +124,7 @@ AboutDialog::AboutDialog( QWidget *parent, intf_thread_t *_p_intf)
+ "Compiler: " + qfu( VLC_Compiler() ) + ".\n" + "Compiler: " + qfu( VLC_Compiler() ) + ".\n"
+ qtr( "Based on Git commit: " ) + qfu( VLC_Changeset() ) + ".\n" + qtr( "Based on Git commit: " ) + qfu( VLC_Changeset() ) + ".\n"
+ qtr( "You are using the Qt4 Interface.\n\n" ) + qtr( "You are using the Qt4 Interface.\n\n" )
+ qtr( "Copyright (c) " COPYRIGHT_YEARS " by the VideoLAN Team.\n" ) + qtr( "Copyright © " COPYRIGHT_YEARS " by the VideoLAN Team.\n" )
+ "vlc@videolan.org, http://www.videolan.org" ); + "vlc@videolan.org, http://www.videolan.org" );
infoLabel->setWordWrap( infoLabel ); infoLabel->setWordWrap( infoLabel );
......
...@@ -80,9 +80,9 @@ VLMDialog::VLMDialog( QWidget *parent, intf_thread_t *_p_intf ) : QVLCDialog( pa ...@@ -80,9 +80,9 @@ VLMDialog::VLMDialog( QWidget *parent, intf_thread_t *_p_intf ) : QVLCDialog( pa
/* Schedule Stuffs */ /* Schedule Stuffs */
QGridLayout *schetimelayout = new QGridLayout( ui.schedBox ); QGridLayout *schetimelayout = new QGridLayout( ui.schedBox );
QLabel *schetimelabel = new QLabel( qtr( "Hours/Minutes/Seconds:" ) ); QLabel *schetimelabel = new QLabel( qtr( "Hours / Minutes / Seconds:" ) );
schetimelayout->addWidget( schetimelabel, 0, 0 ); schetimelayout->addWidget( schetimelabel, 0, 0 );
QLabel *schedatelabel = new QLabel( qtr( "Day Month Year:" ) ); QLabel *schedatelabel = new QLabel( qtr( "Day / Month / Year:" ) );
schetimelayout->addWidget( schedatelabel, 1, 0 ); schetimelayout->addWidget( schedatelabel, 1, 0 );
QLabel *scherepeatLabel = new QLabel( qtr( "Repeat:" ) ); QLabel *scherepeatLabel = new QLabel( qtr( "Repeat:" ) );
schetimelayout->addWidget( scherepeatLabel, 2, 0 ); schetimelayout->addWidget( scherepeatLabel, 2, 0 );
......
...@@ -379,7 +379,7 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf, ...@@ -379,7 +379,7 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf,
/* FullScreen View */ /* FullScreen View */
action = menu->addAction( qtr( "Toggle Fullscreen Interface" ), mi, action = menu->addAction( qtr( "Toggle Fullscreen Interface" ), mi,
SLOT( toggleFullScreen() ), qtr( "F11" ) ); SLOT( toggleFullScreen() ), QString( "F11" ) );
/* Advanced Controls */ /* Advanced Controls */
action = menu->addAction( qtr( "Advanced controls" ), mi, action = menu->addAction( qtr( "Advanced controls" ), mi,
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<string>Form</string> <string>Form</string>
</property> </property>
<layout class="QVBoxLayout" > <layout class="QVBoxLayout" >
<item> <item>
<layout class="QHBoxLayout" > <layout class="QHBoxLayout" >
<property name="spacing" > <property name="spacing" >
<number>6</number> <number>6</number>
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<item> <item>
<widget class="QCheckBox" name="eq2PassCheck" > <widget class="QCheckBox" name="eq2PassCheck" >
<property name="text" > <property name="text" >
<string>_("2 pass")</string> <string>_("2 Pass")</string>
</property> </property>
</widget> </widget>
</item> </item>
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<property name="orientation" > <property name="orientation" >
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeHint" > <property name="sizeHint" stdset="0" >
<size> <size>
<width>40</width> <width>40</width>
<height>20</height> <height>20</height>
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
<property name="margin" > <property name="margin" >
<number>0</number> <number>0</number>
</property> </property>
<item row="1" column="0" colspan="2"> <item row="1" column="0" colspan="2" >
<widget class="QLabel" name="preampLabel" > <widget class="QLabel" name="preampLabel" >
<property name="text" > <property name="text" >
<string>_("Preamp")</string> <string>_("Preamp")</string>
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
<property name="orientation" > <property name="orientation" >
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeHint" > <property name="sizeHint" stdset="0" >
<size> <size>
<width>40</width> <width>40</width>
<height>20</height> <height>20</height>
......
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