please revert the changes in Locale. The class is deprecated and should not be changed anymore.