Hi,

On Fri, Jul 18, 2008 at 06:07:31PM +0200, Alexander Klink wrote:
> 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 ...

At first I though this was a problem with the order in which Mason
calls the components so that the call to set_language was at the wrong
end of the call chain, but even with the following debug patch:

diff --git 
a/trunk/clients/perl/OpenXPKI-Client-HTML-Mason/htdocs/lib/language.mhtml 
b/trunk/clients/perl/OpenXPKI-Client-HTML-Mason/htdocs/lib/language.mhtml
index 9ca8e53..8b8205c 100644
--- a/trunk/clients/perl/OpenXPKI-Client-HTML-Mason/htdocs/lib/language.mhtml
+++ b/trunk/clients/perl/OpenXPKI-Client-HTML-Mason/htdocs/lib/language.mhtml
@@ -6,9 +6,14 @@
     my %args = $m->request_args();
     if (exists $args{'__language'} && $args{'__language'})
     {
+        print "__language parameter" . $$;
+        print "curr language: " . get_language();
         $session_cache{$session_id}->{language} = $args{"__language"}
             if (defined $session_id);
-        return set_language ($args{"__language"});
+        my $lang = set_language ($args{"__language"});
+        print "curr language: " . get_language();
+        print 'trans: ' . 
i18nGettext('I18N_OPENXPKI_CLIENT_HTML_MASON_API_CERT_INFO_TITLE');
+        return $lang;
     }
 
     ## check for a session

... I see that the current language is undef at this moment, but is then
successfully changed to de_DE. The translation of our test-I18N-string
still fails, though :( I even tried calling set_language() twice, just
for kicks, but that doesn't help either.

Any good ideas from your side?

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