[Freeciv-Dev] Re: headers in po-files
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Mon, 25 Jun 2001, haible@xxxxxxx wrote:
> 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);
That was my first thought as well, but it's not the case. For
instance, if Freeciv was somehow passing an empty string then there
shouldn't be any output when Freeciv is configured with --disable-nls,
however this is not the case. Also have a look at the two pictures
that Erik attached to his message: the only difference between the
Freecivs that produced them is that in the one with the correct
translations the po header was fuzzy, in the one with the wrong
translation it was not. It is very difficult to see how this could
possibly have an effect on the string that Freeciv passes to gettext.
Conclusion: the presence of non-empty header causes gettext to wrongly
look up certain translations under certain circumstances.
> 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.
What you're saying is, msgfmt will include the header entry in the .mo
file even if the header is marked fuzzy, right?
--
Big Gaute http://www.srcf.ucam.org/~gs234/
Th' MIND is the Pizza Palace of th' SOUL
- [Freeciv-Dev] Re: headers in po-files, Bruno Haible, 2001/06/25
- [Freeciv-Dev] Re: headers in po-files,
Gaute B Strokkenes <=
- [Freeciv-Dev] Re: headers in po-files, Lino Mastrodomenico, 2001/06/26
- [Freeciv-Dev] Re: headers in po-files, Gaute B Strokkenes, 2001/06/26
- [Freeciv-Dev] Re: headers in po-files, Thue, 2001/06/26
- [Freeciv-Dev] Re: headers in po-files, Thue, 2001/06/26
- [Freeciv-Dev] Re: headers in po-files, Jeff Mallatt, 2001/06/26
- [Freeciv-Dev] Re: headers in po-files, Gaute B Strokkenes, 2001/06/26
[Freeciv-Dev] Re: headers in po-files, Bruno Haible, 2001/06/26
|
|