I know this is an older post, but since you had no clue what causes this I might add some clarity
cage wrote: ↑Monday 23rd January 2023 8:30pm
fr.po:19: 'msgid' and 'msgstr' entries do not both end with '\n'
fr.po:35: 'msgid' and 'msgstr' entries do not both end with '\n'
msgfmt: found 2 fatal errors
Every time you compile a translatable project, the translation files get checked/updated.
You translations files should begin with:
Then each string that needs translation will look like this (taken from nl.po of gb.args):
Code: Select all
#: Args.module:73
msgid "Display version"
msgstr "Toon versie"
Your error
fr.po:19: 'msgid' and 'msgstr' entries do not both end with '\n' shows that apperently you have something like this in your french translation file:
Code: Select all
#: Args.module:73
msgid "Display version" msgstr "Toon versie"
or like this
So, msgid and msgstr are on the same line.
This could be part of a translator bug in IDE that will be fixed in 3.18.3, as there where some incidents with translating and .po files being written in strange obscure ways at a fulll moon with some chicken sacrifices going on. And you know how it goes with these chicken sacrifices at full moon, they always leave a bloody mess. I had to dance around the fire at full moon for many hours begging the Gambas gods to make some of my .po files work again.
So how to fix:
Step 1: Buy a chicken
Step 2: Wait till full moon
Step 3: Make a fire
Step 4: Sacrifice chicken
Step 5: Dance around fire for long enough
Step 6: Go home and start PC
Step 7: Open your fr.po file (located in .lang of your project) and on lines 19 and 35 make sure msgid and msgstr are each on their own line.
If you pleased the Gambas gods enough, that should fix your problem...