I want to translate a django form. How to translate field labels?
I tried field.label=ugettext_lazy(field.label) but the labels are not populated in the django.po file
Perhaps I understood the wrong idea of โโugettext_lazy, I think
In simple words, I want field labels to fit in the django.po file.
Other translations done using the ugettext and {% trans %} tags work well
I was able to translate the fields based on the model by setting verbose_name , but when I try this for the form field, I get a TypeError
user1077344
source share