Re: [htmltmpl] Re: language support

2004-10-29 Thread Sam Tregar
On Fri, 29 Oct 2004, Peter Valdemar Mørch wrote: > I use gettext, and so I've created this filter: > > my $gettextFilterSub = sub { > my ($text_ref) = @_; > $$text_ref =~ > s//gettext($1)/ge; # To satisify xgettext: " > }; You could also use HTML::Template::Expr and setup a function called ge

[htmltmpl] Re: language support

2004-10-29 Thread Peter Valdemar Mørch
Martin Sarfy wrote: Hello Ciao Ahoj The biggest problem with this, I find, is that if I use that solution the template now needs to contain all the messages in all the languages right there in the template. An update nightmare and quite messy. Here is another suggestion: I u