Re: Translation problem when not logged in

2006-07-13 Thread Gribbie
Added the missing LANGUAGES bit to settings.py and it works! Added: English Nederlands to the template. Method in views.py is: def customer_welcome(request): return render_to_response('customer_welcome.html', 'request':request, 'user':request.user}) And i18n sorts it all out! Thank

Re: Translation problem when not logged in

2006-07-13 Thread Nebojsa Djordjevic
Gribbie wrote: > Soory - that should read "...when I got to the next screen the selected > language is lost and so the page is in English" Check your settings.py: MIDDLEWARE_CLASSES = ( "django.middleware.common.CommonMiddleware", "django.contrib.sessions.middleware.SessionMiddleware",

Re: Translation problem when not logged in

2006-07-13 Thread Gribbie
Soory - that should read "...when I got to the next screen the selected language is lost and so the page is in English" --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this grou

Re: Translation problem when not logged in

2006-07-13 Thread Gribbie
I've now got Nederlands in my template - clicking on it translates into Dutch which is great BUT when I go to the next screen the language option is lost :-( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django d

Re: Translation problem when not logged in

2006-07-12 Thread Gribbie
I do have {% load i18n %} in my template already - will try your function tomorrow, it's home time now :-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email

Re: Translation problem when not logged in

2006-07-12 Thread Nebojsa Djordjevic
Gribbie wrote: > I've got a click the flag on the welcome screen - when they 1st load > the page it is in english - it uses the last 2 lines of the method: > > request.session['django_language']='en-uk' > return render_to_response('welcome.html', {'request':request, > 'user':request.u

Re: Translation problem when not logged in

2006-07-12 Thread Gribbie
If I display {{request.sesssion.django_language}} on my template it is "en-uk" on 1st load which is correct. I then click the french flag which passes lang='fr' and... If I use HttpResponseRedirect then the page is translated but {{request.sesssion.django_language}} is still 'en-uk'. If I use r

Re: Translation problem when not logged in

2006-07-12 Thread Gribbie
Hiya I've got a click the flag on the welcome screen - when they 1st load the page it is in english - it uses the last 2 lines of the method: request.session['django_language']='en-uk' return render_to_response('welcome.html', {'request':request, 'user':request.user}) If they click

Re: Translation problem when not logged in

2006-07-12 Thread Nebojsa Djordjevic
Gribbie wrote: > Hi Nebojsa > > Thanks for your reply - we are using django internationalisation. It > all works fine when logged in it's just the introduction pages before > the user logs in where we have the problem. Well, if django i18n engine can't find out proffered locale from the browse

Re: Translation problem when not logged in

2006-07-12 Thread Gribbie
Hi Nebojsa Thanks for your reply - we are using django internationalisation. It all works fine when logged in it's just the introduction pages before the user logs in where we have the problem. Many thanks Gribbie --~--~-~--~~~---~--~~ You received this message

Re: Translation problem when not logged in

2006-07-12 Thread Nebojsa Djordjevic
Gribbie wrote: > Hi > > I have an application which when the user is logged in translates > using: > request.session['django_language']='en-uk' or what ever language > code they select. > > This works fine when the user is logged in but I'd like to offer the > user the option to translate th

Translation problem when not logged in

2006-07-11 Thread Gribbie
Hi I have an application which when the user is logged in translates using: request.session['django_language']='en-uk' or what ever language code they select. This works fine when the user is logged in but I'd like to offer the user the option to translate the "welcome" screen. I've done th