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/...

Comments

tinko’s picture

Status: Active » Fixed
StatusFileSize
new1.18 KB

Hello,

The link is added to description.

Greetings

tinko’s picture

Status: Fixed » Needs review

Hello,

The link is added to description.

Greetings!

tinko’s picture

tinko’s picture

ifrik’s picture

Version: 7.23 » 7.59
Status: Needs review » Needs work
Issue tags: +DevDaysLisbon
StatusFileSize
new6.57 KB

The 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.

pawandubey’s picture

Version: 7.59 » 7.61
Status: Needs work » Needs review
StatusFileSize
new1016 bytes
new5.37 KB

I 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.

abhishek_v’s picture

Patch provided by pawandubey works without any problem in D 7.x and changes the language code text as expected.

anantjain60’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

Version: 7.61 » 7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

poker10’s picture

This 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.

  • mcdruid committed 648c3345 on 7.x
    Issue #2133309 by pawandubey, tinko, matsbla, ifrik, poker10: Change...
mcdruid’s picture

Status: Reviewed & tested by the community » Fixed

The one test failure looks completely unrelated.

Thanks everyone that contributed!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.