[libcalamaresui] Document accessors in Branding

- document accessors
 - put all path and directory accessors together
 - make simple accessors inline
 - rename "pathprefix" to "directory" to be consistent with others
This commit is contained in:
Adriaan de Groot 2018-05-22 05:21:20 -04:00
parent 47805209c6
commit 975004fc63
3 changed files with 18 additions and 35 deletions

View file

@ -257,7 +257,7 @@ WelcomePage::initLanguages()
if ( isTranslationAvailable )
CalamaresUtils::installTranslator( matchedLocale.name(),
Calamares::Branding::instance()->translationsPathPrefix(),
Calamares::Branding::instance()->translationsDirectory(),
qApp );
else
cWarning() << "No available translation matched" << defaultLocale;
@ -272,7 +272,7 @@ WelcomePage::initLanguages()
QLocale::setDefault( selectedLocale );
CalamaresUtils::installTranslator( selectedLocale,
Calamares::Branding::instance()->translationsPathPrefix(),
Calamares::Branding::instance()->translationsDirectory(),
qApp );
} );
}