[htmltmpl] language support
Brought to you by:
samtregar
From: Martin S. <sa...@ic...> - 2004-08-24 11:09:51
|
Hi folks, I lack multiple language support in HTML::Template. My idea is that I wrote complete HTML page with tons of design included and then wrap pieces of text using e.g. <TMPL_LANG lang="eng">Hello</TMPL_LANG> <TMPL_LANG lang="spa">Ciao</TMPL_LANG> <TMPL_LANG lang="cze">Ahoj</TMPL_LANG> How do you solve this problem? Using <TMPL_IF lang=""> construct isn't appropriate for several reasons: -- $lang is not accessible in <TMPL_LOOP> context -- it's too clumsy for manual writting -- <TMPL_IF> is not 'system' solution, it cannot handle e.g. substitution of similar languages or so. Creating another copy of template file with translation is not maintainable because of changes in design. Or should I use GNU gettext in some way? Thanks a lot for advice -- Martin Sarfy |