Complete.Org: Mailing Lists: Archives: freeciv-dev: October 1999:
[Freeciv-Dev] Re: ideas for some i18n problems
Home

[Freeciv-Dev] Re: ideas for some i18n problems

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Cc: FreeCiv Developer <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: ideas for some i18n problems
From: Egbert Hinzen <egbert@xxxxxxxxxx>
Date: Wed, 27 Oct 1999 04:20:30 +0200 (MEST)
Reply-to: garfy@xxxxxxxxxx

On Wed, 27 Oct 1999, David Pfitzner wrote:

> Egbert Hinzen <egbert@xxxxxxxxxx> wrote:
> > 
> > If you have sentence like   "%s has %d Settler."
> > you can change the %places  "%2$d Settler are owned by %1$s".
> 
> Yeah, that's sort of what the docs I saw said.  My confusion was 
> that for this to work, the printf family of functions would have
> to support this, and I had not known of such support.  But I now
> notice this is explicitly documented for various systems' sprintf;
> (eg http://www.freebsd.org/cgi/man.cgi).
> 
> So my question is, is such support standard, and/or ubiquitous?
> (Though its so useful I guess we use it where necessary anyway,
> and bad luck if some old systems can't use NLS support as a result.)

Following the gettext info, it is.
> 
> > But AFAIK if you start with s.th. like "%2d: %s of %s." you can not change
> > that. (I tried it and it compiles fine and all runs until this message
> > should be displayed - then at least the server crashes.
> 
> Hmm, following test prog worked fine for me:

I will try it again with another piece of the sources...

-- 
Egbert Hinzen
--- ICQ 45698606 or 51826579
--- PGP Public Keys available at www.ehinzen.de


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