Models translations in applications does not work
|Reported by:||me_22||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
There is a project and an application with a model like this:
from django.utils.translation import gettext_lazy as _ class MODEL(models.Model): name = models.TextField(_("NAME"))
When creating the *.po file running manage.py makemessages in the application directory and translating and compiling messages, it does not work in the admin panel. It behaves like there isn't any translation.
All works when I create translations in the project directory, then everything is OK without any changes in the settings.py file or anything else.
I can't have translations for the whole project as I need to have some applications in many projects so I want to translate the models once.