get text translated into the current locale and domain.
Similar to gettext
msg=gettext([myDomain,] myString) msg=_([myDomain,] myString)
a string, the name of the messages domain
a string, the message to be translated
gettext(myString) gets the translation of a string myString to the current locale in the current domain.
gettext(myDomain, myString) gets the translation of a string myString to the myDomain domain.
_(myString) is an alias of gettext(myString).
_(myDomain, myString) is an alias of gettext(myDomain, myString).
setlanguage("fr_FR"); gettext("Startup execution:") _("Startup execution:") addlocalizationdomain("tbx", "SCI/modules/localization/tests/unit_tests/locale") gettext("tbx", "%s: something not in Scilab.\n") _("tbx", "%s: something not in Scilab.\n") | ![]() | ![]() |
| Versão | Descrição |
| 5.5.0 | Domain management added. |