You could try using the set_language redirect view to set your language http://docs.djangoproject.com/en/1.1/topics/i18n/internationalization/#the-set-language-redirect-view
On Aug 10, 8:12 pm, Renne Rocha <[email protected]> wrote: > I don't know if it will help you, but reading the chapter of > internationalization in the book "The Definitive Guide To Django" I saw this > paragraphs: > > LocaleMiddleware tries to determine the user's language preference by > following this alghorithm: > > - First it looks for a django_language key in the current user's section > - Failing that, it looks for a cookie called django_language > - Failing that, it looks the Accept-Language HTTP header. This header is > sent by your browser and tells the server which language(s) you prefer, in > order of priority. Django tries each language in the header until it finds > one with available translations. > - Failing that, it uses the global LANGUAGE_CODE setting. > > I haven't tried, but it seems that the LANGUAGE_CODE is the last setting > that Django will use to determine what language the site will appear.... > > Say me if it helps you. Please. > > Renne Rocha > [email protected] > http://www.linkedin.com/in/rennerocha > +55 19 8154-9345 > > > > On Tue, Aug 10, 2010 at 3:11 PM, kostia <[email protected]> wrote: > > I have a web site. It iswww.projector.net.ua. Sometimes it is down. > > I have the latest code herehttp://github.com/vaxXxa/projectorof it. > > I have installed rosetta module to translate the English version of my > > site into Russian and Ukrainian. I did this. You may see it in > > projector/locale folder. > > I setup my settings.py to use 'ru' language just for test. > > > You can see my base.html file which is getting LANGUAGE_CODE var > > always as 'en', however in settings.py i did specify the 'ru' one. > > > I have read docs and djangobook (the same as docs, but more > > comfortable as it is displayed on one single page) for several times > > and I can't understand why my site is still in English. > > > I guess some guru can look at the code above and find an error. If I > > will be so lucky) > > > -- > > You received this message because you are subscribed to the Google Groups > > "Django users" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<django-users%2bunsubscr...@google > > groups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. 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.

