Complete.Org: Mailing Lists: Archives: freeciv-dev: September 1999:
[Freeciv-Dev] Re: on translating "Game"
Home

[Freeciv-Dev] Re: on translating "Game"

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Jeff Mallatt <jjm@xxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: on translating "Game"
From: Chyla Zbigniew 76659 <chyla@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 30 Sep 1999 01:57:39 +0200 (MET DST)

On Wed, 29 Sep 1999, Jeff Mallatt wrote:

> Alternatively, a slight modification of the above macro (which would call
> _() twice):
> 
> #define __(s) ((*(_(s)) == '?') ? (strchr(_(s), ':') + 1) : _(s))
> 
> would allow the translators to translate these qualified strings into
> unqualified strings.  E.g.:
> 
> msgid "?resource:Game"
> msgstr "Translation of Game"
> 
> Then, the only restriction is that translation *not* begin with the
> introducer character.

Nice idea, but... look at this:

char *__(char *s)
{
   char *ts = _(s);

   return ts != s ?     
      ts
   :
      *s == '?' ?
         strchr(s, ':') + 1
      :
         s;
}

(no restrictions on translated string, compatible with extremely stupid
translators ;-)


Zbigniew Chyla



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