Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2000:
[Freeciv-Dev] Re: Client/Server localization problem
Home

[Freeciv-Dev] Re: Client/Server localization problem

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Robert Brady <robert@xxxxxxxxxx>
Cc: Freeciv developers <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: Client/Server localization problem
From: Gaute B Strokkenes <gs234@xxxxxxxxx>
Date: 22 Sep 2000 01:39:06 +0200

Robert Brady <robert@xxxxxxxxxx> writes:

> On Fri, 22 Sep 2000, Reinier Post wrote:
> 
> > > 3) Anything I have forgotten????
> > 
> >      The server maintains a client language for each client
> >      and formats the strings relative to the client they will be sent to.
> 
> 3) is terrible. The translation should be done client-side. Otherwise,
> users can't install their own .po-files and have them work with servers.

Changing languages on the fly using gettext is not generally portable,
though GNU gettext can do it.

Translating arbitrary strings from the server in the client is also
tricky, since you can't do things like

    snprintf(buf, sizeof(buf), "Dog bites %s.", "man");
    puts(_(buf));

and expect it to work as you'd like it to.

-- 
Big Gaute (not to be confused with LG)
Yow!!  "Janitor trapped in sewer uses ESP to find decayed burger"!!



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