Sayonara Player
Functions
Util::Language Namespace Reference

language namespace More...

Functions

QString get_share_path (const QString &four_letter)
 get the complete path to a language file out of the share directory More...
 
QString get_ftp_path (const QString &four_letter)
 get the complete path to a language file out of the ftp directory More...
 
QString get_http_path (const QString &four_letter)
 get the complete http url to a language file More...
 
QString get_checksum_ftp_path ()
 Returns the path where checksums can be fetched from. More...
 
QString get_checksum_http_path ()
 Returns the path where checksums can be fetched from. More...
 
QString get_home_target_path (const QString &four_letter)
 get_home_target_path More...
 
QString get_used_language_file (const QString &four_letter)
 Returns the correct language file either from share dir or home dir. More...
 
QString get_icon_path (const QString &four_letter)
 Returns the icon path in share directory. More...
 
QString extract_four_letter (const QString &language_file)
 Extracts the language Code out of a sayonara_lang string. More...
 
QString get_checksum (const QString &four_letter)
 calculates the checksum for the currently used language file (either home or share directory) More...
 
QString get_language_version (const QString &four_letter)
 Get the language version out of translations/versions file in home dir. More...
 
void update_language_version (const QString &four_letter)
 Update language version in translations/versions file to current Sayonara Version. More...
 
bool is_outdated (const QString &four_letter)
 Returns if the language version in translations/versions file is smaller than the current sayonara version. More...
 
QString get_similar_language_4 (const QString &four_letter)
 get_similar_language_4 More...
 

Detailed Description

language namespace