From 71fc91e86217a906b48ea6c8bfc8f7b40635198a Mon Sep 17 00:00:00 2001 From: Sean Herron Date: Tue, 30 Jul 2013 23:44:08 -0400 Subject: [PATCH 1/3] Changed language field to adhere to RFC 5646 --- schema.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schema.md b/schema.md index 0da3e565..d936d421 100644 --- a/schema.md +++ b/schema.md @@ -263,8 +263,8 @@ Field | title **Cardinality** | (0,n) **Required** | No **Accepted Values** | String -**Usage Notes** | - -**Example** | `{"language":"English"}` +**Usage Notes** | This should adhere to the [RFC 5646](http://tools.ietf.org/html/rfc5646) standard. +**Example** | `{"language":"en-US"}` {.table .table-striped} **Field** | **granularity** From d5e2e0296230e86d232f824fde6356cc72ba1613 Mon Sep 17 00:00:00 2001 From: Sean Herron Date: Wed, 31 Jul 2013 23:13:45 -0400 Subject: [PATCH 2/3] Added additional clarity to language field to comply with RFC 5646 --- schema.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schema.md b/schema.md index d936d421..51905a05 100644 --- a/schema.md +++ b/schema.md @@ -263,8 +263,8 @@ Field | title **Cardinality** | (0,n) **Required** | No **Accepted Values** | String -**Usage Notes** | This should adhere to the [RFC 5646](http://tools.ietf.org/html/rfc5646) standard. -**Example** | `{"language":"en-US"}` +**Usage Notes** | This should adhere to the [RFC 5646](http://tools.ietf.org/html/rfc5646) standard. http://rishida.net/utils/subtags/ provides a good tool for checking and verifying language codes. A language tag is comprised of either one or two parts, the language subtag (such as en for English, sp for Spanish, wo for Wolof) and the regional subtag (such as US for United States, GB for Great Britain, MX for Mexico), separated by a hyphen. Regional subtags should only be provided when needed to distinguish a language tag for another one (such as American vs. British English). +**Example** | `{"language":"en-US"}` `{"language":"en-GB"}` `{"language":"jp"}` `{"language":"es-MX, wo, nv, en-US"}` {.table .table-striped} **Field** | **granularity** From 53f5444699bf177be698dbbfd26d5a03d899f298 Mon Sep 17 00:00:00 2001 From: Sean Herron Date: Wed, 31 Jul 2013 23:18:15 -0400 Subject: [PATCH 3/3] minor typo fix --- schema.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema.md b/schema.md index 51905a05..293e63b2 100644 --- a/schema.md +++ b/schema.md @@ -263,7 +263,7 @@ Field | title **Cardinality** | (0,n) **Required** | No **Accepted Values** | String -**Usage Notes** | This should adhere to the [RFC 5646](http://tools.ietf.org/html/rfc5646) standard. http://rishida.net/utils/subtags/ provides a good tool for checking and verifying language codes. A language tag is comprised of either one or two parts, the language subtag (such as en for English, sp for Spanish, wo for Wolof) and the regional subtag (such as US for United States, GB for Great Britain, MX for Mexico), separated by a hyphen. Regional subtags should only be provided when needed to distinguish a language tag for another one (such as American vs. British English). +**Usage Notes** | This should adhere to the [RFC 5646](http://tools.ietf.org/html/rfc5646) standard. http://rishida.net/utils/subtags/ provides a good tool for checking and verifying language codes. A language tag is comprised of either one or two parts, the language subtag (such as en for English, sp for Spanish, wo for Wolof) and the regional subtag (such as US for United States, GB for Great Britain, MX for Mexico), separated by a hyphen. Regional subtags should only be provided when needed to distinguish a language tag from another one (such as American vs. British English). **Example** | `{"language":"en-US"}` `{"language":"en-GB"}` `{"language":"jp"}` `{"language":"es-MX, wo, nv, en-US"}` {.table .table-striped}