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
  renne.ro...@gmail.com
  http://www.linkedin.com/in/rennerocha
  +55 19 8154-9345


On Tue, Aug 10, 2010 at 3:11 PM, kostia <kostya.demc...@gmail.com> wrote:

> I have a web site. It is www.projector.net.ua. Sometimes it is down.
> I have the latest code here http://github.com/vaxXxa/projector of 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 django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.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 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.

Reply via email to