#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 ) | |
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.
Definition at line 239 of file klfmain.h.
| 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(), fpath, QString::indexOf(), QString::length(), locale, locale_specificity, QString::mid(), name, and QString::split().
Definition at line 242 of file klfmain.h.
Referenced by klf_add_avail_translation(), and KLFI18nFile().
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(), klf_reload_translations(), and KLFI18nFile().
Locale Name (e.g. "fr" or "fr_CH").
Definition at line 246 of file klfmain.h.
Referenced by KLFSettings::importAddOn(), klf_add_avail_translation(), klf_reload_translations(), and KLFI18nFile().
how specific the locale is (e.g. ""->0 , "fr"->1, "fr_CH"->2 )
Definition at line 248 of file klfmain.h.
Referenced by KLFI18nFile().