[Freeciv-Dev] Re: WARNING: Translations
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
At 1999/11/14 15:47 , Egbert Hinzen wrote:
>Don't use a longer translation than the German string at the following:
>
>#: client/gui-gtk/menu.c:450 client/gui-xaw/menu.c:188
>msgid "Local Options"
>msgstr "Lokale Optionen"
>
>I tried s.th. longer before and - at least with the GTK-Client it always
>gives a "memory allocation error" if called.
This seems to be caused by a bug in translate_menu_path() in
client/gui-gtk/menu.c, where the code was allocating space for the
untranslated string, but then copying in the translated string. This could
potentially cause problems for *any* menu item in the Gtk+ client.
I've attached a patch which I believe fixes this problem.
gtk-menu-translate-bug.diff.gz
Description: Binary data
jjm
|
|