Ok guys, I was missing the LOCALE_PATHS in settings.py, now it works 
properly.


Il giorno venerdì 17 agosto 2012 04:15:59 UTC+2, Jojo ha scritto:
>
> Hi, the subject should be a little clear so, this is the project folder 
> structure
>
> project folder
>  locale
>   en
>     LC_MESSAGES
>       django.po
>   es
>     LC_MESSAGES
>       django.po
>   it
>     LC_MESSAGES
>       django.po
>   project
>     __init__.py
>     mochileros
>     settings.py
>     urls.py
>     wsgi.py
>   application folder
>     models.py
>     views.py
>
>
> I have created a locale folder and after I launched the django-admin.py 
> makemessages command as explained in the documentation, but when I open a 
> .po file (the command create the files actually), I can't found 
> the msgid/msgstr relative to the translation instruction in my template 
> files.
> This is my base template.
>
> {% load i18n %} 
>
> <!DOCTYPE html>
> <html>
> ...
> <div id="MENU">
> <a class="MENU" href="{% url views.home %}">{% trans "home" %}</a>
> <a class="MENU" href="{% url views.contacts %}">{% trans "contacts" %}</a>
> <a class="MENU" href="{% url views.about_us %}">{% trans "about_us" %}</a>
>                 ...
>         </div>
>
>
> I have added the LocaleMiddleware in the settings file so, do I forgot 
> something?
> Any suggestions?
>
>
> Thank you in advance
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/U0ZiGabiSUgJ.
To post to this group, send email to django-users@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