getting locales to work with xml configuration