I have suggestion for the page where we add languages: "admin/config/regional/language/add"
Under the field "Language code", there is a link to http://www.ietf.org/rfc/rfc4646.txt that explain how the language tags works in 19 000 words. Better to link here so people can get simple information and search for their language tag directly:
http://people.w3.org/rishida/utils/subtags/http://people.w3.org/rishida/...

| Comment | File | Size | Author |
|---|---|---|---|
| #6 | language_code_changed_similar_to_D8.png | 5.37 KB | pawandubey |
| #6 | link_for_language_code_identifier-2133309-6.patch | 1016 bytes | pawandubey |
| #5 | Add_language_d86.png | 6.57 KB | ifrik |
| Screenshot from 2013-11-11 16:07:16.png | 13.25 KB | matsbla | |
| #1 | link_for_language_code_identifier-2133309-1.patch | 1.18 KB | tinko |
Comments
Comment #1
tinko commentedHello,
The link is added to description.
Greetings
Comment #2
tinko commentedHello,
The link is added to description.
Greetings!
Comment #3
tinko commentedComment #4
tinko commentedComment #5
ifrikThe UI text is changed in Drupal 8 to
Use language codes as defined by the W3C for interoperability. Examples: "en", "en-gb" and "zh-hant".linking to http://www.w3.org/International/articles/language-tags/So it would make sense to backport that wording to Drupal 7 instead of coming up with something different again.

Comment #6
pawandubey commentedI have changed the language code text to make it similar to Drupal 8. Attached is the screenshot along with the patch.
Please review the same and let me know your feedback.
Comment #7
abhishek_v commentedPatch provided by pawandubey works without any problem in D 7.x and changes the language code text as expected.
Comment #8
anantjain60 commentedComment #10
poker10 commentedThis looks good, thanks!
In D10 there is a same message with the same URL: https://git.drupalcode.org/project/drupal/-/blob/10.1.x/core/modules/language/src/Form/LanguageFormBase.php#L68.
Comment #12
mcdruid commentedThe one test failure looks completely unrelated.
Thanks everyone that contributed!