fabi1cazenave / webL10n

Client-side internationalization / localization library
http://fabi1cazenave.github.com/webL10n/
279 stars 71 forks source link

Case-insensitive language comparisons per RFC 4646 #51

Closed Rob--W closed 9 years ago

Rob--W commented 9 years ago

Fixes #35, supersedes #36 Fixes #46, supersedes #47

http://tools.ietf.org/html/rfc4646#page-6

The tags and their subtags, including private use and extensions, are to be treated as case insensitive: there exist conventions for the capitalization of some of the subtags, but these MUST NOT be taken to carry meaning.

http://tools.ietf.org/html/rfc4646#section-4.4

Canonicalization of language tags does not imply anything about the use of upper or lowercase letters when processing or comparing subtags (and as described in Section 2.1). All comparisons MUST be performed in a case-insensitive manner.

fabi1cazenave commented 9 years ago

Thanks again @Rob--W