allow setting of the locales dynamically
fix method name and added explanation for method