Strange Error

Post your Gambas programming questions here.
Post Reply
cage
Posts: 123
Joined: Monday 2nd September 2019 5:47am
Location: Phoenix Arizona

Strange Error

Post 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 :(
cage
Posts: 123
Joined: Monday 2nd September 2019 5:47am
Location: Phoenix Arizona

Re: Strange Error

Post 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.
User avatar
gbWilly
Posts: 68
Joined: Friday 23rd September 2016 11:41am
Location: Netherlands
Contact:

Re: Strange Error

Post 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... ;)
gbWilly
- Dutch translation for Gambas3
- Gambas wiki content contributer


... there is always a Catch if things go wrong!
cage
Posts: 123
Joined: Monday 2nd September 2019 5:47am
Location: Phoenix Arizona

Re: Strange Error

Post 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.
Post Reply