<URL: http://bugs.freeciv.org/Ticket/Display.html?id=39704 >

> [dmarks - Fr 14. Sep 2007, 10:58:04]:
> 
> On a recent checkout of S2_1:
> 
> Start the client in Greek (el) locale, connect to a server, then open
> the nation selection screen - crash!
> 
> Backtrace attached.
> 
>  ~Daniel
> 

The attached patch fixes the crash, but the real problem is with the
translation of some nation names. For example:

#: data/nation/aborigines.ruleset:4
msgid "?plural:Aborigines"
msgstr "?plural:"

This makes nation_plural_translation() return an empty string instead of
the untranslated name.

Index: client/gui-sdl/gui_string.c
===================================================================
--- client/gui-sdl/gui_string.c	(revision 13619)
+++ client/gui-sdl/gui_string.c	(working copy)
@@ -283,6 +283,7 @@
             pText->w);
   } else {
     freelog(LOG_DEBUG, "SDL_create_str16_surf: pText NULL");
+    pText = create_surf_alpha(0, 0, SDL_SWSURFACE);
   }
 
   if (!((pString->style & 0x0F) & TTF_STYLE_NORMAL)) {
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to