KVIrc 5.2.6
Developer APIs
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 ( )

Creates an instance of KviMessageCatalogue.

Returns
KviMessageCatalogue

References m_pMessages, and m_pTextCodec.

◆ ~KviMessageCatalogue()

KviMessageCatalogue::~KviMessageCatalogue ( )

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

References m_pMessages.

Member Function Documentation

◆ load()

◆ translate()

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

Translates the string.

Parameters
pcTextThe text to translate
Returns
const char *

References 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: