lets check if locales is empty but auto_locale_pattern true and if that is the case throw an exception. that situation makes no sense.