Return-Path: Delivered-To: apmail-perl-embperl-archive@www.apache.org Received: (qmail 85790 invoked from network); 7 Jul 2005 10:56:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Jul 2005 10:56:37 -0000 Received: (qmail 27987 invoked by uid 500); 7 Jul 2005 10:56:33 -0000 Delivered-To: apmail-perl-embperl-archive@perl.apache.org Received: (qmail 27978 invoked by uid 500); 7 Jul 2005 10:56:32 -0000 Mailing-List: contact embperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list embperl@perl.apache.org Received: (qmail 27965 invoked by uid 99); 7 Jul 2005 10:56:32 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2005 03:56:32 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [81.0.228.129] (HELO ns.sofist.cz) (81.0.228.129) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2005 03:55:18 -0700 Received: (qmail 22081 invoked from network); 7 Jul 2005 12:55:12 +0200 Received: from localhost (127.0.0.1) by localhost with SMTP; 7 Jul 2005 12:55:12 +0200 Received: from ns.sofist.cz ([127.0.0.1]) by localhost (ns [127.0.0.1]) (amavisd-new, port 10024) with SMTP id 19837-14 for ; Thu, 7 Jul 2005 12:55:09 +0200 (CEST) Received: (qmail 22075 invoked by uid 201); 7 Jul 2005 10:55:09 -0000 Received: from r3c210.chello.upc.cz (HELO ?192.168.1.9?) (213.220.194.210) by rumcajz.pcv.cz with SMTP; 7 Jul 2005 10:55:09 -0000 Message-ID: <42CD0A09.2080007@robert.cz> Date: Thu, 07 Jul 2005 12:55:05 +0200 From: RobertCZ User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: embperl@perl.apache.org Subject: Multilingual support: different languages in the same page? Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at ns.sofist.cz X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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