Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2002:
[Freeciv-Dev] Re: Freeciv po file problems
Home

[Freeciv-Dev] Re: Freeciv po file problems

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Egbert Hinzen <egbert@xxxxxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx, Deutsche Freeciv Übersetzer <freeciv.de@xxxxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: Freeciv po file problems
From: Gaute B Strokkenes <gs234@xxxxxxxxx>
Date: Mon, 12 Aug 2002 00:33:04 +0200

On Sun, 11 Aug 2002, egbert@xxxxxxxxxxxxxxx wrote:
> On Sun, 11 Aug 2002, Gaute B Strokkenes wrote:
> 
>> > After reading your message I replaced my gettext version with the
>> > newest one (1.11.5). It runs without any problems, it likes the
>> > current de.po, and freeciv compiles OK. So: Where is your serious
>> > problem???
>>
>> gs234@posleen:~/freeciv/po$ make
>> rm -f da.gmo && /usr/local/bin/msgfmt -c --statistics -o da.gmo da.po
>> da.po:10698: 'msgstr' is not a valid C format string, unlike 'msgid'
>> /usr/local/bin/msgfmt: found 1 fatal error
>> make: *** [da.gmo] Error 1
> 
> I can't say anything about da.po...

Well, you wanted to know what goes wrong when you combine po-files
with errors and gettext 0.11.4 automake magic.

>> gs234@posleen:~/freeciv/po$ make de.gmo rm -f de.gmo &&
>> /usr/local/bin/msgfmt -c --statistics -o de.gmo de.po
> 
> You shouldn't use the '-c'. I does an extremly checking and often
> causes problems:
> 
>> de.po:308: number of format specifications in 'msgid' and 'msgstr' does not 
>> match
>> de.po:1306: 'msgstr' is not a valid C format string, unlike 'msgid'
>> de.po:4357: number of format specifications in 'msgid' and 'msgstr' does not 
>> match
>> de.po:4362: number of format specifications in 'msgid' and 'msgstr' does not 
>> match
>> de.po:4379: number of format specifications in 'msgid' and 'msgstr' does not 
>> match
>> de.po:5297: number of format specifications in 'msgid' and 'msgstr' does not 
>> match
>> de.po:5782: number of format specifications in 'msgid' and 'msgstr' does not 
>> match
>> de.po:7899: 'msgstr' is not a valid C format string, unlike 'msgid'
>> de.po:7927: number of format specifications in 'msgid' and 'msgstr' does not 
>> match
>> de.po:10432: number of format specifications in 'msgid' and 'msgstr' does 
>> not match
>> de.po:10437: number of format specifications in 'msgid' and 'msgstr' does 
>> not match
>> /usr/local/bin/msgfmt: found 11 fatal errors
> 
> None of them are errors!

Yes, they are.  Even disregarding the ones where you have deliberately
left out format-specs, the warnings about "not a valid C format
string" are valid errors.  The fact that it currently seems to work ok
is not a reason not to fix them.

> If you don't use the '-c' all runs fine.
> And it also will print error messages, if there are errors.

Tweaking the automake magic not to use -c is possible, but it is
extremely messy.  Another solution is preferable.

-- 
Big Gaute                               http://www.srcf.ucam.org/~gs234/
A dwarf is passing out somewhere in Detroit!


[Prev in Thread] Current Thread [Next in Thread]