Extract localized strings from toolbox sources (toolbox compilation process)
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
path of the toolbox, use to locate files to compile.
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. |
return the generated po file path.
Version | Description |
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. |