Locale: translate OK, Cancel buttons in language selection (reported on IRC)
This commit is contained in:
parent
073196822a
commit
4cd564655a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user