Instead of qtpl and l18n, I used html/template and some functions. This is experimental, but overall looks much more maintainable in the future. Thinking...