That's true, it's only about the language.

Thank you very much for the reply, Thierry.  I'll be implementing number 
3 I think.

Regards,
Dustin


On 15/11/12 01:52 AM, Thierry Boileau wrote:
> Hello Dustin,
>
> I guess your problem is simpler than the one described by rebeltix, I guess 
> it's only about the language.
> You can have a look at this: http://www.cs.tut.fi/~jkorpela/flags.html.
>
> Our point of view is that the target ServerResource relies only on the client 
> preferences expressed by the request#clientInfo#acceptedlanguages.
> It can be inferred from:
> 1/ the accept-language header (as defined by the browser),
> 2/ the "extension" of the target resources 
> (http://example.com/path/to/resource/resource.html.fr)
> 3/ the uri (http://example.com/fr/path/to/resource/resource.html, or 
> http://fr.example.com/path/to/resource/resource.html).
>
> In cases 2/ or 3/ a Filter is necessary in order to detect the language and 
> set the request#clientInfo#acceptedlanguages property.
> 2/ is already assumed by the TunnelFilter (see 
> http://www.restlet.org/documentation/2.1/jse/api/org/restlet/service/TunnelService.html).
> 3/ requires you to add your own filter.
>
> You can even define a hierarchy between 1/, 2/ and 3/: as users may not be 
> aware of the browser preferences, these preferences have a smaller priority 
> than preferences expressed by 2/ and 3/.
>
> The restlet.com site is based on 1/ and 2/.
>
> By the way, I'm quite surprised by the fact that rebeltix seems to link 
> translation of content and localization of the user in order to present 
> distinct prices and payment methods for example. People can browse Internet 
> from Germany, speak English, and receive its command in another country (and 
> thus the cost could be adjusted according to the shipping address).
>
> Best regards,
> Thierry Boileau
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3028534

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3028880

Reply via email to