tbx_generate_pofile(..) fails generating the file: [] returned. Trouble each time that \" is met (as in "C:\path\dir\")
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
The module http://atoms.scilab.org/toolboxes/uman/1.0 contains only one file uman.sci containing several macros (uman() and its utilities), and no gateway. _("uman","Strings to localize") is used more than 10 times in the file.
Running tbx_generate_pofile("uman",<path_to_uman>) returns []: no po file is generated.
In uman.sci, a line is:
lang = uman_strsubst(jar, "|.*?_([a-z]{2}_[A-Z]{2})_help.jar|", "$1", "r")
It somewhat contains the _("......") pattern, that yet is not a gettext one.
Even after removing it, tbx_generate_pofile(..) fails.
The same empty result is observed after declaring addlocalizationdomain("uman",<path_to_uman>+filesep()+"locales")
ERROR LOG:
----------
none. wrong behavior
HOW TO REPRODUCE THE BUG:
-------------------------
* Download and unzip the package http://atoms.scilab.org/toolboxes/uman/1.0
* run
tbx_generate_pofile("uman",<path_to_uman>) // please specify <path_to_uman>
// => nothing is generated