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

2005-05-27 Thread Hugues de Mazancourt
Hi, Just about tags in the template file: don't forget that you can use H::T's 'filter' option and thus define your own syntax. Personally, I've turned all the into a {%... %} notation, so that '' now reads '{%VAR NAME="foo"%}' in my templates. This works in Dreamweaver (at least a my trans

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
: > > > > > {{Hello, world!}}> > ...and so on. > > I didn't had time to implement it, but I guess this could work. Did someone > try this ? > > Best, > > Hugues > > > - Original Message - > From: "Mathew Robertson"

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

2005-05-26 Thread Hugues de Mazancourt
lement it, but I guess this could work. Did someone try this ? Best, Hugues - Original Message - From: "Mathew Robertson" <[EMAIL PROTECTED]> To: "Johan Kuuse" <[EMAIL PROTECTED]> Cc: Sent: Thursday, May 26, 2005 12:50 PM Subject: Re: [htmltmpl] HTML::Tem

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

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

2005-05-25 Thread Markus Spring
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Johan, I stood in front of the same problem 2 years ago and came up with a solution that combines (in my eyes) the best of HTML::Template and Locale::Maketext. The principle is as such: The html-code of the template is parsed by HTML::Parser. Str