Improve setting locales