Hi,
I am using gettext successfully for my program, except for one string that needs formatting. Program runs properly, but the string remains untranslated (while others are). I tried different syntax but none has worked… Any idea would be very welcome!
Here is the recalcitrant string:
Yvan
I am using gettext successfully for my program, except for one string that needs formatting. Program runs properly, but the string remains untranslated (while others are). I tried different syntax but none has worked… Any idea would be very welcome!
Here is the recalcitrant string:
…
dialog.format_secondary_text(
_("Some changes where made for {first_name} {last_name}. "
"Do you want to save these changes?").format(
first_name=self.people[self.personIndex][2],
last_name=self.people[self.personIndex][1]))
…The relevant section in .po file:msgid ""
"Some changes where made for {first_name} {last_name}. Do you want to save "
"these changes?"
msgstr ""
"Des modifications ont été faites pour {first_name} {last_name} : voulez-vous les enregistrer ?"Regards,Yvan
