[KLF Application][KLF Tools][KLF Backend][KLF Home]
KLatexFormula Project
Public Member Functions | Public Attributes

KLFI18nFile Class Reference

Small structure to store information for a translation file (.qm) More...

#include <klfmain.h>

Collaboration diagram for KLFI18nFile:
Collaboration graph
[legend]

List of all members.

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 )

Detailed Description

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.

Definition at line 239 of file klfmain.h.


Constructor & Destructor Documentation

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().


Member Data Documentation

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().

how specific the locale is (e.g. ""->0 , "fr"->1, "fr_CH"->2 )

Definition at line 248 of file klfmain.h.

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().


The documentation for this class was generated from the following files:

Generated by doxygen 1.7.3