gettext, _
Get text translated into the current locale.
📝Syntax
translated_string = gettext(your_string)
translated_string = _(your_string))
📥Input Arguments
Parameter Description
your_string a string: message to be translated.
📤Output Arguments
Parameter Description
translated_string a string: message translated.
📄Description

translated_string = gettext(your_string) gets the translation of a string your_string to the current locale in the Nelson domain.

_(your_string) is an alias of gettext(your_string).

💡Examples
disp(_('function not found.'))
🔗See Also
setlanguagegetlanguage
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub