[calamares] Install translator after loading settings
- means that also the *initial* translation can take settings into account, like -d loading local translations.
This commit is contained in:
parent
f233cac7a1
commit
50b6801d35
@ -59,8 +59,6 @@ CalamaresApplication::CalamaresApplication( int& argc, char* argv[] )
|
|||||||
setApplicationName( QStringLiteral( CALAMARES_APPLICATION_NAME ) );
|
setApplicationName( QStringLiteral( CALAMARES_APPLICATION_NAME ) );
|
||||||
setApplicationVersion( QStringLiteral( CALAMARES_VERSION ) );
|
setApplicationVersion( QStringLiteral( CALAMARES_VERSION ) );
|
||||||
|
|
||||||
CalamaresUtils::installTranslator( QLocale::system(), QString(), this );
|
|
||||||
|
|
||||||
QFont f = font();
|
QFont f = font();
|
||||||
CalamaresUtils::setDefaultFontSize( f.pointSize() );
|
CalamaresUtils::setDefaultFontSize( f.pointSize() );
|
||||||
}
|
}
|
||||||
@ -73,12 +71,13 @@ CalamaresApplication::init()
|
|||||||
cDebug() << "Calamares version:" << CALAMARES_VERSION;
|
cDebug() << "Calamares version:" << CALAMARES_VERSION;
|
||||||
cDebug() << " languages:" << QString( CALAMARES_TRANSLATION_LANGUAGES ).replace( ";", ", " );
|
cDebug() << " languages:" << QString( CALAMARES_TRANSLATION_LANGUAGES ).replace( ";", ", " );
|
||||||
|
|
||||||
setQuitOnLastWindowClosed( false );
|
|
||||||
|
|
||||||
initSettings();
|
initSettings();
|
||||||
initQmlPath();
|
initQmlPath();
|
||||||
initBranding();
|
initBranding();
|
||||||
|
|
||||||
|
CalamaresUtils::installTranslator( QLocale::system(), QString(), this );
|
||||||
|
|
||||||
|
setQuitOnLastWindowClosed( false );
|
||||||
setWindowIcon( QIcon( Calamares::Branding::instance()->imagePath( Calamares::Branding::ProductIcon ) ) );
|
setWindowIcon( QIcon( Calamares::Branding::instance()->imagePath( Calamares::Branding::ProductIcon ) ) );
|
||||||
|
|
||||||
cDebug() << "STARTUP: initSettings, initQmlPath, initBranding done";
|
cDebug() << "STARTUP: initSettings, initQmlPath, initBranding done";
|
||||||
|
Loading…
Reference in New Issue
Block a user