KVIrc 5.2.0
Developer APIs
Classes | Macros
KviLocale.h File Reference

KVIrc localization stuff. More...

#include "kvi_settings.h"
#include "KviHeapObject.h"
#include "KviMessageCatalogue.h"

Go to the source code of this file.

Classes

struct  KviLocale::EncodingDescription
 
class  KviLocale
 Holds the localization functions. More...
 

Macros

#define __tr(text)   g_pMainCatalogue->translate(text)
 
#define __tr2qs(text)   g_pMainCatalogue->translateToQString(text)
 
#define __tr2qs_ctx(text, context)   KviLocale::instance()->translateToQString(text, context)
 
#define __tr2qs_ctx_no_xgettext(text, context)   KviLocale::instance()->translateToQString(text, context)
 
#define __tr2qs_no_lookup(text)   text
 
#define __tr2qs_no_xgettext(text)   g_pMainCatalogue->translateToQString(text)
 
#define __tr_ctx(text, context)   KviLocale::instance()->translate(text, context)
 
#define __tr_no_lookup(text)   text
 
#define __tr_no_lookup_ctx(text, context)   text
 
#define __tr_no_xgettext(text)   g_pMainCatalogue->translate(text)
 
#define __tr_no_xgettext_ctx(text, context)   KviLocale::instance()->translate(text, context)
 
#define KVI_NUM_ENCODING_GROUPS   8
 
#define KVI_NUM_ENCODINGS   112
 

Detailed Description

KVIrc localization stuff.

Author
Szymon Stefanek

Macro Definition Documentation

◆ __tr

#define __tr (   text)    g_pMainCatalogue->translate(text)

◆ __tr2qs

#define __tr2qs (   text)    g_pMainCatalogue->translateToQString(text)

◆ __tr2qs_ctx

#define __tr2qs_ctx (   text,
  context 
)    KviLocale::instance()->translateToQString(text, context)

◆ __tr2qs_ctx_no_xgettext

#define __tr2qs_ctx_no_xgettext (   text,
  context 
)    KviLocale::instance()->translateToQString(text, context)

◆ __tr2qs_no_lookup

#define __tr2qs_no_lookup (   text)    text

◆ __tr2qs_no_xgettext

#define __tr2qs_no_xgettext (   text)    g_pMainCatalogue->translateToQString(text)

◆ __tr_ctx

#define __tr_ctx (   text,
  context 
)    KviLocale::instance()->translate(text, context)

◆ __tr_no_lookup

#define __tr_no_lookup (   text)    text

◆ __tr_no_lookup_ctx

#define __tr_no_lookup_ctx (   text,
  context 
)    text

◆ __tr_no_xgettext

#define __tr_no_xgettext (   text)    g_pMainCatalogue->translate(text)

◆ __tr_no_xgettext_ctx

#define __tr_no_xgettext_ctx (   text,
  context 
)    KviLocale::instance()->translate(text, context)

◆ KVI_NUM_ENCODING_GROUPS

#define KVI_NUM_ENCODING_GROUPS   8

◆ KVI_NUM_ENCODINGS

#define KVI_NUM_ENCODINGS   112