KVIrc 5.2.6
Developer APIs
KviTranslator Class Reference

The KviTranslator class. More...

#include <KviTranslator.h>

+ Inheritance diagram for KviTranslator:

Public Member Functions

 KviTranslator (QObject *pParent)
 Creates an instance of KviTranslator.
 
QString translate (const char *pcContext, const char *pcMessage, const char *pcComment, int n=-1) const override
 Decodes the string and returns the current one.
 
virtual ~KviTranslator ()
 Destroys the instance of KviTranslator and frees all the relevant resources.
 

Detailed Description

The KviTranslator class.

Constructor & Destructor Documentation

◆ KviTranslator()

KviTranslator::KviTranslator ( QObject * pParent)

Creates an instance of KviTranslator.

Parameters
pParentThe parent object
Returns
KviTranslator

◆ ~KviTranslator()

KviTranslator::~KviTranslator ( )
virtualdefault

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

References n, and translate().

Member Function Documentation

◆ translate()

QString KviTranslator::translate ( const char * pcContext,
const char * pcMessage,
const char * pcComment,
int n = -1 ) const
override

Decodes the string and returns the current one.

Parameters
pcContextContext of Qt translation. Unused by us
pcMessageThe message to translate
pcCommentComment of Qt translation. Unused by us
Returns
QString

References g_pMainCatalogue, and n.

Referenced by ~KviTranslator().


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