Locale: translate OK, Cancel buttons in language selection (reported on IRC)
This commit is contained in:
parent
073196822a
commit
4cd564655a
@ -41,7 +41,7 @@ LCLocaleDialog::LCLocaleDialog( const QString& guessedLCLocale,
|
||||
upperText->setText( tr( "The system locale setting affects the language and character "
|
||||
"set for some command line user interface elements.<br/>"
|
||||
"The current setting is <strong>%1</strong>." )
|
||||
.arg( guessedLCLocale ) );
|
||||
.arg( guessedLCLocale ) );
|
||||
mainLayout->addWidget( upperText );
|
||||
setMinimumWidth( upperText->fontMetrics().height() * 24 );
|
||||
|
||||
@ -61,8 +61,11 @@ LCLocaleDialog::LCLocaleDialog( const QString& guessedLCLocale,
|
||||
}
|
||||
|
||||
QDialogButtonBox* dbb = new QDialogButtonBox( QDialogButtonBox::Ok | QDialogButtonBox::Cancel,
|
||||
Qt::Horizontal,
|
||||
this );
|
||||
Qt::Horizontal,
|
||||
this );
|
||||
dbb->button( QDialogButtonBox::Cancel )->setText( tr( "&Cancel" ) );
|
||||
dbb->button( QDialogButtonBox::Ok )->setText( tr( "&OK" ) );
|
||||
|
||||
mainLayout->addWidget( dbb );
|
||||
|
||||
connect( dbb->button( QDialogButtonBox::Ok ), &QPushButton::clicked,
|
||||
@ -83,9 +86,7 @@ LCLocaleDialog::LCLocaleDialog( const QString& guessedLCLocale,
|
||||
} );
|
||||
|
||||
if ( selected > -1 )
|
||||
{
|
||||
m_localesWidget->setCurrentRow( selected );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user