Page 1 of 1

Strange Error

Posted: Monday 23rd January 2023 8:30pm
by cage
I recently had to reinstall my system and reinstall Gambas. My problem now is when ever I go to make an execute file I get the following errors"
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

I have no clue as to what the problem might be :(

Re: Strange Error

Posted: Monday 23rd January 2023 9:12pm
by cage
Still don't know what caused these errors. I rewrote them and everything went as expected with no errors. Might be something got corrupted in the programs itself.

Re: Strange Error

Posted: Tuesday 4th July 2023 4:32pm
by gbWilly
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:

Code: Select all

#, fuzzy
msgid ""
msgstr ""
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

Code: Select all

msgid "" msgstr ""
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... ;)

Re: Strange Error

Posted: Wednesday 5th July 2023 2:48am
by cage
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... ;)
LOL GB that worked. Actually I did fix the problem, but don't remember what it was that fixed it.