correct test for locale enum (refs #4250)