#9710: Models translations in applications does not work
----------------------------------+-----------------------------------------
Reporter: me_22 | Owner: nobody
Status: new | Milestone:
Component: Internationalization | Version: SVN
Keywords: | Stage: Unreviewed
Has_patch: 0 |
----------------------------------+-----------------------------------------
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.
--
Ticket URL: <http://code.djangoproject.com/ticket/9710>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---