Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2001:
[Freeciv-Dev] Re: headers in po-files
Home

[Freeciv-Dev] Re: headers in po-files

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Erik Sigra <sigra@xxxxxxx>
Cc: gs234@xxxxxxxxx
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: headers in po-files
From: Bruno Haible <haible@xxxxxxx>
Date: Mon, 25 Jun 2001 18:54:34 +0200 (CEST)

Erik Sigra wrote on 2001-03-01:

> If I have the header fuzzy marked, the city 
> report looks like in the screenshot cityreport.png. But when I remove the 
> fuzzy line, it looks like in the screenshot cityreportwrong.png, which is 
> clearly wrong. I didn't change anything else in sv.po between the 
> screenshots. This doesn't necessarly mean that headers should be fuzzy 
> marked. Maybe there is some other problem which is prevented from being 
> triggered by fuzzy marking the header?

It looks like you are passing the empty string to gettext(). When you
do that, GNU gettext() returns the header entry. This is a feature.
If you want to use the empty string instead, you have to do it
explicitly:

    const char *str = ,,,;
    if (str[0] != '\0')
      str = gettext(str);

Note that the header entry is necessary for several of the
gettext-0.10.38 features. gettext-0.11 will not ignore header entry
even if it is marked fuzzy.

Bruno


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