Logging: format the multi-line warning about no-supported-languages
This commit is contained in:
parent
7195054bfd
commit
06739955bb
@ -1,6 +1,7 @@
|
||||
/* === This file is part of Calamares - <http://github.com/calamares> ===
|
||||
*
|
||||
* Copyright 2014-2016, Teo Mrnjavac <teo@kde.org>
|
||||
* Copyright 2017, Adriaan de Groot <groot@kde.org>
|
||||
*
|
||||
* Calamares is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -350,12 +351,14 @@ LocalePage::init( const QString& initialRegion,
|
||||
cDebug() << "WARNING: cannot acquire a list of available locales."
|
||||
<< "The locale and localecfg modules will be broken as long as this "
|
||||
"system does not provide"
|
||||
<< " * a /usr/share/i18n/SUPPORTED file"
|
||||
<< "\tOR"
|
||||
<< " * a well-formed /etc/locale.gen"
|
||||
<< "\tOR"
|
||||
<< " * a complete pre-compiled locale-gen database which allows complete locale -a output.";
|
||||
|
||||
<< "\n\t "
|
||||
<< "* a well-formed"
|
||||
<< supported.fileName()
|
||||
<< "\n\tOR"
|
||||
<< "* a well-formed"
|
||||
<< (localeGenPath.isEmpty() ? QLatin1Literal("/etc/locale.gen") : localeGenPath)
|
||||
<< "\n\tOR"
|
||||
<< "* a complete pre-compiled locale-gen database which allows complete locale -a output.";
|
||||
return; // something went wrong and there's nothing we can do about it.
|
||||
}
|
||||
|
||||
@ -437,14 +440,7 @@ LocalePage::guessLocaleConfiguration()
|
||||
// If we cannot say anything about available locales
|
||||
if ( m_localeGenLines.isEmpty() )
|
||||
{
|
||||
cDebug() << "WARNING: cannot acquire a list of available locales."
|
||||
<< "The locale and localecfg modules will be broken as long as this "
|
||||
"system does not provide"
|
||||
<< " * a /usr/share/i18n/SUPPORTED file"
|
||||
<< "\tOR"
|
||||
<< " * a well-formed /etc/locale.gen"
|
||||
<< "\tOR"
|
||||
<< " * a complete pre-compiled locale-gen database which allows complete locale -a output.";
|
||||
cDebug() << "WARNING: guessLocaleConfiguration can't guess from an empty list.";
|
||||
return LocaleConfiguration::createDefault();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user