Re: [htmltmpl] HTML::Template and Locale::Maketext

2005-05-26 Thread Mathew Robertson
> The only real issue that the programmer has to do is to set a few extra > template variables: > > TMPL_VAR document_charset > TMPL_VAR document_direction > TMPL_VAR document_language > TMPL_VAR document_direction_default > TMPL_VAR document_direction_inverse > > The first three should

Re: [htmltmpl] HTML::Template and Locale::Maketext

2005-05-26 Thread Mathew Robertson
Translation issues aside, one of the best parts of storing translations in a database is that you can quite easily build a web interface to the database table. You write a script which greps your source-code/templates so that it inserts the new strings, and deletes any unused ones. This works

Re: [htmltmpl] HTML::Template and Locale::Maketext

2005-05-26 Thread Markus Spring
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johan Kuuse schrieb: > Of course, this discussion about tags for the web designer isn't > only an issue for multilingüal web pages, but it is where it comes to an > extreme, as there is no common text at all in the HTML document, only > template ta

Re: [htmltmpl] HTML::Template and Locale::Maketext

2005-05-26 Thread Mark A. Fuller
> 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 los

Re: [htmltmpl] HTML::Template and Locale::Maketext

2005-05-26 Thread Johan Kuuse
Hi, I haven't tested neither of your solutions/suggestions yet (Markus, Mathew, Hugues), even if they all look interesting. Anyway, what Markus mentioned about using HTML::Parser is an approach that may make things easier for the web designer. What I'm looking for is an approach that would be as

Re: [htmltmpl] HTML::Template and Locale::Maketext

2005-05-26 Thread Hugues de Mazancourt
Hi all, I just finished the translation of web pages in our product (which uses H::T) from French to English, and now I'm *sure* that having as many template files as languages is definitely a bad idea (except if your product/site doesn't evolve anymore, which could not be a good news ;-). So i

Re: [htmltmpl] HTML::Template and Locale::Maketext

2005-05-26 Thread Mathew Robertson
Hi Johan, About 18 months ago I had a similar requirement, and thus eventually got around to looking at Locale::Maketext. One of the key points that the documentation makes, is that English is not a language that you should derive your second language from. One problem I had with L::M was tha