I figured this out -- not a well-documented feature as far as I can
tell.  I added a documentation ticket: 
http://code.djangoproject.com/ticket/13451

Just add any locale folders you need to include in settings.py as
LOCALE_PATHS, which requires a tuple or list.

For example:

LOCALE_PATHS = (
    '/path/to/some/directory/locale',
)


Or take for example one of my projects based on pinax
(pinaxproject.com -- a collection of django applications that sits
outside of my project folder).  In that settings.py, I have:

import pinax

PINAX_ROOT = os.path.abspath(os.path.dirname(pinax.__file__))

LOCALE_PATHS = (
    os.path.join(PINAX_ROOT, 'locale'),
)


On Mar 4, 1:34 pm, Alessandro Ronchi <[email protected]>
wrote:
> 2010/3/4 Alessandro Ronchi <[email protected]>:
>
>
>
>
>
> > I have a template dir in common with different projects, outside the
> > projects dir.
>
> > Those templates have a locale dir with translations.
>
> > In my projects  I have only the templates that differs from the common.
>
> > The problem is that it cannot use the locale inside the original
> > template dir, but If I make a simbolic link from
>
> > /common/templates/locale
>
> > to
> > /myproject/templates/locale
>
> > it works.
>
> > it is possible to avoid the simbolic link, and have in each dir only
> > translations of its contents?
>
> I searched all the day, without any other solution.
> Is it possible to make a translation of a template dir outside the
> project? It don't read  locale if I put it inside the template dir.
>
> --
> Alessandro Ronchi
>
> http://www.soasi.com
> SOASI - Sviluppo Software e Sistemi Open Source
>
> http://hobbygiochi.com
> Hobby & Giochi, l'e-commerce del divertimento

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

Reply via email to