Strange Error

Post

Posted
Rating:
#1 (In Topic #977)
Avatar
Regular
cage is in the usergroup ‘Regular’
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  :(
Online now: No Back to the top

Post

Posted
Rating:
#2
Avatar
Regular
cage is in the usergroup ‘Regular’
 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.
Online now: No Back to the top

Post

Posted
Rating:
#3
Avatar
Administrator
gbWilly is in the usergroup ‘unknown’
I know this is an older post, but since you had no clue what causes this I might add some clarity

cage said

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

#, fuzzy
msgid ""
msgstr ""
Then each string that needs translation will look like this (taken from nl.po of gb.args):

Code

#: 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

#: Args.module:73
msgid "Display version"  msgstr "Toon versie"
or like this

Code

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
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories


… there is always a Catch if things go wrong!
Online now: Yes Back to the top

Post

Posted
Rating:
#4
Avatar
Regular
cage is in the usergroup ‘Regular’
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.
Online now: No Back to the top
1 guest and 0 members have just viewed this.