-----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. Strings between tags
and certain attribute values (title, alt) are translated by means of
Locale::Maketext. A subclass of HTML::Templates caches the different
translations through different keys.

My solution is by all means not perfect, especially the HTML::Template subclass
would much better be rewritten in form of a decent patch (Cees Heek has advised
on this, but I never found time to realize this), and therefore was never
published. However I put it on a university server where you can download it.
Documentation for sure is optimal, but the test scripts explain very clearly the
usage.

The files are

http://dream.lrrl.arch.tu-muenchen.de/~springm/CPAN/authors/id/MSPRING/HTML-Translator-0.03.tar.gz
http://dream.lrrl.arch.tu-muenchen.de/~springm/CPAN/authors/id/MSPRING/HTML-I18Template-0.01.tar.gz

I would be glad if my solution could be of any usage for you.

Kind regards

Markus Spring
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFClO4BxxUzQSse11ARAqV/AJsF+8rHcwClEJzF5w19JI+GWhBZgwCfR+sn
cO/dmpSc/OBAl449Dfk1EFI=
=A4qa
-----END PGP SIGNATURE-----


-------------------------------------------------------
SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate
online with coworkers and clients while avoiding the high cost of travel and
communications. There is no equipment to buy and you can meet as often as
you want. Try it free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click
_______________________________________________
Html-template-users mailing list
Html-template-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to