Re: Initial cut at Locale-based forms in HTML pages

OK, thanks for the clarification, Addison.

Leandro

On 10/14/14, 9:36 AM, "Phillips, Addison" <addison@lab126.com> wrote:

>That's a good point.  However, "fr" is a valid locale. It doesn't have
>some of the things a regionally qualified locale has--a default currency
>for example. But is does have all of the formats that any other locale
>has. Note that ICU provides an API for this sort of thing (ULocale's
>"addLikelySubtags") and CLDR recommends a specific algorithm. [I have a
>version of that for handling Chinese, for example]
>
>One way to think about this is that the @lang is really a "language
>priority list" (see RFC 4647 [1]) with just one item in it [an
>elaboration of this would be to consider the @lang "stack" from enclosing
>elements, but that's complicated to implement]. The last (default) locale
>in the priority list remains that of the browser's runtime. Invalid
>language tags or unavailable locales just don't match anything and you
>fall back. 
>
>Addison
>
>[1] http://tools.ietf.org/html/rfc4647#section-3.4

>
>> -----Original Message-----
>> From: Leandro Reis [mailto:lreis@adobe.com]
>> Sent: Tuesday, October 14, 2014 9:27 AM
>> To: Phillips, Addison; Richard Ishida; public-i18n-core@w3.org
>> Subject: Re: Initial cut at Locale-based forms in HTML pages
>> 
>> Thanks for putting this together, Richard.
>> 
>> I support the use of the lang attribute in the form control for locale
>> identification, but there are certain valid BCP47 values, such as those
>>with
>> just the language tag, that are insufficient to help determine which
>>format to
>> use with numbers, dates, and times. For example, ©øfr©÷ does not provide
>> enough information to determine whether the decimal separator to use
>> should be the comma (as used in France) or the period (as used in
>> Switzerland). Same problem arises with invalid language tags.
>> 
>> For such cases, shall we explicitly specify that a fallback locale
>>(which provides
>> sufficient information) should be used?
>> 
>> Thanks,
>> 
>> Leandro
>> 
>> 
>> 
>> On 10/13/14, 4:01 PM, "Phillips, Addison" <addison@lab126.com> wrote:
>> 
>> >Thanks for this.
>> >
>> >I made a couple of small edits for correctness/clarity. I did not
>> >change the page materially. I'll probably make some comments later
>> >along those lines.
>> >
>> >Addison
>> >
>> >> -----Original Message-----
>> >> From: Richard Ishida [mailto:ishida@w3.org]
>> >> Sent: Monday, October 13, 2014 12:02 PM
>> >> To: public-i18n-core@w3.org
>> >> Subject: Initial cut at Locale-based forms in HTML pages
>> >>
>> >> https://www.w3.org/International/wiki/Locale-based_forms

>> >>
>> >> Still things to add, but thought I'd let you know that I made a
>>start.
>> >> Comments and suggestions welcome.
>> >>
>> >> ri
>> >
>

Received on Wednesday, 15 October 2014 12:48:17 UTC