you should include {% load i18n %} tag in every file you use translation

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

> My base.html has a header:
>
> {% load i18n %}
>
> {% get_current_language as LANGUAGE_CODE %}
>
>
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://
> www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
>
> <html xmlns="http://www.w3.org/1999/xhtml"; lang="{{ LANGUAGE_CODE }}"
> xml:lang="{{ LANGUAGE_CODE }}">
>
> <head>
>
>        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"
> />
>
>        <meta http-equiv="Content-Language" content="{{ LANGUAGE_CODE }}" />
>
>        ...
> </head>
>
>
> The LANGUAGE_CODE in settings is:
>
> LANGUAGE_CODE = 'ru'
>
>
>
> #multilingual
>
> LANGUAGES = (
>
>    ('en', 'English'),
>
>    ('ru', 'Russian'),
>
>    ('uk', 'Ukrainian'),
>
> )
>
>
>
> Why after reloading the web server and browser (before cleaning from
> history and cookies) I see the English web site and not a Russian one?
>
> I have already created language files and translated with rosetta.
>
> Why I'm so idiot?
>
> --
> 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