Commit 4f6fb365 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

String updates from tonsofpcs

parent 3d2c8734
...@@ -81,9 +81,9 @@ MessagesDialog::MessagesDialog( intf_thread_t *_p_intf) ...@@ -81,9 +81,9 @@ MessagesDialog::MessagesDialog( intf_thread_t *_p_intf)
/* Buttons and general layout */ /* Buttons and general layout */
QPushButton *closeButton = new QPushButton( qtr( "&Close" ) ); QPushButton *closeButton = new QPushButton( qtr( "&Close" ) );
closeButton->setDefault( true ); closeButton->setDefault( true );
clearUpdateButton = new QPushButton( qtr( "&Clear" ) ); clearUpdateButton = new QPushButton( qtr( "C&lear" ) );
saveLogButton = new QPushButton( qtr( "&Save as..." ) ); saveLogButton = new QPushButton( qtr( "&Save as..." ) );
saveLogButton->setToolTip( qtr( "Save all the displayed logs to a file" ) ); saveLogButton->setToolTip( qtr( "Saves all the displayed logs to a file" ) );
verbosityBox = new QSpinBox(); verbosityBox = new QSpinBox();
verbosityBox->setRange( 0, 2 ); verbosityBox->setRange( 0, 2 );
...@@ -246,7 +246,7 @@ void MessagesDialog::clear() ...@@ -246,7 +246,7 @@ void MessagesDialog::clear()
bool MessagesDialog::save() bool MessagesDialog::save()
{ {
QString saveLogFileName = QFileDialog::getSaveFileName( QString saveLogFileName = QFileDialog::getSaveFileName(
this, qtr( "Select a name for the logs file" ), this, qtr( "Save log file as..." ),
qfu( config_GetHomeDir() ), qfu( config_GetHomeDir() ),
qtr( "Texts / Logs (*.log *.txt);; All (*.*) ") ); qtr( "Texts / Logs (*.log *.txt);; All (*.*) ") );
...@@ -255,7 +255,7 @@ bool MessagesDialog::save() ...@@ -255,7 +255,7 @@ bool MessagesDialog::save()
QFile file( saveLogFileName ); QFile file( saveLogFileName );
if ( !file.open( QFile::WriteOnly | QFile::Text ) ) { if ( !file.open( QFile::WriteOnly | QFile::Text ) ) {
QMessageBox::warning( this, qtr( "Application" ), QMessageBox::warning( this, qtr( "Application" ),
qtr( "Cannot write file %1:\n%2." ) qtr( "Cannot write to file %1:\n%2." )
.arg( saveLogFileName ) .arg( saveLogFileName )
.arg( file.errorString() ) ); .arg( file.errorString() ) );
return false; return false;
......
...@@ -34,7 +34,7 @@ PodcastConfigDialog::PodcastConfigDialog( QWidget *parent, intf_thread_t *_p_int ...@@ -34,7 +34,7 @@ PodcastConfigDialog::PodcastConfigDialog( QWidget *parent, intf_thread_t *_p_int
{ {
ui.setupUi( this ); ui.setupUi( this );
ui.podcastDelete->setToolTip( qtr( "Delete the selected item" ) ); ui.podcastDelete->setToolTip( qtr( "Deletes the selected item" ) );
QPushButton *okButton = new QPushButton( qtr( "&Close" ), this ); QPushButton *okButton = new QPushButton( qtr( "&Close" ), this );
QPushButton *cancelButton = new QPushButton( qtr( "&Cancel" ), this ); QPushButton *cancelButton = new QPushButton( qtr( "&Cancel" ), this );
ui.okCancel->addButton( okButton, QDialogButtonBox::AcceptRole ); ui.okCancel->addButton( okButton, QDialogButtonBox::AcceptRole );
......
...@@ -68,10 +68,10 @@ PrefsDialog::PrefsDialog( QWidget *parent, intf_thread_t *_p_intf ) ...@@ -68,10 +68,10 @@ PrefsDialog::PrefsDialog( QWidget *parent, intf_thread_t *_p_intf )
QHBoxLayout *types_l = new QHBoxLayout; QHBoxLayout *types_l = new QHBoxLayout;
types_l->setSpacing( 3 ); types_l->setMargin( 3 ); types_l->setSpacing( 3 ); types_l->setMargin( 3 );
small = new QRadioButton( qtr( "Simple" ), types ); small = new QRadioButton( qtr( "Simple" ), types );
small->setToolTip( qtr( "Switch to simple preferences" ) ); small->setToolTip( qtr( "Switch to simple preferences view" ) );
types_l->addWidget( small ); types_l->addWidget( small );
all = new QRadioButton( qtr("All"), types ); types_l->addWidget( all ); all = new QRadioButton( qtr("All"), types ); types_l->addWidget( all );
all->setToolTip( qtr( "Switch to complete preferences" ) ); all->setToolTip( qtr( "Switch to full preferences view" ) );
types->setLayout( types_l ); types->setLayout( types_l );
small->setChecked( true ); small->setChecked( true );
...@@ -351,8 +351,7 @@ void PrefsDialog::reset() ...@@ -351,8 +351,7 @@ void PrefsDialog::reset()
int ret = QMessageBox::question( int ret = QMessageBox::question(
this, this,
qtr( "Reset Preferences" ), qtr( "Reset Preferences" ),
qtr( "This will reset your VLC media player preferences.\n" qtr( "Are you sure you want to reset your VLC media player preferences?" ),
"Are you sure you want to continue?" ),
QMessageBox::Ok | QMessageBox::Cancel, QMessageBox::Ok | QMessageBox::Cancel,
QMessageBox::Ok); QMessageBox::Ok);
......
...@@ -234,7 +234,7 @@ SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf, ...@@ -234,7 +234,7 @@ SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf,
ui.mrlEdit->setToolTip ( qtr( "Stream output string.\n" ui.mrlEdit->setToolTip ( qtr( "Stream output string.\n"
"This is automatically generated " "This is automatically generated "
"when you change the above settings,\n" "when you change the above settings,\n"
"but you can update it manually." ) ) ; "but you can change it manually." ) ) ;
// /* Connect everything to the updateMRL function */ // /* Connect everything to the updateMRL function */
#define CB( x ) CONNECT( ui.x, toggled( bool ), this, updateMRL() ); #define CB( x ) CONNECT( ui.x, toggled( bool ), this, updateMRL() );
...@@ -286,7 +286,7 @@ SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf, ...@@ -286,7 +286,7 @@ SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf,
void SoutDialog::fileBrowse() void SoutDialog::fileBrowse()
{ {
QString fileName = QFileDialog::getSaveFileName( this, qtr( "Save file" ), "", QString fileName = QFileDialog::getSaveFileName( this, qtr( "Save file..." ), "",
qtr( "Containers (*.ps *.ts *.mpg *.ogg *.asf *.mp4 *.mov *.wav *.raw *.flv)" ) ); qtr( "Containers (*.ps *.ts *.mpg *.ogg *.asf *.mp4 *.mov *.wav *.raw *.flv)" ) );
ui.fileEdit->setText( fileName ); ui.fileEdit->setText( fileName );
updateMRL(); updateMRL();
......
...@@ -130,10 +130,10 @@ VLMDialog::VLMDialog( QWidget *parent, intf_thread_t *_p_intf ) : QVLCDialog( pa ...@@ -130,10 +130,10 @@ VLMDialog::VLMDialog( QWidget *parent, intf_thread_t *_p_intf ) : QVLCDialog( pa
new QSpacerItem( 10, 10, QSizePolicy::Minimum, QSizePolicy::Expanding); new QSpacerItem( 10, 10, QSizePolicy::Minimum, QSizePolicy::Expanding);
vlmItemLayout->addItem( spacer ); vlmItemLayout->addItem( spacer );
QPushButton *importButton = new QPushButton( qtr( "Import" ) ); QPushButton *importButton = new QPushButton( qtr( "I&mport" ) );
ui.buttonBox->addButton( importButton, QDialogButtonBox::ActionRole ); ui.buttonBox->addButton( importButton, QDialogButtonBox::ActionRole );
QPushButton *exportButton = new QPushButton( qtr( "Export" ) ); QPushButton *exportButton = new QPushButton( qtr( "E&xport" ) );
ui.buttonBox->addButton( exportButton, QDialogButtonBox::ActionRole ); ui.buttonBox->addButton( exportButton, QDialogButtonBox::ActionRole );
QPushButton *closeButton = new QPushButton( qtr( "&Close" ) ); QPushButton *closeButton = new QPushButton( qtr( "&Close" ) );
...@@ -263,7 +263,7 @@ void VLMDialog::addVLMItem() ...@@ -263,7 +263,7 @@ void VLMDialog::addVLMItem()
bool VLMDialog::exportVLMConf() bool VLMDialog::exportVLMConf()
{ {
QString saveVLMConfFileName = QFileDialog::getSaveFileName( QString saveVLMConfFileName = QFileDialog::getSaveFileName(
this, qtr( "Choose a filename to save the VLM configuration..." ), this, qtr( "Save VLM configuration as..." ),
qfu( config_GetHomeDir() ), qfu( config_GetHomeDir() ),
qtr( "VLM conf (*.vlm) ;; All (*.*)" ) ); qtr( "VLM conf (*.vlm) ;; All (*.*)" ) );
...@@ -333,7 +333,7 @@ void VLMDialog::mediasPopulator() ...@@ -333,7 +333,7 @@ void VLMDialog::mediasPopulator()
bool VLMDialog::importVLMConf() bool VLMDialog::importVLMConf()
{ {
QString openVLMConfFileName = QFileDialog::getOpenFileName( QString openVLMConfFileName = QFileDialog::getOpenFileName(
this, qtr( "Open a VLM Configuration File" ), this, qtr( "Open VLM configuration..." ),
qfu( config_GetHomeDir() ), qfu( config_GetHomeDir() ),
qtr( "VLM conf (*.vlm) ;; All (*.*)" ) ); qtr( "VLM conf (*.vlm) ;; All (*.*)" ) );
......
...@@ -455,7 +455,7 @@ void DialogsProvider::MLAppendDir() ...@@ -455,7 +455,7 @@ void DialogsProvider::MLAppendDir()
****************/ ****************/
void DialogsProvider::openAPlaylist() void DialogsProvider::openAPlaylist()
{ {
QStringList files = showSimpleOpen( qtr( "Open playlist file" ), QStringList files = showSimpleOpen( qtr( "Open playlist..." ),
EXT_FILTER_PLAYLIST ); EXT_FILTER_PLAYLIST );
foreach( QString file, files ) foreach( QString file, files )
{ {
...@@ -466,7 +466,7 @@ void DialogsProvider::openAPlaylist() ...@@ -466,7 +466,7 @@ void DialogsProvider::openAPlaylist()
void DialogsProvider::saveAPlaylist() void DialogsProvider::saveAPlaylist()
{ {
QFileDialog *qfd = new QFileDialog( NULL, QFileDialog *qfd = new QFileDialog( NULL,
qtr( "Choose a filename to save playlist" ), qtr( "Save playlist as..." ),
qfu( p_intf->p_sys->psz_filepath ), qfu( p_intf->p_sys->psz_filepath ),
qtr( "XSPF playlist (*.xspf);; " ) + qtr( "XSPF playlist (*.xspf);; " ) +
qtr( "M3U playlist (*.m3u);; Any (*.*) " ) ); qtr( "M3U playlist (*.m3u);; Any (*.*) " ) );
...@@ -626,7 +626,7 @@ void DialogsProvider::loadSubtitlesFile() ...@@ -626,7 +626,7 @@ void DialogsProvider::loadSubtitlesFile()
char *sep = strrchr( path, DIR_SEP_CHAR ); char *sep = strrchr( path, DIR_SEP_CHAR );
if( sep ) if( sep )
*sep = '\0'; *sep = '\0';
QStringList qsl = showSimpleOpen( qtr( "Open subtitles file" ), QStringList qsl = showSimpleOpen( qtr( "Open subtitles..." ),
EXT_FILTER_SUBTITLE, EXT_FILTER_SUBTITLE,
path ); path );
free( path ); free( path );
......
...@@ -486,13 +486,13 @@ int MainInterface::privacyDialog( QList<ConfigControl *> *controls ) ...@@ -486,13 +486,13 @@ int MainInterface::privacyDialog( QList<ConfigControl *> *controls )
QLabel *text = new QLabel( qtr( QLabel *text = new QLabel( qtr(
"<p>The <i>VideoLAN Team</i> doesn't like when an application goes " "<p>The <i>VideoLAN Team</i> doesn't like when an application goes "
"online without authorization.</p>\n " "online without authorization.</p>\n "
"<p><i>VLC media player</i> can request limited information on " "<p><i>VLC media player</i> can retreive limited information from "
"the Internet, especially to get CD covers or to know " "the Internet in order to get CD covers or to check "
"if updates are available.</p>\n" "for available updates.</p>\n"
"<p><i>VLC media player</i> <b>DOES NOT</b> send or collect <b>ANY</b> " "<p><i>VLC media player</i> <b>DOES NOT</b> send or collect <b>ANY</b> "
"information, even anonymously, about your usage.</p>\n" "information, even anonymously, about your usage.</p>\n"
"<p>Therefore please check the following options, the default being " "<p>Therefore please select from the following options, the default being "
"almost no access on the web.</p>\n") ); "almost no access to the web.</p>\n") );
text->setWordWrap( true ); text->setWordWrap( true );
text->setTextFormat( Qt::RichText ); text->setTextFormat( Qt::RichText );
......
...@@ -490,7 +490,7 @@ QMenu *QVLCMenu::VideoMenu( intf_thread_t *p_intf, QMenu *current ) ...@@ -490,7 +490,7 @@ QMenu *QVLCMenu::VideoMenu( intf_thread_t *p_intf, QMenu *current )
QMenu *submenu = new QMenu( qtr( "&Subtitles Track" ), current ); QMenu *submenu = new QMenu( qtr( "&Subtitles Track" ), current );
action = current->addMenu( submenu ); action = current->addMenu( submenu );
action->setData( "spu-es" ); action->setData( "spu-es" );
addDPStaticEntry( submenu, qtr( "Load File..." ), "", "", addDPStaticEntry( submenu, qtr( "Open File..." ), "", "",
SLOT( loadSubtitlesFile() ) ); SLOT( loadSubtitlesFile() ) );
submenu->addSeparator(); submenu->addSeparator();
......
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