Complete.Org: Mailing Lists: Archives: freeciv-dev: September 1999:
Re: [Freeciv-Dev] I18n patch
Home

Re: [Freeciv-Dev] I18n patch

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxxx
Subject: Re: [Freeciv-Dev] I18n patch
From: Greg Wooledge <wooledge@xxxxxxxxxxx>
Date: Sat, 18 Sep 1999 08:16:00 -0400

David Pfitzner (dwp@xxxxxxxxxxxxxx) wrote:

> +  char *titles[6]= {_("Server Name"), _("Port"), _("Version"), _("Status"), 
> _("Players"),
> +                   _("Comment")};
> 
> This may work with gcc, but its not acceptable in general
> (because initialiser must be constant, and result of _() is not).

Well, I guess the "right" way to deal with this would be to initialize
the array explicity in code.  It's not as efficient, but correctness is
more important than efficiency.

How about this?

-- 
Greg Wooledge                    | Distributed.NET http://www.distributed.net/
wooledge@xxxxxxxxxxx             | because a CPU is a terrible thing to waste.
http://www.kellnet.com/wooledge/ |

Attachment: fc-i18n-initializers
Description: Text document


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