NXOpen.UF.Text.TranslateString

Text.TranslateString()

Refer to UF_TEXT_translate_string for documentation.

Signature: TranslateString(source, size)

Parameters:
  • source (str) – This is the English source string to be translated.
  • size (int) – size in bytes of the xstring buffer
Returns:

This is the buffer to return the string translated into the users native language. If the source string is not translated xstring receives the source string unchanged. This buffer must be allocated by the caller of UF_TEXT_translate_string.

Return type:

str

License requirements: None