Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.0 - English

Change language to:
Français - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2024.1.0. This page might be outdated.
See the recommended documentation of this function

Scilab Help >> Localization > gettext

gettext

get text translated into the current locale and domain.

_

Similar to gettext

Calling Sequence

msg=gettext([myDomain,] myString)
msg=_([myDomain,] myString)

Arguments

myDomain

a string, the name of the messages domain

myString

a string, the message to be translated

Description

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).

Examples

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")

See Also

History

VersionDescription
5.5.0 Domain management added.
Report an issue
<< getlanguage Localization setdefaultlanguage >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Fri Apr 11 14:07:05 CEST 2014