mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 10:55:46 -05:00
[welcome] Log if no translations matched at all
This commit is contained in:
parent
d9a1f6b18b
commit
e2b8fb0afe
1 changed files with 4 additions and 0 deletions
|
@ -162,6 +162,7 @@ WelcomePage::initLanguages()
|
||||||
QLocale thisLocale = ui->languageWidget->itemData( i, Qt::UserRole ).toLocale();
|
QLocale thisLocale = ui->languageWidget->itemData( i, Qt::UserRole ).toLocale();
|
||||||
if ( thisLocale == QLocale( QLocale::English, QLocale::UnitedStates ) )
|
if ( thisLocale == QLocale( QLocale::English, QLocale::UnitedStates ) )
|
||||||
{
|
{
|
||||||
|
isTranslationAvailable = true;
|
||||||
ui->languageWidget->setCurrentIndex( i );
|
ui->languageWidget->setCurrentIndex( i );
|
||||||
cDebug() << "Translation unavailable, so initial locale set to " << thisLocale.name();
|
cDebug() << "Translation unavailable, so initial locale set to " << thisLocale.name();
|
||||||
QLocale::setDefault( thisLocale );
|
QLocale::setDefault( thisLocale );
|
||||||
|
@ -173,6 +174,9 @@ WelcomePage::initLanguages()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( !isTranslationAvailable )
|
||||||
|
cWarning() << "No available translation matched" << defaultLocale;
|
||||||
|
|
||||||
connect( ui->languageWidget,
|
connect( ui->languageWidget,
|
||||||
static_cast< void ( QComboBox::* )( int ) >( &QComboBox::currentIndexChanged ),
|
static_cast< void ( QComboBox::* )( int ) >( &QComboBox::currentIndexChanged ),
|
||||||
this, [ & ]( int newIndex )
|
this, [ & ]( int newIndex )
|
||||||
|
|
Loading…
Add table
Reference in a new issue