Return-Path: Delivered-To: apmail-perl-embperl-archive@www.apache.org Received: (qmail 51227 invoked from network); 9 Aug 2006 22:46:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Aug 2006 22:46:07 -0000 Received: (qmail 62195 invoked by uid 500); 9 Aug 2006 22:46:06 -0000 Delivered-To: apmail-perl-embperl-archive@perl.apache.org Received: (qmail 62181 invoked by uid 500); 9 Aug 2006 22:46:06 -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 62170 invoked by uid 99); 9 Aug 2006 22:46:06 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Aug 2006 15:46:06 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [132.248.72.141] (HELO lafa.iiec.unam.mx) (132.248.72.141) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Aug 2006 15:46:04 -0700 Received: from localhost (localhost.localdomain [127.0.0.1]) by lafa.iiec.unam.mx (Postfix) with ESMTP id E02EC3003059 for ; Wed, 9 Aug 2006 17:48:02 -0500 (CDT) Received: from lafa.iiec.unam.mx ([127.0.0.1]) by localhost (lafa.iiec.unam.mx [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23521-07 for ; Wed, 9 Aug 2006 17:48:02 -0500 (CDT) Received: from gwolf.org (unknown [201.137.82.132]) by lafa.iiec.unam.mx (Postfix) with ESMTP id 34F9C3002805 for ; Wed, 9 Aug 2006 17:48:02 -0500 (CDT) Received: by gwolf.org (Postfix, from userid 1000) id DCEB6180174C; Wed, 9 Aug 2006 16:09:02 -0500 (CDT) Date: Wed, 9 Aug 2006 16:09:02 -0500 From: Gunnar Wolf To: embperl@perl.apache.org Subject: I18N and non-literals Message-ID: <20060809210902.GN29951@gwolf.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at iiec.unam.mx X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N While building an I18N-able site, I noticed Embperl's [= =] facility seems to work only for literals, and does not work with data generated by expression - this means: [= string =] will be properly translated to whatever message I defined for 'string', but [$ foreach $var qw(string chain thing) $] [= $var =] [$ endforeach $] will only appear as: $var $var $var Why is it so? Is there a way I can change this setting? I know I can call [+ $req_rec->gettext($var) +] instead, but it loses all the beauty ;-) Greetings, -- Gunnar Wolf - gwolf@gwolf.org - (+52-55)5623-0154 / 1451-2244 PGP key 1024D/8BB527AF 2001-10-23 Fingerprint: 0C79 D2D1 2C4E 9CE4 5973 F800 D80E F35A 8BB5 27AF --------------------------------------------------------------------- To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org For additional commands, e-mail: embperl-help@perl.apache.org