Questions tagged [makemessages]
18 questions
0
votes
1 answer
How to best translate strings passed as variable to a Django module?
I'm doing my first steps in Django and am trying to get translations of text to work which I'm passing into the application through an .ini file.
Say my init.ini is:
[test]
GREETING = Hello World
and in my settings.py, I'm doing:
from six.moves…

frequent
- 27,643
- 59
- 181
- 333
0
votes
1 answer
Is there any way to execute custom makemessages command by running "django-admin makemessages -l ja"?
I'm using Django1.11.5 and I created makemessages.py file in "my-app/management/commands/" directory to customise makemessages command.
And I made it to execute this command by running "python ../manage.py makemessages" from my-app directory.
But I…

Taiyo Komyama
- 71
- 3
0
votes
1 answer
Django Translation Issue: makemessages command not detecting new {% blocktrans %} tags
I have recently taken over a django project which contains a locale folder. Since then I have added many new {% blocktrans %} tags to the html files. However when I use the command:
python manage.py makemessages -l vi
to detect new tags, I get an…

Ali Abdallah
- 33
- 10