Hello all,

I'm with the Government of Canada, which has french and english as the 
official languages.  We're in the process of repairing our english-only 
site, but I wanted to know the most appropriately RESTful way of 
specifying language preferences.

One way is to include a /$LOCALE/ into the URL, but it doesn't sound 
RESTful since it doesn't necessarily apply to the resource in that way.  
Adding it as a query parameter sounds relatively safe, though.  Using 
the browser preference is also an option.

Any thoughts on this?  Opinions from others who have actually 
implemented it?  Something that could lead to a nice dictionary lookup 
to get the translated text is also preferable.

I found this link that RebelTix has:
http://blog.rebeltix.com/2011/03/internationalization-in-a-restful-way/

Many thanks!  I'm enjoying my copy of the Restlet In Action book.

Dustin

-- 
Dustin N. Jenkins | 250-363-3101


Dustin N. Jenkins | Tel/Tél: 250.363.3101 | [email protected]

facsimile/télécopieur: (250) 363-0045

National Research Council Canada | 5071 West Saanich Rd, Victoria BC. 
V9E 2E7

Conseil national de recherches Canada | 5071, ch. West Saanich, Victoria 
(C.-B) V9E 2E7

Government of Canada | Gouvernement du Canada

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

Reply via email to