Small structure to store information for a translation file (.qm) More...
#include <klfmain.h>
Public Member Functions | |
KLFI18nFile (QString filepath) | |
Public Attributes | |
QString | fpath |
QString | name |
Translation file base name (e.g. 'klf' for klf_fr.qm) | |
QString | locale |
Locale Name (e.g. "fr" or "fr_CH") | |
int | locale_specificity |
how specific the locale is (e.g. ""->0 , "fr"->1, "fr_CH"->2 ) |
Small structure to store information for a translation file (.qm)
Intented as (temporary) helper to manage translation files. Used e.g. in klf_reload_translations().
To see a list of available translations accessible within the whole program, see KLFTranslationInfo and klf_avail_translations.
KLFI18nFile::KLFI18nFile | ( | QString | filepath | ) |
Initialize this structure to the translation file filepath
.
Definition at line 304 of file klfmain.cpp.
References QFileInfo::absoluteDir(), QDir::absoluteFilePath(), QString::endsWith(), QFileInfo::fileName(), KLFAddOnInfo::fpath(), QString::indexOf(), QString::length(), and QString::mid().
Definition at line 242 of file klfmain.h.
Referenced by klf_add_avail_translation().
Locale Name (e.g. "fr" or "fr_CH")
Definition at line 246 of file klfmain.h.
Referenced by KLFSettings::importAddOn(), and klf_add_avail_translation().
Translation file base name (e.g. 'klf' for klf_fr.qm)
Definition at line 244 of file klfmain.h.
Referenced by klf_add_avail_translation().