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?