[Answered ]-Pgettext not showing the untranslated value in django admin

2👍

This is the solution:

pgettext_lazy(u'context', u'title')

0👍

Found it. pgettext_lazy returns a proxy object. Casting to unicode does the trick:

unicode(pgettext_lazy('context', 'title'))

EDIT:

This is not the answer. Because this way manage.py makemessages doesn’t pick up the line as ‘marked translated’.

Leave a comment