Hi Sergei,

On Fri, Jul 18, 2008 at 07:22:37PM +0400, Sergei Vyshenski wrote:
> >Does that mean with the TestModPerlHandler, you get consistent
> >results of what you would expect?
> 
> Yes, please find my TestModPerlHandler_pp.pm.gz attached herewith.

OK, so this seems to work for me, too ... If I try to patch this into
i18n.pm like this:

diff --git a/trunk/perl-modules/core/trunk/OpenXPKI/i18n.pm 
b/trunk/perl-modules/core/trunk/OpenXPKI/i18n.pm
index b81bc7b..5ebd08a 100644
--- a/trunk/perl-modules/core/trunk/OpenXPKI/i18n.pm
+++ b/trunk/perl-modules/core/trunk/OpenXPKI/i18n.pm
@@ -60,7 +60,13 @@ sub i18nGettext {
     ## we need this for utf8
     #it's too slow, I try to use "use utf8;"
     #my $i18n_string = pack "U0C*", unpack "C*", gettext ($text);
-    my $i18n_string = gettext ($text);
+    if (Locale::Messages->select_package('gettext_pp') ne 'gettext_pp') {
+        OpenXPKI::Exception->throw(
+            message => 'I18N_OPENXPKI_I18N_SELECT_PACKAGE_FAILED',
+        );
+    }
+
+    my $i18n_string = Locale::Messages::gettext ($text);
 
     if ($i18n_string ne $text)
     {

I get a weird behaviour on the webinterface - the first time I hit a
particular Apache process (I've been looking at the process IDs on the
interface), the output is just I18N_-tags. When I hit it the next time,
everything is fine, though ...

Cheers,
  Alex
-- 
Dipl.-Math. Alexander Klink | IT-Security Engineer
        [EMAIL PROTECTED] | working @ urn:oid:1.3.6.1.4.1.11417

-------------------------------------------------------------------------
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

Reply via email to