16

What is the difference between Language: Not specified and Language: Not applicable in Drupal 8 In the context of multilinguality ?

There was no such distinction in Drupal 7 (and 6, IIRC) and it seems to me a bit redundant in comparison to the Drupal 7 method of Language: Natural vs Language: name. I also didn't find any documentation about this in a quick Google search about the difference and thought it would be nice if we would have an explanation here.

13

Not applicable means that we know that the very concept of Human languages doesn't apply to this textual piece of content. A relevant example for such content would be Binary code.

For more see http://www.w3.org/International/questions/qa-no-language#nonlinguistic.

Not specified means we don't know if the text might or might not include human-language content.

For more see http://www.w3.org/International/questions/qa-no-language#undetermined.

(Both "see more" links are taken from the code documentation in \Drupal\Core\Language\LanguageInterface which explains those constants quite well).


In general, both options makes no difference to how content is displayed, but they let you treat differently to content on your site if you'd wanted to (in views, custom code, ...)

  • 1
    Berdir, I write this mainly for the readers to come - I understand that "Language: Not specified" is conceptually equal to the Drupal 7's "Language natural"... – JohnDoea Apr 10 '16 at 20:02
  • 2
    Correct, it is and not applicable was a new option that was added in Drupal 8. – Berdir Apr 10 '16 at 20:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.