Added support to localize attributes.