Complete.Org: Mailing Lists: Archives: freeciv-dev: July 1999:
Re: [Freeciv-Dev] Internationalization

Re: [Freeciv-Dev] Internationalization

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: Re: [Freeciv-Dev] Internationalization
From: Matthew Ryall <ryall@xxxxxxxxxx>
Date: Thu, 15 Jul 1999 13:12:43 +1000

David Pfitzner wrote:

> Martin Christensen <factotum@xxxxxxxxxxxxxxxxx> wrote:
> >   Now, about the server telling the client what text to display and
> > how, wouldn't it be easier to just enumerate all standard messages?
> I think this is generally a bad idea, because it means you can't
> easily add or change messages without introducing incompatability.

But wouldn't it be possible to have a set of 255 (or whatever, tho one
byte is a nice size) default codes that each stand for one of the
messages from client to server during the game. The translations of these
codes would be stored in a text file, loaded at the runtime by the
client, which could be in any language applicable.

These 255 codes would stand for events in the game, but the actual phrase
transmitted to a user could be easily changed from client to client, as
versions get updated. Also, having a large number of codes, there would
be potential for expansion, with a client responding with a standard
message such as "Server event not understood, please upgrade:";, or something such if there was no response
stored for that particular event.

This system would also mean that a lot of communication between server
and client would take less bandwidth, resulting in less lag.

I have not delved into the depths of the freeciv code however, so I don't
know how easily this could be implemented.

Matt Ryall


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