add translation for attributes