Added support for translating html attributes