bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNU gettext 0.10.35 and the header entry.


From: Bruno Haible
Subject: Re: GNU gettext 0.10.35 and the header entry.
Date: Mon, 25 Jun 2001 18:57:01 +0200 (CEST)

Gaute B Strokkenes writes:

> In Freeciv (<http://www.freeciv.org>) all the PO header entries are
> marked as fuzzy.  With gettext 0.10.35 this appears to have no ill
> effects, and in fact if the entries are not marked as fuzzy then the
> translations returned by gettext() are not correct in some cases; see
> for instance
> 
>   http://arch.freeciv.org/freeciv-dev-200103/msg00018.html

It looks like freeciv is 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



reply via email to

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