48 #ifndef QT_NO_BIG_CODECS
49 #define KVI_NUM_ENCODINGS 112
50 #define KVI_NUM_ENCODING_GROUPS 8
52 #define KVI_NUM_ENCODINGS 85
53 #define KVI_NUM_ENCODING_GROUPS 5
85 KviLocale(QApplication * pApp,
const QString & szLocaleDir,
const QString & szForceLocaleDir);
111 static void init(QApplication * pApp,
const QString & szLocaleDir,
const QString & szForceLocaleDir);
130 unsigned int count() {
return m_uCount; }
139 EncodingDescription * encodingDescription(
int iIdx);
148 const char * encodingGroup(
int iIdx);
161 QTextCodec * codecForName(
const char * pcName);
176 bool findCatalogue(QString &
szBuffer,
const QString & szName,
const QString & szLocaleDir);
191 bool unloadCatalogue(
const QString & szName);
206 const char * translate(
const char * pcText,
const char * pcContext);
214 const QString & translateToQString(
const char * pcText,
const char * pcContext);
217 #ifndef _KVI_LOCALE_CPP_
219 #endif // !_KVI_LOCALE_CPP_
221 #define __tr(__text__) g_pMainCatalogue->translate(__text__)
222 #define __tr_no_lookup(__text__) __text__
223 #define __tr_no_xgettext(__text__) g_pMainCatalogue->translate(__text__)
224 #define __tr2qs(__text__) g_pMainCatalogue->translateToQString(__text__)
225 #define __tr2qs_no_lookup(__text__) __text__
226 #define __tr2qs_no_xgettext(__text__) g_pMainCatalogue->translateToQString(__text__)
228 #define __tr_ctx(__text__, __context__) KviLocale::instance()->translate(__text__, __context__)
229 #define __tr_no_lookup_ctx(__text__, __context__) __text__
230 #define __tr_no_xgettext_ctx(__text__, __context__) KviLocale::instance()->translate(__text__, __context__)
231 #define __tr2qs_ctx(__text__, __context__) KviLocale::instance()->translateToQString(__text__, __context__)
232 #define __tr2qs_ctx_no_xgettext(__text__, __context__) KviLocale::instance()->translateToQString(__text__, __context__)
234 #endif //_KVI_LOCALE_H_
Definition: KviHeapObject.h:124
Definition: KviCString.h:105
char bSendUtf8
Definition: KviLocale.h:72
static KviLocale * instance()
Returns the instance of the class.
Definition: KviLocale.h:124
QApplication * m_pApp
Definition: KviLocale.h:97
Holds the encoding data.
Definition: KviLocale.h:68
Holds the localization functions.
Definition: KviLocale.h:60
static KviCString g_szLang
Definition: KviLocale.h:94
void done()
Definition: KviKvs.cpp:50
static KviLocale * m_pSelf
Definition: KviLocale.h:100
The KviMessageCatalogue class.
Definition: KviMessageCatalogue.h:47
unsigned int count()
Returns the number of instances of the class.
Definition: KviLocale.h:130
KVILIB_API KviMessageCatalogue * g_pMainCatalogue
Definition: KviLocale.cpp:48
const char * pcName
Definition: KviLocale.h:70
char bSmart
Definition: KviLocale.h:71
uint uGroup
Definition: KviLocale.h:73
char szBuffer[4096]
Definition: winamp.cpp:77
const KviCString & localeName()
Returns the language code of the localization.
Definition: KviLocale.h:154
int init()
Definition: winamp.cpp:118
This file contains compile time settings.
#define KVILIB_API
Definition: kvi_settings.h:125
const char * pcDescription
Definition: KviLocale.h:74
static unsigned int m_uCount
Definition: KviLocale.h:101