Complete.Org: Mailing Lists: Archives: freeciv-dev: September 1999:
[Freeciv-Dev] Re: I18n problems
Home

[Freeciv-Dev] Re: I18n problems

[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: [Freeciv-Dev] Re: I18n problems
From: Zbigniew Chyla <cyba@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 27 Sep 1999 13:48:42 +0200 (CEST)

On Mon, 27 Sep 1999, David Pfitzner wrote:

> "Claus Leth Gregersen" <leth@xxxxxxxxxxx> wrote:
> 
> Except it would be best to keep such name mangling minimal, so 
> that results are still acceptable when compiled without NLS, or 
> when message catalogues are not installed, or if translations
> for non-English are not updated yet to do such words, etc.
> 
> Adding spaces or underscores may work, and would be sufficiently 
> obscure/confusing... :-/

Why don't you just define simple macro somewhere: (common/fcintl.h ?)

 #define __(s) (strchr(_(s), ':') + 1)

Modifications in code are minimal:

 puts(__("1:Name"))
 ...
 puts(__("2:Name"))

In this case you need neither english translation nor NLS.


Zbigniew Chyla


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