[Freeciv-Dev] Re: (PR#7006) Re: [freeciv-i18n] header of the .po file pr
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=7006 >
Raimar Falke wrote:
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=7006 >
>
> On Sun, Nov 30, 2003 at 02:58:21PM -0800, Christian Knoke wrote:
>
>><URL: http://rt.freeciv.org/Ticket/Display.html?id=7006 >
>>
>>On Sun, Nov 30, 2003 at 09:03:07PM +0100, Genevieve Gracian wrote:
>>
>>>I recently noticed that the header of the .po file is printed in the
>>>help screens about techs. I don't know if I messed up the fr.po of if
>>>this is due to delta patch. Can other translators say to me if that also
>>>happens for other languages ?
>>
>>Yes, it does (for de.po).
>>
>>Probably a soure code bug.
>
>
> Yes. The helptext field is now (with delta) always defined. This
> causes the existing checks in helpdata.c to be flawed. The empty
> helptext ("") is translated causing the problems mentioned above.
I think it'd be easier to change the helptext field to NULL when
receiving it, if it's empty.
Or at least, the check should be
if (helptext && helptext[0] != '\0') {
so that we won't have problems with this in future.
> Index: client/gui-gtk/helpdlg.c
> ===================================================================
> RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk/helpdlg.c,v
> retrieving revision 1.63
> diff -u -u -r1.63 helpdlg.c
> --- client/gui-gtk/helpdlg.c 2003/04/04 15:47:46 1.63
> +++ client/gui-gtk/helpdlg.c 2003/12/01 07:45:06
> @@ -816,10 +816,6 @@
> gtk_widget_show_all(help_tree_buttons_hbox);
>
> helptext_tech(buf, i, pitem->text);
> - if (advances[i].helptext) {
> - if (strlen(buf)) strcat(buf, "\n");
> - sprintf(buf+strlen(buf), "%s\n", _(advances[i].helptext));
> - }
> wordwrap_string(buf, 68);
>
> w = gtk_label_new(buf);
Why do you remove this part?
jason
|
|