Follow-up Comment #14, bugs #1986 (project savane):
"In the past, a long time ago, when PHP4 was not compatible and Savane was
supporting PHP3, there was a special page include that were done only if PHP
version was < 4.x, and this page was containing functions missing in PHP3.
This way, it is completely transparent and backward compatible."
Sure, we could do that. The current solution *is* transparent and backwards
compatible. The function ngettext() will only be defined if PHP does not
provide it; otherwise, the built-in function will be used.
"I must admit I do not remember the specifics. In fact, the configuration
option was here mainly because this path differs from the other path (the
prefix /usr/local valid for most all other links would break gettext in many
cases)"
Right. If you want to allow both /usr/share/locale and /usr/local/share/locale
(both are valid IMHO), it is no problem to modify savane to use either
location. See below.
"It is only used at installation step (make install)."
... and that is exactly the problem. If the admin wants to install savane
under /usr/local, the gettext calls will cease to work, because the .mo files
are not in the expected location. However, we could check for /usr/local as
well.
While the question about the NLSDIR is asked during configuration, it seems to
me that after the installation the answer to that question is never used
again. IMHO this is a bug. We should either drop that question completely (and
thus install .mo files under /usr/share/locale, no matter what), or allow
savane to search for .mo files using the specified location. Or we could limit
the selection to either /usr/share/locale or /usr/local/share/locale. I think
that those two paths are the only sane locations for .mo files.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?func=detailitem&item_id=1986>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Savane-dev mailing list
[email protected]
https://mail.gna.org/listinfo/savane-dev