Hello, I've made a site where I use language settings. The problem I have:
I have the following code {% ifequal request.LANGUAGE_CODE "nl" %} do this {% endifequal %} On some browsers this works on other browser this does not work as {{ request.LANGUAGE_CODE }} gives "nl-be" To make sure the language code worked I added in my settings file. 'django.middleware.locale.LocaleMiddleware' and this snippet in the settings: LANGUAGE_CODE = 'nl-BE' ugettext = lambda s: s LANGUAGES = ( ('nl', ugettext('Dutch')), ) What makes {{ request.LANGUAGE_CODE }} give in one browser NL and in the other nl-be ... I don't have set any cookie nor do I difine on any other place the language. Yet the results are diffrent from browser to browser. I thought this snippet made sure I can check the language on the settings and it would return "nl" and not "nl-be": LANGUAGES = ( ('nl', ugettext('Dutch')), ) If I don't give that snippet the {{ request.LANGUAGE_CODE }} would give the browser language and not the settings language. Can someone explain it to me more clear? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---