perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RobertCZ <rob...@robert.cz>
Subject Multilingual support: different languages in the same page?
Date Thu, 07 Jul 2005 10:55:05 GMT
Hi,

  I need to send email in two different languages

app.eo:
-------
...
   my $lang = $fdat->{lang} || $r->app->udat->{lang} || 'en' ;
   my %messages = %{ do '/home/www/nbcz/etc/dict/dict.dump' };
...

html:
-----
...
    $udat{lang}= 'cz';
    Execute({ inputfile => 'email.eo', mtime => undef, to => 'email1' });
    $udat{lang}= 'en';
    Execute({ inputfile => 'email.eo', mtime => undef, to => 'email2' });
...
(email.eo has a lot of [= stuff =])

  If language is set in init sub, I think one cannot change current 
language in the middle of page - is there any workaround?

Thanks

- Robert

PS I'd take notebook on holiday ( :-( ), but I'm too lazy to install 
Linux - what is status of Emperl2 on Windows? I don't care for 
multithreading etc, one-page-at-a-time is good enough for development - 
so does it work at all? Can I download PPM somewhere?






---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message