Synopsis
char *TMget_translation(
char *tag,
char *default_value);
Description
TMget_translation looks up the translation for the given string tag. If a translation is found in the current set of loaded dictionaries, this translated string is returned. If no translation is found, and default_value is not NULL, default_value is returned. If no translation is found and default_value is NULL, tag itself is returned.
Ordinarily, translations are automatically performed for string objects stored in AVS/Express. You can use this routine if you need to translate strings that are not stored in AVS/Express objects.
Do not free the returned value of this routine in any case.
Arguments
tag
Specifies the tag string.
default_value
Specifies the default value to return if no translation is found. If this parameter is passed in as NULL and no translation is found, tag is returned instead.
Returned value
A pointer to the translation for the tag parameter.
See also