KVIrc 5.2.4
Developer APIs
Public Member Functions | Protected Attributes | List of all members
KviMessageCatalogue Class Reference

The KviMessageCatalogue class. More...

#include <KviMessageCatalogue.h>

+ Inheritance diagram for KviMessageCatalogue:

Public Member Functions

 KviMessageCatalogue ()
 Creates an instance of KviMessageCatalogue.
 
bool load (const QString &szName)
 
const char * translate (const char *pcText)
 Translates the string.
 
const QString & translateToQString (const char *pcText)
 Translates the string.
 
 ~KviMessageCatalogue ()
 Destroys the instance of KviMessageCatalogue and frees all the relevant resources.
 

Protected Attributes

KviPointerHashTable< const char *, KviTranslationEntry > * m_pMessages
 
QTextCodec * m_pTextCodec
 

Detailed Description

The KviMessageCatalogue class.

Author
Szymon Stefanek

This file was originally part of KviLocale.h

Constructor & Destructor Documentation

◆ KviMessageCatalogue()

KviMessageCatalogue::KviMessageCatalogue ( )

◆ ~KviMessageCatalogue()

KviMessageCatalogue::~KviMessageCatalogue ( )

Destroys the instance of KviMessageCatalogue and frees all the relevant resources.

References m_pMessages.

Member Function Documentation

◆ load()

bool KviMessageCatalogue::load ( const QString &  szName)

◆ translate()

const char * KviMessageCatalogue::translate ( const char *  pcText)

Translates the string.

Parameters
pcTextThe text to translate
Returns
const char *

References KviPointerHashTable< Key, T >::find(), m_pMessages, KviTranslationEntry::m_szEncodedTranslation, and KviCString::ptr().

Referenced by KviLocale::translate().

◆ translateToQString()

const QString & KviMessageCatalogue::translateToQString ( const char *  pcText)

Member Data Documentation

◆ m_pMessages

KviPointerHashTable<const char *, KviTranslationEntry>* KviMessageCatalogue::m_pMessages
protected

◆ m_pTextCodec

QTextCodec* KviMessageCatalogue::m_pTextCodec
protected

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