python gettext error: Can't convert '__proxy__' object to str implicitly python gettext error: Can't convert '__proxy__' object to str implicitly python python

python gettext error: Can't convert '__proxy__' object to str implicitly


__proxy__ is translation string whose actual translation result isn’t determined until the object is used in a string (i.e. what happens when you use ugettext_lazy instead of ugettext here).

Documentation


According to the given Documentation link:

Calling str() with the lazy translation as the argument will generate a string in the current locale.