|
|
|
@ -481,6 +481,16 @@ LocalePage::prettyLCLocale( const QString& lcLocale ) const
|
|
|
|
|
.arg( QLocale::countryToString( locale.country() ) );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
LocalePage::updateGlobalLocale()
|
|
|
|
|
{
|
|
|
|
|
auto *gs = Calamares::JobQueue::instance()->globalStorage();
|
|
|
|
|
const QString bcp47 = m_selectedLocaleConfiguration.toBcp47();
|
|
|
|
|
gs->insert( "locale", bcp47 );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
LocalePage::updateGlobalStorage()
|
|
|
|
|
{
|
|
|
|
@ -493,8 +503,7 @@ LocalePage::updateGlobalStorage()
|
|
|
|
|
gs->insert( "locationRegion", location.region );
|
|
|
|
|
gs->insert( "locationZone", location.zone );
|
|
|
|
|
|
|
|
|
|
const QString bcp47 = m_selectedLocaleConfiguration.toBcp47();
|
|
|
|
|
gs->insert( "locale", bcp47 );
|
|
|
|
|
updateGlobalLocale();
|
|
|
|
|
|
|
|
|
|
// If we're in chroot mode (normal install mode), then we immediately set the
|
|
|
|
|
// timezone on the live system. When debugging timezones, don't bother.
|
|
|
|
|