Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - 日本語 -
Справка Scilab >> Modules manager > Helper functions > tbx_generate_pofile

tbx_generate_pofile

Extract localized strings from toolbox sources (toolbox compilation process)

Syntax

pofile = tbx_generate_pofile()
pofile = tbx_generate_pofile(tbx_path)
pofile = tbx_generate_pofile(tbx_name)             // obsolete
pofile = tbx_generate_pofile(tbx_name, tbx_path)   // obsolete

Arguments

tbx_path

path of the toolbox, use to locate files to compile.

tbx_name (obsolete)

name of the toolbox, use to name localization files and domain.

tbx_name is now retrieved as the basename of the file tbx_path/etc/*.start. This file must exist, even if it is empty.
pofile

return the generated po file path.

Examples

path = TMPDIR + "/example";
copyfile(SCI+"/contrib/toolbox_skeleton", path);
mdelete(path+"/locales/*");

tbx_generate_pofile(path);
edit(path+"/locales/en_US.po")

See also

History

ВерсияОписание
5.5.0 Function tbx_generate_pofile added.
6.0.0 tbx_name declared obsolete. It is no longer required.
6.0.1

_() and gettext() references are now detected.

Litteral double '' are now simplified in the msgid.

Files paths in comments are no longer absolute and refer to the toolbox root.

Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Feb 14 15:05:27 CET 2019