It worked. Thanks a lot.
On Sat, Nov 12, 2011 at 9:06 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Admin does > > <select name="adminlanguage" onchange="var date = new > Date();cookieDate=date.setTime(date.getTime() > > +(100*24*60*60*1000));document.cookie='adminLanguage='+this.options[this.selectedIndex].value > +'; expires='+cookieDate+'; path=/';window.location.reload()"> > {{for language in T.get_possible_languages():}} > <option {{=T.accepted_language==language and > 'selected' or ''}} >{{=language}}</option> > {{pass}} > </select> > > and in a model > > if 'adminLanguage' in request.cookies and not > (request.cookies['adminLanguage'] is None): > T.force(request.cookies['adminLanguage'].value) > > This code should work for any app. > > > On Nov 11, 9:04 pm, Shiv <shiv.veerashe...@gmail.com> wrote: > > Hello guys, > > > > Need your help. > > I want to put language selection dropdown in my application. (exactly > > like we get on web2py admin interface). > > > > Can any one help me please? > > > > Thanks & Regards > > Shiv > -- Thanks & Regards Shiv