Re-implemented report translation support.

The HTML is getting a bit messy now, but it works.