Removed obsolete has_locale helper.