I read about it, but I wasn't sure if it contain the first prefered language set in the browser of visitor...
But I think, it's what I was searching for. Thanks Bruno! Richard On Thu, Jul 19, 2012 at 3:17 PM, Bruno Rocha <rochacbr...@gmail.com> wrote: > *T.accepted_languag*e does not helps? > > On Thu, Jul 19, 2012 at 3:59 PM, Richard Vézina < > ml.richard.vez...@gmail.com> wrote: > >> Hello, >> >> I need to render a form with ordered input label in alphabetic order base >> on the browser language, so I thought that that I could get the user setted >> browser languages from request.env.http_accept_language in order to >> determine which sorted label to return, >> but request.env.http_accept_language returns a string which as far as I >> understand is a list of tuples. >> >> Do the browser accepted language are in order of preference >> in request.env.http_accept_language?? >> >> I would like to do something like this : >> >> if request.env.http_accept_language == 'en': >> ... >> elif request.env.http_accept_language == 'fr': >> ... >> >> So, is there an other environnement variable that can help me more then >> having to split request.env.http_accept_language?? >> >> Thanks. >> >> Richard >> >> -- >> >> >> >> > > -- > > > > --