Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

const char * VirtualBoxBase::translate ( const char *  context,
const char *  sourceText,
const char *  comment = 0 
) [static, inherited]

Translates the given text string according to the currently installed translation table and current context. The current context is determined by the context parameter. Additionally, a comment to the source text string text can be given. This comment (which is NULL by default) is helpful in sutuations where it is necessary to distinguish between two or more semantically different roles of the same source text in the same context.

Parameters:
context the context of the the translation
sourceText the string to translate
comment the comment to the string (NULL means no comment)
Returns:
the translated version of the source string in UTF-8 encoding, or the source string itself if the translation is not found in the given context.
Translates the given text string according to the currently installed translation table and current context. The current context is determined by the context parameter. Additionally, a comment to the source text string text can be given. This comment (which is NULL by default) is helpful in situations where it is necessary to distinguish between two or more semantically different roles of the same source text in the same context.

Parameters:
context the context of the translation (can be NULL to indicate the global context)
sourceText the string to translate
comment the comment to the string (NULL means no comment)
Returns:
the translated version of the source string in UTF-8 encoding, or the source string itself if the translation is not found in the given context.

Todo:
(dmik) incorporate Qt translation file parsing and lookup

Definition at line 662 of file VirtualBoxBase.cpp.

References Log.

Referenced by VirtualBoxSupportTranslation< MachineDebugger >::tr().

{
#if 0
    Log(("VirtualBoxBase::translate:\n"
         "  context={%s}\n"
         "  sourceT={%s}\n"
         "  comment={%s}\n",
         context, sourceText, comment));
#endif

    /// @todo (dmik) incorporate Qt translation file parsing and lookup
    return sourceText;
}


Generated by  Doxygen 1.6.0   Back to index