Review use of LANGUAGE_NOT_SPECIFIED vs. LANGUAGE_NOT_APPLICABLE vs. LANGUAGE_MULTIPLE

Created on 7 March 2012, almost 13 years ago
Updated 16 February 2023, almost 2 years ago

Drupal 7 uses LANGUAGE_NONE (und) which is renamed to LANGUAGE_NOT_SPECIFIED in #965300: Change LANGUAGE_NONE to LANGUAGE_NOT_SPECIFIED; add LANGUAGE_NOT_APPLICABLE and LANGUAGE_MULTIPLE β†’ to better explain what it is. Now LANGUAGE_NONE was used for various roles in Drupal 7 including at places where we did not know language (proper use) to where we knew it did not have language (where LANGUAGE_NOT_APPLICABLE should be used now) including where we just said it applies to all languages (for paths for example).

We should review and update the use of 'und' now that we have more language variants so we can better say what is the situation in each case. This can IMHO be done in parallel with #1471432: Rework language_list(), let people use more special languages β†’ but is postponed on #965300: Change LANGUAGE_NONE to LANGUAGE_NOT_SPECIFIED; add LANGUAGE_NOT_APPLICABLE and LANGUAGE_MULTIPLE β†’ needing to land.

The Drupal 7 usage of LANGUAGE_NONE (for entities) is explained in the Language support for entity fields documentation.

πŸ“Œ Task
Status

Closed: outdated

Version

9.5

Component
Language systemΒ  β†’

Last updated 1 day ago

  • Maintained by
  • πŸ‡©πŸ‡ͺGermany @sun
Created by

πŸ‡­πŸ‡ΊHungary GΓ‘bor Hojtsy Hungary

Live updates comments and jobs are added and updated live.
  • D8MI

    (Drupal 8 Multilingual Initiative) is the tag used by the multilingual initiative to mark core issues (and some contributed module issues). For versions other than Drupal 8, use the i18n (Internationalization) tag on issues which involve or affect multilingual / multinational support. That is preferred over Translation.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ͺπŸ‡ΈSpain penyaskito Seville πŸ’ƒ, Spain πŸ‡ͺπŸ‡Έ, UTC+2 πŸ‡ͺπŸ‡Ί

    \Drupal\Core\Language\LanguageInterface contains those constants and when each of those is documented.

Production build 0.71.5 2024