fixes #2179 and validates that LANGUAGE_CODE is in LANGUAGES

fixes #2179