1👍
✅
You can work with the gettext_lazy(…)
function [Django-doc] to work with lazy translatable strings:
from django.utils.translation import gettext_lazy as _
PAIS = (
('United States', _('United States')),
('Canada', _('Canada')),
('Other', _('Other')),
)
This will add translations for United States
, Canada
, etc. when you make translations, and translate the text when the form is rendered.
For more information, see the Lazy translations section of the documentation.
Source:stackexchange.com