Added translateAttr directive to allow localization of attributes.