On Thu, May 26, 2005 at 07:12:39PM -0400, Michael Graham wrote:
> [disclaimer: I don't have any real experience with internationalization
> and the web, or with Petal for that mater, so take all this with a
> shaker of salt.]
Glad to see someone else suggesting Petal. Although Michael's example is
applicable for your dynamically added content, Petal actually has very
good I18N support built-in. Here's an example from the POD[1]:
use Petal;
local $Petal::OUTPUT = 'XHTML';
my $template = new Petal ( file => 'hello_world', lang => 'fr-CA' );
print $template->process ( my_var => my_var() );
When the template is created, the language option is selected. Petal
then loads the appropriate source template. There is a module called
Petal::I18N which has further information about doing
internationalization with Petal.
HTH,
William
[1] http://search.cpan.org/~bpostle/Petal-2.16/lib/Petal.pm#Version_4:_Internationalized
--
Knowmad Services Inc.
http://www.knowmad.com
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.