Translation debugging added.
Make templates compatible to pybabel parsing.