alternative setLocale