Hi Alex, 1. Yet another very simple workaround for Apache2+modperl2 vs gettext compatibility problem.
Just call "pure perl" version of the subroutine: Locale::gettext_pp::gettext(bindtextdomain) etc instead of Locale::gettext_xs. The latter evidently works incorrectly. Maybe you could comment on productivity aspect of such a change? And test if this works on your side? 2. Some bugs of the CPAN module libintl-perl-1.16. a. Locale::Messages::select_package has 1 extra argument. You have to supply first fake argument, if you want this function to understand your second argument. In other words, if you give to it only 1 argument, then it _always_ makes the default "xs" choice. b. Locale::gettext_pp::gettext works ok everywhere. c. Locale::gettext_xs::gettext works ok from regular perl script, and from under Apache1.3 with mod_perl, and from under Apache2.2 with mod_cgi. It does not work from under Apache2.2 with mod_perl2. "Does not work" means: it returns supplied argument without translating it. Very similar to the explicit bug from point 2a above? Workarounds for openxpki: A. Use select_package with doubled argument: Locale::Messages::select_package(gettext_pp, gettext_pp) Did not checked if this works in Apache1.3. B. Explicitly call each time Locale::gettext_pp::gettext(bindtextdomain) etc All the best, Sergei ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ OpenXPKI-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openxpki-devel
