Re: [htmltmpl] language support
Brought to you by:
samtregar
From: Sam T. <sa...@tr...> - 2004-08-24 16:07:35
|
On Tue, 24 Aug 2004, Martin Sarfy wrote: > Using <TMPL_IF lang=""> construct isn't appropriate for several reasons: > > -- $lang is not accessible in <TMPL_LOOP> context Use global_vars and it will be. > -- it's too clumsy for manual writting I don't understand what you mean by this. If you consider HTML::Template's syntax to be too clumsy then why are you using it? > -- <TMPL_IF> is not 'system' solution, it cannot handle e.g. > substitution of similar languages or so. You can handle that in your code. I'm certainly not going to add an exhaustive list of languages and their synonyms to HTML::Template! > Or should I use GNU gettext in some way? Possibly. I've seen it used in similar situations, but I've never used it myself. -sam |