Project

General

Profile

Actions

Defect #1389

open

Support "x-*" language codes by removing length limit

Added by Arthaey Angosii over 16 years ago. Updated 10 months ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
I18n
Target version:
-
Start date:
2008-06-05
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

Forcing language codes to be <= 5 characters does not allow for "x-*" codes, which can be arbitrarily long:

"The most widely used standard for identifying languages in Internet documents (such as in HTTP headers or HTML metadata or in the XML lang attribute) is RFC 4646 (formerly RFC 3066). In that standard, a three-letter identifier is interpreted as being a code from the ISO 639-2 standard. RFC 4646 offers an extension mechanism of tags beginning with x- to handle custom codes for languages not covered in the standard." (Source: http://www.ethnologue.com/codes/)

There are also "i-*" codes for grandfathered codes. See also the w3c HTML4 spec for the lang attribute and RFC 17666.


Files

095_remove_language_length_limit.rb (213 Bytes) 095_remove_language_length_limit.rb set users.language column limit to nil Arthaey Angosii, 2008-06-05 20:02
Actions #1

Updated by Jean-Philippe Lang about 15 years ago

  • Priority changed from Normal to Low
Actions #2

Updated by Etienne Massip almost 13 years ago

  • Category set to I18n
Actions #3

Updated by Go MAEDA 10 months ago

I think we should make this change only when it is really necessary to deal with language codes beginning with "x-“ or “i-".

Actions

Also available in: Atom PDF