Locale: translate OK, Cancel buttons in language selection (reported on IRC)

This commit is contained in:
Adriaan de Groot 2017-09-04 07:57:20 -04:00 committed by Philip
parent 073196822a
commit 4cd564655a

View File

@ -63,6 +63,9 @@ LCLocaleDialog::LCLocaleDialog( const QString& guessedLCLocale,
QDialogButtonBox* dbb = new QDialogButtonBox( QDialogButtonBox::Ok | QDialogButtonBox::Cancel, QDialogButtonBox* dbb = new QDialogButtonBox( QDialogButtonBox::Ok | QDialogButtonBox::Cancel,
Qt::Horizontal, Qt::Horizontal,
this ); this );
dbb->button( QDialogButtonBox::Cancel )->setText( tr( "&Cancel" ) );
dbb->button( QDialogButtonBox::Ok )->setText( tr( "&OK" ) );
mainLayout->addWidget( dbb ); mainLayout->addWidget( dbb );
connect( dbb->button( QDialogButtonBox::Ok ), &QPushButton::clicked, connect( dbb->button( QDialogButtonBox::Ok ), &QPushButton::clicked,
@ -83,10 +86,8 @@ LCLocaleDialog::LCLocaleDialog( const QString& guessedLCLocale,
} ); } );
if ( selected > -1 ) if ( selected > -1 )
{
m_localesWidget->setCurrentRow( selected ); m_localesWidget->setCurrentRow( selected );
} }
}
QString QString