OpendTect-6_4  6.4
Public Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | List of all members
TextTranslatorLanguage Class Reference

Public Member Functions

 TextTranslatorLanguage (const char *vlocalename)
 
const ::QString & getLanguageName () const
 
const ::QLocale & getLanguageLocale () const
 
BufferString getLocaleName () const
 
bool addFile (const char *filename)
 
bool load ()
 
const ::QTranslator * getTranslator (const char *appl) const
 

Protected Attributes

bool loaded_
 
BufferString localename_
 
::QString * languagename_
 
::QLocale * locale_
 
BufferStringSet filenames_
 
ObjectSet< QTranslator > translators_
 
BufferStringSet applications_
 

Private Member Functions

 mRefCountImplWithDestructor (TextTranslatorLanguage, virtual ~TextTranslatorLanguage(), delete this;)
 

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)
 

Detailed Description

Holds the translation for one language. Each language has its own locale code, (such as en-us)

Constructor & Destructor Documentation

TextTranslatorLanguage::TextTranslatorLanguage ( const char *  vlocalename)

Member Function Documentation

bool TextTranslatorLanguage::addFile ( const char *  filename)
const :: QLocale& TextTranslatorLanguage::getLanguageLocale ( ) const
const :: QString& TextTranslatorLanguage::getLanguageName ( ) const
BufferString TextTranslatorLanguage::getLocaleName ( ) const
const :: QTranslator* TextTranslatorLanguage::getTranslator ( const char *  appl) const
static uiString TextTranslatorLanguage::legacyTr ( const char *  text,
const char *  disambiguation = 0,
int  pluralnr = -1 
)
inlinestaticprivate
bool TextTranslatorLanguage::load ( )
TextTranslatorLanguage::mRefCountImplWithDestructor ( TextTranslatorLanguage  ,
virtual ~  TextTranslatorLanguage(),
delete this;   
)
private
static uiString TextTranslatorLanguage::tr ( const char *  text,
const char *  disambiguation = 0,
int  pluralnr = -1 
)
inlinestaticprivate

Member Data Documentation

BufferStringSet TextTranslatorLanguage::applications_
protected
BufferStringSet TextTranslatorLanguage::filenames_
protected
:: QString* TextTranslatorLanguage::languagename_
protected
bool TextTranslatorLanguage::loaded_
protected
:: QLocale* TextTranslatorLanguage::locale_
protected
BufferString TextTranslatorLanguage::localename_
protected
ObjectSet<QTranslator> TextTranslatorLanguage::translators_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019