On Sun, Sep 7, 2008 at 6:27 PM, timc3 <[EMAIL PROTECTED]> wrote:
>
> Hi there,
>
> I have the following directory structions
>
> code/
> -mysite/
> --mysiteapp1/
> --mysiteapp2/
> --locale/
> --settings.py
> --manage.py
> -mysitetemplates
> -mysitestaticmedia
>
> Now when I run django-admin.py makemessages -l se from within mysite/
> I get a django.po file created but its only for the text that I have
> used in my views. Its not looking in the template directory at all.
>
> I read that in settings.py I have to put LOCALE_PATHS in there, but it
> doesn't seem to work:
>
> LOCALE_PATHS = (
>    '/Volumes/Development/code/mysitetemplates',
> )
>
> But still no joy. Am I running it in the wrong place?

I'd say that for being able to scan you project's locale/ subdir
(althouth this isnĀ“t obvious from the docs) and the dirs listed in
LOCALE_PATHS you need specify the Python module path of
your settings file with the --settings command line switch
as explained in:

http://docs.djangoproject.com/en/dev/topics/i18n/#using-translations-in-your-own-projects

You might also want to take a look at

http://docs.djangoproject.com/en/dev/topics/i18n/#message-files

(Yes, we need to refactor and enhance that document.)

Regards,

-- 
 Ramiro Morales

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to