tbx_generate_pofile(..) fails generating the file when the toolbox absolute path has some spaces, or when the toolbox has no XML files
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
When the absolute path of a toolbox includes some spaces, or when the toolbox has no XML files to scan, tbx_generate_pofile(..) fails with error messages in the console(box).
In the consolebox:
C:\SCI\tools\gettext\xgettext: error while opening "C:\tbx_path_head\plotplots" for reading: No such file or directory
The true full tbx path is C:\tbx_path_head\plotplots 2.0\plotplots_2.0-src\macros\plotplots.sci
^^^ Here is the space
After fixing it, another error occurs (in the console):
--> tbx_make . localization
at line 120 of function tbx_generate_pofile ( SCI\modules\modules_manager\macros\tbx_generate_pofile.sci line 133 )
at line 55 of function tbx_build_localization ( SCI\modules\modules_manager\macros\tbx_build_localization.sci line 68 )
at line 91 of function tbx_make ( SCI\modules\modules_manager\macros\tbx_make.sci line 104 )
Undefined variable: xmlTmpFile
ERROR LOG:
----------
See here above
HOW TO REPRODUCE THE BUG:
-------------------------