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

Re: [A&E] Last Call comments (2): discovery & localization

From: Robin Berjon <robin@berjon.com>
Date: Wed, 23 Sep 2009 15:38:12 +0200
Cc: Marcin Hanclik <Marcin.Hanclik@access-company.com>, "public-webapps@w3.org" <public-webapps@w3.org>
Message-Id: <286E9AAB-1ABA-4E2B-8187-EE4492C1F75E@berjon.com>
To: Marcos Caceres <marcosc@opera.com>
On Sep 21, 2009, at 20:08 , Marcos Caceres wrote:
>> 5.1
>>
>> Localization
>>
>> Shall it be possible for the widget to programmatically discover  
>> the localization path it was loaded from (section 9 of P&C)?
>
> Yes, you can check its URI. If the implementation supports the window
> object, then it possible.

How? window.location will return widget:///foo.html irrespective of  
whether the runtime loaded /foo.html or /locales/fr/foo.html.

-- 
Robin Berjon - http://berjon.com/
Received on Wednesday, 23 September 2009 13:38:54 GMT

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