I am having problems in translating a string.
Here is my view code:
advice= _("Password must contain at least 1 number or special character")
sentence= advice + " ("+ special_characters + ")"
response_array.append(sentence)
But when I build the po file with django-admin.py makemessages --all
, I get a strange .po file:
#: .\mainsite\views.py:131
msgid "Password must contain at least 1 number or special character"
msgstr ""
"Le mot de passe doit contenir au moins 1 chiffre ou un caractère spécial"
I don't succeed in figuring out what is going on. I was waiting for something like:
#: .\mainsite\views.py:131
msgid "Password must contain at least 1 number or special character"
msgstr "Le mot de passe doit contenir au moins 1 chiffre ou un caractère spécial"