mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 17:05:36 -04:00
[libcalamares] Make logging more consistent
This commit is contained in:
parent
8bb07528e2
commit
aaeea16871
3 changed files with 7 additions and 7 deletions
|
@ -285,11 +285,11 @@ gettext_path()
|
|||
QDir ldir( localedir );
|
||||
if ( ldir.cd( lang ) )
|
||||
{
|
||||
cDebug() << " .. Found" << lang << "in" << ldir.canonicalPath();
|
||||
cDebug() << Logger::SubEntry << "Found" << lang << "in" << ldir.canonicalPath();
|
||||
return bp::object( localedir.toStdString() );
|
||||
}
|
||||
}
|
||||
cDebug() << " .. No translation found for languages" << candidateLanguages;
|
||||
cDebug() << Logger::SubEntry << "No translation found for languages" << candidateLanguages;
|
||||
return bp::object(); // None
|
||||
}
|
||||
|
||||
|
|
|
@ -228,11 +228,11 @@ installTranslator( const QLocale& locale,
|
|||
"_",
|
||||
brandingTranslationsDir.absolutePath() ) )
|
||||
{
|
||||
cDebug() << " .. Branding using locale:" << localeName;
|
||||
cDebug() << Logger::SubEntry << "Branding using locale:" << localeName;
|
||||
}
|
||||
else
|
||||
{
|
||||
cDebug() << " .. Branding using default, system locale not found:" << localeName;
|
||||
cDebug() << Logger::SubEntry << "Branding using default, system locale not found:" << localeName;
|
||||
translator->load( brandingTranslationsPrefix + "en" );
|
||||
}
|
||||
|
||||
|
@ -251,11 +251,11 @@ installTranslator( const QLocale& locale,
|
|||
translator = new QTranslator( parent );
|
||||
if ( translator->load( QString( ":/lang/calamares_" ) + localeName ) )
|
||||
{
|
||||
cDebug() << " .. Calamares using locale:" << localeName;
|
||||
cDebug() << Logger::SubEntry << "Calamares using locale:" << localeName;
|
||||
}
|
||||
else
|
||||
{
|
||||
cDebug() << " .. Calamares using default, system locale not found:" << localeName;
|
||||
cDebug() << Logger::SubEntry << "Calamares using default, system locale not found:" << localeName;
|
||||
translator->load( QString( ":/lang/calamares_en" ) );
|
||||
}
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ System::instance()
|
|||
if ( !s_instance )
|
||||
{
|
||||
cError() << "No Calamares system-object has been created.";
|
||||
cError() << " .. using a bogus instance instead.";
|
||||
cError() << Logger::SubEntry << "using a bogus instance instead.";
|
||||
return new System( true, nullptr );
|
||||
}
|
||||
return s_instance;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue