W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2010

RE: Comment on Widget Interface...

From: Phillips, Addison <addison@lab126.com>
Date: Thu, 30 Sep 2010 11:57:33 -0700
To: Arthur Barstow <art.barstow@nokia.com>
CC: public-webapps <public-webapps@w3.org>, "public-i18n-core@w3.org" <public-i18n-core@w3.org>
Message-ID: <C7A5719F1E562149BA9171F58BEE2CA412A13D3D55@EX-IAD6-B.ant.amazon.com>
> Are you talking about a script using navigator.language?

Not really, unless you expect navigator.language to be how widget containers expose the runtime locale.

Widget P&C describes how a widget is packaged (which can include localization) and how it is configured (what the widget container should do when it "unpackages" and runs the widget). The container determines what the locale is going to be for the widget (which, as you pointed out in your earlier reply, is implementation specific). This, in turn, affects what language the 'name' or other fields returned by the Widget Interface are in. I'm suggesting that you need to provide programmatic access to this value, which may be distinct from navigator.language. Text direction for those fields might also need to be exposed.

Addison

Addison Phillips
Globalization Architect (Lab126)
Chair (W3C I18N, IETF IRI WGs)

Internationalization is not a feature.
It is an architecture.

> -----Original Message-----
> From: Arthur Barstow [mailto:art.barstow@nokia.com]
> Sent: Thursday, September 30, 2010 11:15 AM
> To: Phillips, Addison
> Cc: public-webapps; public-i18n-core@w3.org
> Subject: Re: Comment on Widget Interface...
> 
> 
>   On 9/30/10 11:51 AM, ext Phillips, Addison wrote:
> > Otherwise how can the script calling the interface determine what
> language it is getting for the name, shortname, etc.? Or what
> locale the widget is actually using in its runtime? Obtaining this
> would be useful if the script were to request content or data
> formatting remotely (or do so locally using the JavaScript I18N
> extension that is being developed).
> Are you talking about a script using navigator.language?
> 
> -Art Barstow
Received on Thursday, 30 September 2010 18:58:05 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:40 GMT