translate Pile   version 0.0.1
This pile provides support for an application that
TransLang Class Reference

brief description More...

#include <translang.h>

Public Member Functions

 TransLang (const QString &dir, const QString &langfile, const QString &name, const QString &icon, const QString &locale)
 Constructor that creates a valid instance. More...
 
 TransLang ()
 Default constructor that creates an invalid instance. More...
 
virtual ~TransLang ()
 Destructor. More...
 
bool isValid () const
 Tell if this instance is valid or not. More...
 
const QString & langDirectory () const
 Absolute paths towards language directory.
 
const QString & langFile () const
 Get the absolute path for the language file.
 
QString qtLangFile () const
 Get the absolute path for the qt language file (if any).
 
const QString & langName () const
 Get the name of this language.
 
const QString & localeName () const
 Get the name of this locale.
 
const QString & langIcon () const
 Get the icon of this language.
 
const QMap< QString, QString > & metadata () const
 Get the icon of this language.
 
bool hasCachedTranslator () const
 
bool hasCachedQtTranslator () const
 

Protected Member Functions

QTranslator * translator ()
 Create a Qt translator.
 
QTranslator * qtTranslator ()
 Create a Qt translator.
 
void translatorDone ()
 Discard cached copy of the translator.
 
void addMetadata (const QString &key, const QString &value)
 Insert some metadata. More...
 

Friends

class Translate
 

Detailed Description

brief description

Constructor & Destructor Documentation

TransLang::TransLang ( const QString &  dir,
const QString &  langfile,
const QString &  name,
const QString &  icon,
const QString &  locale 
)

Constructor that creates a valid instance.

...

TransLang::TransLang ( )

Default constructor that creates an invalid instance.

This constructor is only useful for creating the invalid instance used by the manager.

TransLang::~TransLang ( )
virtual

Destructor.

...

Member Function Documentation

void TransLang::addMetadata ( const QString &  key,
const QString &  value 
)
protected

Insert some metadata.

...

bool TransLang::isValid ( ) const

Tell if this instance is valid or not.

...


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