Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

There is a "code" for language (English, Spanish, etc...) not defined?

In my application there is language detection. Languages have some identification code like en for English, pt for Portuguese, fr for French, etc.

Is there a language code for the case when a language cannot be identified (unknown language)?

like image 775
Renato Dinhani Avatar asked Mar 31 '12 03:03

Renato Dinhani


1 Answers

If your system allows for three-letter codes, the ISO 639-2 standard says:

If there is language content, but the specific language cannot be determined, a special identifier is provided by ISO 639-2:

und (Undetermined)

like image 95
John Hatton Avatar answered Sep 28 '22 08:09

John Hatton