Django custom locale directory

Posted by valya on Stack Overflow See other posts from Stack Overflow or by valya
Published on 2010-03-29T19:03:00Z Indexed on 2010/03/29 19:23 UTC
Read the original article Hit count: 565

Filed under:
|
|

I'm developing a project with two different sites, divided by language. Maybe I was terribly wrong, but now my directory structure looks like:

/ruapp/settings.py # SITE_ID = 1 
/ruapp/manage.py 
/enapp/settings.py # SITE_ID = 2 
/enapp/manage.py 
/common/urls.py 
/common/ # almost every other file 
/common/templates/ # templates with {% trans %} 
/locale/ # with locales ru-ru and en-us, generated by calling 
makemessages from the root of all this structure

How to tell django about the locale? It does not seem like it will find the /locale/ folder by itself

© Stack Overflow or respective owner

Related posts about django

Related posts about i18n