Language_list() checks if the locale module is enabled and if it is not, sets a default language to "en." In actuality, many nodes from sites that existed before turning on locale, the language is empty, that is "Language neutral." The list does not contain this value, so calling modules, including locale itself, must add that code to make their checks accurate. The list should include the neutral value.

Comments

aspilicious’s picture

Isn't the default "und" these days?

Status: Active » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.