Add relevant strings.
This commit is contained in:
parent
6cb072acc4
commit
ddfb8dfbc5
@ -20,6 +20,7 @@
|
|||||||
|
|
||||||
#include <QBoxLayout>
|
#include <QBoxLayout>
|
||||||
#include <QDialogButtonBox>
|
#include <QDialogButtonBox>
|
||||||
|
#include <QLabel>
|
||||||
#include <QListWidget>
|
#include <QListWidget>
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
|
|
||||||
@ -29,10 +30,20 @@ LCLocaleDialog::LCLocaleDialog( const QString& guessedLCLocale,
|
|||||||
: QDialog( parent )
|
: QDialog( parent )
|
||||||
{
|
{
|
||||||
setModal( true );
|
setModal( true );
|
||||||
|
setWindowTitle( tr( "System locale setting" ) );
|
||||||
|
|
||||||
QBoxLayout* mainLayout = new QVBoxLayout;
|
QBoxLayout* mainLayout = new QVBoxLayout;
|
||||||
setLayout( mainLayout );
|
setLayout( mainLayout );
|
||||||
|
|
||||||
|
QLabel* upperText = new QLabel( this );
|
||||||
|
upperText->setWordWrap( true );
|
||||||
|
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 <b>%1</b>." )
|
||||||
|
.arg( guessedLCLocale ) );
|
||||||
|
mainLayout->addWidget( upperText );
|
||||||
|
setMinimumWidth( upperText->fontMetrics().height() * 24 );
|
||||||
|
|
||||||
m_localesWidget = new QListWidget( this );
|
m_localesWidget = new QListWidget( this );
|
||||||
m_localesWidget->addItems( localeGenLines );
|
m_localesWidget->addItems( localeGenLines );
|
||||||
m_localesWidget->setSelectionMode( QAbstractItemView::SingleSelection );
|
m_localesWidget->setSelectionMode( QAbstractItemView::SingleSelection );
|
||||||
|
Loading…
Reference in New Issue
Block a user