![]() |
Sayonara Player
|
language namespace More...
Functions | |
QString | getSharePath (const QString &fourLetter) |
get the complete path to a language file out of the share directory More... | |
QString | getFtpPath (const QString &fourLetter) |
get the complete path to a language file out of the ftp directory More... | |
QString | getHttpPath (const QString &fourLetter) |
get the complete http url to a language file More... | |
QString | getChecksumFtpPath () |
Returns the path where checksums can be fetched from. More... | |
QString | getChecksumHttpPath () |
Returns the path where checksums can be fetched from. More... | |
QString | getHomeTargetPath (const QString &fourLetter) |
get_home_target_path More... | |
QString | getUsedLanguageFile (const QString &fourLetter) |
Returns the correct language file either from share dir or home dir. More... | |
QString | getIconPath (const QString &fourLetter) |
Returns the icon path in share directory. More... | |
QString | extractLanguageCode (const QString &languageFile) |
Extracts the language Code out of a sayonara_lang string. More... | |
QString | getChecksum (const QString &fourLetter) |
calculates the checksum for the currently used language file (either home or share directory) More... | |
QString | getLanguageVersion (const QString &fourLetter) |
Get the language version out of translations/versions file in home dir. More... | |
void | updateLanguageVersion (const QString &fourLetter) |
Update language version in translations/versions file to current Sayonara Version. More... | |
bool | isOutdated (const QString &fourLetter) |
Returns if the language version in translations/versions file is smaller than the current sayonara version. More... | |
QString | getSimilarLanguage4 (const QString &fourLetter) |
get_similar_language_4 More... | |
QLocale | getCurrentLocale () |
get the current selected locale based on the current language file More... | |
QStringList | getCurrentQtTranslationPaths () |
get all qt paths which include translations More... | |
bool | importLanguageFile (const QString &filename) |
Imports a qm file. The filename must contain a valid four or two letter code. More... | |
language namespace
QLocale Util::Language::getCurrentLocale | ( | ) |
get the current selected locale based on the current language file
QStringList Util::Language::getCurrentQtTranslationPaths | ( | ) |
get all qt paths which include translations
bool Util::Language::importLanguageFile | ( | const QString & | filename | ) |
Imports a qm file. The filename must contain a valid four or two letter code.
filename |