danmcb has asked for the wisdom of the Perl Monks concerning the following question:
I am making up a website that contains only static pages, using Template Toolkit. Original pages are in Dutch, but an English version is also required. So I will have template pages that look like this:
<p>Ik woon in Antwerpen.</p>
I need an easy way to rip these strings out of the xhtml-like templates (no worries if the odd span or b tag gets left in, but paragraphs should be intact), and writes them into a file(s) to be translated. The template also needs to be re-written as (something like) ...
<p>[% _tx(Ik woon in Antwerpen.) %]</p>
... so that TT can make the relevant substitution at the final pass
Now, I am far from the first to travel this road ... so I don't want to be making any new wheels. Does anyone know where I can borrow some old ones that work well enough?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to build a static multilanguage site with TT?
by Anonymous Monk on Nov 28, 2008 at 06:37 UTC | |
by danmcb (Monk) on Sep 28, 2009 at 13:52 UTC |