methods to keep convenience between translations
More...
methods to keep convenience between translations
◆ extractLanguageCode()
QString Util::Language::extractLanguageCode |
( |
const QString & |
languageFile | ) |
|
Extracts the language Code out of a sayonara_lang string.
- Parameters
-
language_file | filename containing sayonara_lang |
- Returns
- four or two letter code
◆ getChecksum()
QString Util::Language::getChecksum |
( |
const QString & |
fourLetter | ) |
|
calculates the checksum for the currently used language file (either home or share directory)
- Parameters
-
- Returns
- md5 checksum
◆ getChecksumFtpPath()
QString Util::Language::getChecksumFtpPath |
( |
| ) |
|
Returns the path where checksums can be fetched from.
- Returns
- ftp url
◆ getChecksumHttpPath()
QString Util::Language::getChecksumHttpPath |
( |
| ) |
|
Returns the path where checksums can be fetched from.
- Returns
- http url
◆ getFtpPath()
QString Util::Language::getFtpPath |
( |
const QString & |
fourLetter | ) |
|
get the complete path to a language file out of the ftp directory
- Parameters
-
- Returns
◆ getHomeTargetPath()
QString Util::Language::getHomeTargetPath |
( |
const QString & |
fourLetter | ) |
|
get_home_target_path
- Parameters
-
- Returns
◆ getHttpPath()
QString Util::Language::getHttpPath |
( |
const QString & |
fourLetter | ) |
|
get the complete http url to a language file
- Parameters
-
- Returns
◆ getIconPath()
QString Util::Language::getIconPath |
( |
const QString & |
fourLetter | ) |
|
Returns the icon path in share directory.
- Parameters
-
- Returns
◆ getLanguageVersion()
QString Util::Language::getLanguageVersion |
( |
const QString & |
fourLetter | ) |
|
Get the language version out of translations/versions file in home dir.
- Parameters
-
- Returns
- Sayonara version where the file belongs to
◆ getSharePath()
QString Util::Language::getSharePath |
( |
const QString & |
fourLetter | ) |
|
get the complete path to a language file out of the share directory
- Parameters
-
- Returns
◆ getSimilarLanguage4()
QString Util::Language::getSimilarLanguage4 |
( |
const QString & |
fourLetter | ) |
|
get_similar_language_4
- Parameters
-
- Returns
- four letter code if there's a language from another region, empty string else
◆ getUsedLanguageFile()
QString Util::Language::getUsedLanguageFile |
( |
const QString & |
fourLetter | ) |
|
Returns the correct language file either from share dir or home dir.
- Parameters
-
- Returns
- path to qm language file
◆ isOutdated()
bool Util::Language::isOutdated |
( |
const QString & |
fourLetter | ) |
|
Returns if the language version in translations/versions file is smaller than the current sayonara version.
- Parameters
-
- Returns
- false if Sayonara Version <= Language version, true else
◆ updateLanguageVersion()
void Util::Language::updateLanguageVersion |
( |
const QString & |
fourLetter | ) |
|
Update language version in translations/versions file to current Sayonara Version.
- Parameters
-