4👍
Django will comment-out all messages that are no longer in your code. It won’t remove them, so you won’t lose it, but that way this messages won’t end up in compiled .mo file.
2👍
I was facing a similar problem with 3rd party apps. makemessages did not include them in the .po file and when adding them manually makemessages was commenting them out next time.
In my case I had the virtual env symlinked into the project folder. To make makemessages see those 3rd party apps I had to add -s
./manage.py makemessages -a -s -l de -i faker -i openid -i gunicorn
At the same time I want to exclude some apps from translations with -i
- What is the difference between `assertIn` and `assertContains` in Django?
- How to display a custom error page for HTTP status 405 (method not allowed) in Django when using @require_POST
- Pip install Django on python3.6
- Coerce in django forms
Source:stackexchange.com