Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2001:
[Freeciv-Dev] Re: [PATCH] Each nation having different monetary unit
Home

[Freeciv-Dev] Re: [PATCH] Each nation having different monetary unit

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Jason Dorje Short <jshort@xxxxxxxxxxxxx>
Cc: Baumans <baumans@xxxxxxxxxxxxx>, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: [PATCH] Each nation having different monetary unit
From: Gaute B Strokkenes <gs234@xxxxxxxxx>
Date: Wed, 22 Aug 2001 04:02:34 +0200

On Sun, 19 Aug 2001, jshort@xxxxxxxxxxxxx wrote:
> Baumans wrote:
>> 
> 
> <snip comparison of "gold" versus arbitrary monetary unit>
> 
>> Of course, I can't (easily) see a way to
>> fix them(especially the
>> length problem).
> 
> Um, it's easy to fix on a case-by-case basis.  Just pad the output
> of whatever string you're printing to.  Almost all of the strings
> should be created with sprintf and friends, so it should be easy.

You can't.  Firstly, there is not necessarily any relation between
strlen(s) and the number of characters (not bytes) in it; in
particular this does not hold true in a UTF-8 locale.

Secondly, there's the i18n issue.  A lot of language have more
complicated ways to form plurals than English; have a look at a recent
GNU gettext manual if you're interested.

-- 
Big Gaute                               http://www.srcf.ucam.org/~gs234/
Somewhere in Tenafly, New Jersey, a chiropractor is viewing
 ``Leave it to Beaver''!


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