[libcalamares] Move more into the locale service

- Use namespace CalamaresUtils::Locale consistently for this service.
 - Move locale-related non-GUI support code from the Welcome module
   to libcalamares; these are generally useful. Both Label (naming a locale)
   and LabelModel (managing a bunch of those Labels) have been moved.
This commit is contained in:
Adriaan de Groot 2019-05-10 11:46:20 -04:00
parent b490e30a5e
commit 18ed4c74ef
12 changed files with 93 additions and 75 deletions

View file

@ -154,7 +154,7 @@ WelcomeViewStep::setCountry( const QString& countryCode )
return;
}
auto c_l = Calamares::countryData( countryCode );
auto c_l = CalamaresUtils::Locale::countryData( countryCode );
if ( c_l.first == QLocale::Country::AnyCountry )
{
cDebug() << "Unusable country code" << countryCode;