Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2000:
[Freeciv-Dev] Re: notify_player rewrite
Home

[Freeciv-Dev] Re: notify_player rewrite

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: notify_player rewrite
From: "Per I. Mathisen" <Per.Inge.Mathisen@xxxxxxxxxxx>
Date: Wed, 9 Aug 2000 10:54:20 +0200 (MET DST)

On Wed, 9 Aug 2000, Lauri Tarkkala wrote:
> Yet, when I grep the code in server/*.c, it seems like
> all the notify_player() arguments are specified in plain
> english, like:
> 
> > notify_player_ex(unit_owner(punit), src_x, src_y,
> >                  E_NOEVENT, _("Game: Only %s can attack from sea."),
> >                  units_str);
> 
> Where do locales come into play? Is this not the string which
> is received by the client?

No, not always. Cleverly hidden in that code fragment is the gettext macro
 _( ), which replaces the English text with whatever language string you
import from the .po files.

This is all well documented at http://www.freeciv.org/i18n.html.

Yours,
Per




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