Hi fellows. I'm using Django 1.1 version.
I make some languages in my settings.py LANGUAGE_CODE = 'en' LANGUAGES = ( ('en','English'), ('mn','Mongolia'), ('ru','Russia'), ) LANGUAGE_COOKIE_NAME = 'lang' Then create po and mo files . ( using django-admin.py makemessages -l ru , mn , en , django-admin.py compilemessages) So Mongolian translation is doesn't work ? (i'm wondering :D) I'm debugging some views in my url.py i put that code. (r'^i18n/setlang/$', 'public.views.set_language'), that's calling below view. public.views: so def set_language(request): print 'CHANGING LANGUAGE' next = request.REQUEST.get('next', None) print 'next:' , next if not next: next = request.META.get('HTTP_REFERER', None) print 'next 1:' , next if not next: next = '/' print 'next 2:' , next response = http.HttpResponseRedirect(next) if request.method == 'POST': lang_code = request.POST.get('language', None) print 'lang_code',lang_code *print 'istrue' , check_for_language(lang_code)* if lang_code and check_for_language(lang_code): if hasattr(request, 'session'): request.session['django_language'] = lang_code print 'hasattr' else: print 'no attr' response.set_cookie(settings.LANGUAGE_COOKIE_NAME, lang_code) return response When i choose Russia or English * print 'istrue' , check_for_language(lang_code)* on console : ss True * * But when i choose Mongolia that's print on console : ss False What happend ? help me Regards Tsolmon. * * -- 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.