[Freeciv-Dev] Re: Client/Server localization problem
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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"!!
|
|