OpendTect-6_4
6.4
|
Public Member Functions | |
TextTranslateMgr () | |
~TextTranslateMgr () | |
int | nrSupportedLanguages () const |
uiString | getLanguageUserName (int) const |
BufferString | getLocaleName (int) const |
bool | setLanguage (int, uiString &errmsg) |
int | currentLanguage () const |
int | changeCount () const |
const ::QTranslator * | getQTranslator (const char *appl) const |
const ::QLocale * | getQLocale () const |
bool | addLanguage (TextTranslatorLanguage *) |
Returns false if it was not added. More... | |
Public Member Functions inherited from CallBacker | |
CallBacker () | |
CallBacker (const CallBacker &) | |
virtual | ~CallBacker () |
bool | attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false) |
bool | attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) |
void | detachCB (NotifierAccess &, const CallBack &) |
void | detachCB (NotifierAccess *notif, const CallBack &cb) |
bool | isNotifierAttached (NotifierAccess *) const |
Only for debugging purposes, don't use. More... | |
Static Public Member Functions | |
static bool | loadTranslations () |
static void | GetLocalizationDir (FilePath &) |
static char | cApplicationEnd () |
Public Attributes | |
Notifier< TextTranslateMgr > | languageChange |
Protected Member Functions | |
void | loadUSEnglish () |
Protected Member Functions inherited from CallBacker | |
void | detachAllNotifiers () |
Call from the destructor of your inherited object. More... | |
Protected Attributes | |
int | dirtycount_ |
ObjectSet< TextTranslatorLanguage > | languages_ |
int | currentlanguageidx_ |
Static Private Member Functions | |
static uiString | tr (const char *text, const char *disambiguation=0, int pluralnr=-1) |
static uiString | legacyTr (const char *text, const char *disambiguation=0, int pluralnr=-1) |
Friends | |
class | TextTranslatorLanguage |
Manager that keeps track of translations. By default, it only handles English plural, but it can be extended with more languages.
TextTranslateMgr::TextTranslateMgr | ( | ) |
TextTranslateMgr::~TextTranslateMgr | ( | ) |
bool TextTranslateMgr::addLanguage | ( | TextTranslatorLanguage * | ) |
Returns false if it was not added.
|
inlinestatic |
|
inline |
int TextTranslateMgr::currentLanguage | ( | ) | const |
uiString TextTranslateMgr::getLanguageUserName | ( | int | ) | const |
BufferString TextTranslateMgr::getLocaleName | ( | int | ) | const |
|
static |
const :: QLocale* TextTranslateMgr::getQLocale | ( | ) | const |
const :: QTranslator* TextTranslateMgr::getQTranslator | ( | const char * | appl | ) | const |
|
inlinestaticprivate |
|
static |
Can be called from executables to load The dGBCommon plugin, wich loads all languages.
|
protected |
int TextTranslateMgr::nrSupportedLanguages | ( | ) | const |
bool TextTranslateMgr::setLanguage | ( | int | , |
uiString & | errmsg | ||
) |
|
inlinestaticprivate |
|
friend |
|
protected |
|
protected |
Notifier<TextTranslateMgr> TextTranslateMgr::languageChange |
Triggers both on new languages and changed languages.
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019