Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.1 - Русский

Change language to:
English - Français - 日本語 - Português -

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

Справка 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

  • gettext — индексирует или/и переводит некоторые индексированные сообщения на английском языке
  • addlocalizationdomain — add a new domain in localization mechanism.
  • tbx_make . localization — Builds a toolbox having a standard structure (EXPERIMENTAL)
  • tbx_build_localization — Build localization "mo" file from "po" files (toolbox compilation process)

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.

Literal double '' are now simplified in the msgid.

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

Report an issue
<< tbx_builder_src_lang Helper functions tbx_make >>

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:
Mon Jan 03 14:40:13 CET 2022