Python Forum
Formatted string not translated by gettext
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Formatted string not translated by gettext
#11
Finally found it! Dance

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!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Why is the 'meta description' html tag not translated? Melcu54 2 999 Oct-15-2022, 10:55 PM
Last Post: Larz60+
  Python convert multi line into single line formatted string karthidec 2 9,569 Dec-23-2019, 12:46 PM
Last Post: karthidec
  How to run a method on an argument in a formatted string Exsul 1 1,713 Aug-30-2019, 01:57 AM
Last Post: Exsul
  How work with formatted text in Python? AlekseyPython 3 2,853 Mar-18-2019, 05:00 AM
Last Post: AlekseyPython
  Want a list utf8 formatted but bytestrings found nikos 28 11,668 Feb-18-2019, 08:26 AM
Last Post: nikos
  How can I write formatted (i.e. bold, italic, change font size, etc.) text to a file? JohnJSal 6 24,213 Jun-19-2018, 03:43 PM
Last Post: JohnJSal

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020