Sep-02-2022, 08:46 PM
Finally found it!
The code was correct (and I believe your suggestion too), but during my tests I did not bother about the string marked "fuzzy" in my .po file (I though that lines beginning by "#" where completely ignored by GNU gettext tools). Because of this, the string was not included to the .mo file by "msgfmt".
I also told you that other string using format() were not translated, but this was because another error in my code.
Thanks Larz60+ for your help!

The code was correct (and I believe your suggestion too), but during my tests I did not bother about the string marked "fuzzy" in my .po file (I though that lines beginning by "#" where completely ignored by GNU gettext tools). Because of this, the string was not included to the .mo file by "msgfmt".
I also told you that other string using format() were not translated, but this was because another error in my code.
Thanks Larz60+ for your help!