 |
Sayonara Player
|
23 #ifndef LANGUAGEUTILS_H
24 #define LANGUAGEUTILS_H
27 template<
typename A,
typename B>
154 void set_test_mode();
155 void set_language_version(
const QString& four_letter,
const QString& version);
160 #endif // LANGUAGEUTILS_H
QString get_checksum_ftp_path()
Returns the path where checksums can be fetched from.
void update_language_version(const QString &four_letter)
Update language version in translations/versions file to current Sayonara Version.
QString get_language_version(const QString &four_letter)
Get the language version out of translations/versions file in home dir.
QString get_checksum_http_path()
Returns the path where checksums can be fetched from.
QString extract_four_letter(const QString &language_file)
Extracts the language Code out of a sayonara_lang string.
QString get_icon_path(const QString &four_letter)
Returns the icon path in share directory.
Definition: org_mpris_media_player2_adaptor.h:21
QString get_used_language_file(const QString &four_letter)
Returns the correct language file either from share dir or home dir.
Helper functions.
Definition: GenreView.h:35
QString get_similar_language_4(const QString &four_letter)
get_similar_language_4
bool is_outdated(const QString &four_letter)
Returns if the language version in translations/versions file is smaller than the current sayonara ve...
QString get_checksum(const QString &four_letter)
calculates the checksum for the currently used language file (either home or share directory)
QString get_ftp_path(const QString &four_letter)
get the complete path to a language file out of the ftp directory
QString get_share_path(const QString &four_letter)
get the complete path to a language file out of the share directory
QString get_home_target_path(const QString &four_letter)
get_home_target_path
QString get_http_path(const QString &four_letter)
get the complete http url to a language file