I have a similar problem found here. Why doesn't Django create language files from template files in another directory?
However, I do not understand the solution. My structure:
Project App1 locale templates App2 locale templates templates somefilethatneedstranslation.html
Now when I run this command from App1:
python ../manage.py App1 -l nl
It nicely creates a po file for App1 templates in the App1 locale folder
However, I want my global templates to be translated as well. Note. I DO NOT want the locale folder in the root of my project, so I tried to add a symbolic link to the templates folder from App1, but it does not add the translation results to the file App1 / locale / po
from App1 folder
ln -s ../templates/locale/* translations python ../manage.py App1 -l nl --symlinks
What am I missing?
Note:
from templates folder
python ../manage.py templates -l nl
may work, but it will not be because, obviously, the templates are not an installed application, it seems that I am missing the obvious ...
source share