Added setLocaleFromPath