Translation support is provided by the static tr() function. This function, given a string in UTF-8 encoding, looks up for a translation of the given string by calling the VirtualBoxBase::translate() global function which receives the name of the enclosing class ("context of translation") as the additional argument and returns a translated string based on the currently active language.
|C||Class that needs to support the string translation.|
COM_SUPPORTTRANSLATION_OVERRIDE (<ClassName>)macro if one of its base classes also inherits from this template (to resolve the ambiguity of the tr() function).
Static Public Member Functions
|static const char *||tr (const char *aSourceText, const char *aComment=NULL)|
Static Protected Member Functions
|static const char *||className ()|
|static bool||cutClassNameFrom__PRETTY_FUNCTION__ (char *aPrettyFunctionName)|
Static Private Attributes
|static const char *||sClassName = NULL|