> Anyone has used HTML::Template and Locale::Maketext together?
 
Did you search the archives? I wrote a rather lengthy explanation of how to do 
it (with the help of Cees Hek).

I agree with the various observations about how language-specific copies of 
templates become unmanageable. You also lose the caching capability if you fill 
in too many variables with language translated content. And, there are some 
things that are filled in once (such as pull-down list values which don't need 
to be set for each redisplay). My solution was to 1) set the template path to 
language-specific directories to include language fragments from (without 
duplicating markup). 2) Use Cees Hek's hack to make H:T's cache keyed on 
template and language. 3) Make a lot of use of H:T's filter mechanism to fill 
in one-time form values (like list values) so they become static to the cached 
template.

Here is what I posted:

http://sourceforge.net/mailarchive/message.php?msg_id=10644629

If you need clarification, let me know.

Mark



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Html-template-users mailing list
Html-template-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to