Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Português - Русский - 日本語
Aide de Scilab >> Localisation > addlocalizationdomain

addlocalizationdomain

add a new domain in localization mechanism.

Syntax

msg=addlocalizationdomain(domain, path)

Arguments

domain

a string, the name of the messages domain

path

path to the domain files

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

  • gettext — get text translated into the current locale and domain.

History

VersionDescription
5.5.0 addlocalizationdomain function added.
Scilab Enterprises
Copyright (c) 2011-2015 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jun 15 08:31:22 CEST 2016