Hi! I have this templates:
39 <form action="/i18n/setlang/" method="post"> 40 <input name="next" type="hidden" value="/" /> 41 <select name="language"> 42 {% for lang in LANGUAGES %} 43 <option value="{{ lang.0 }}">{{ lang.1 }}</option> 44 {% endfor %} 45 </select> 46 <input type="submit" value="Go" /> 47 </form> That show my languages in the webpage. I made it with tutorial: http://djangobook.com/en/2.0/chapter19/ (at the end). It works perfectly in some webs, but in others the var LANGUAGES isn't provide automatically, do i need to send it in the views? I've done it sometimes with request.user, example: 10 def show_business(request): 11 objects = Business.objects.filter(user=request.user) 12 return render_to_response('business/show.html', {'objects': objects, *'user': request.user* }) This is my settings options: 6 LANGUAGES = ( 7 ('es', 'Español'), 8 ('en', 'English'), 9 ) ... 71 MIDDLEWARE_CLASSES = ( 72 'django.contrib.sessions.middleware.SessionMiddleware', 73 'django.middleware.locale.LocaleMiddleware', 74 'django.middleware.common.CommonMiddleware', 75 'django.contrib.auth.middleware.AuthenticationMiddleware', 76 ) Thanks for the help! Bye, Álex González -- Please, don't send me files with extensions: .doc, .docx, .xls, .xlsx, .ppt and/or .pptx http://mirblu.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.