issue #53: use validateLocale instead of setLocale