[Freeciv-Dev] Re: on translating "Game"
[Top] [All Lists]
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
 
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
 
- [Freeciv-Dev] Re: [FreeCiv-Cvs] dwp: Changed terrain special named "Game" to "Game A..., Lalo Martins, 1999/09/27
- [Freeciv-Dev] Re: [FreeCiv-Cvs] dwp: Changed terrain special named "Game" to "Game A..., David Pfitzner, 1999/09/27
- [Freeciv-Dev] Re: [FreeCiv-Cvs] dwp: Changed terrain special named "Game" to "Game A..., David Pfitzner, 1999/09/27
 
- [Freeciv-Dev] Re: [FreeCiv-Cvs] dwp: Changed terrain special named "Game" to "Game A..., Lalo Martins, 1999/09/27
- [Freeciv-Dev] Re: [FreeCiv-Cvs] dwp: Changed terrain special named "Game" to "Game A..., David Pfitzner, 1999/09/28
 - [Freeciv-Dev] Re: [FreeCiv-Cvs] dwp: Changed terrain special named "Game" to "Game A..., Lalo Martins, 1999/09/28
 - [Freeciv-Dev] Re: [FreeCiv-Cvs] dwp: Changed terrain special named  "Game" to "Game A..., Artur Biesiadowski, 1999/09/28
 - [Freeciv-Dev] Re: [FreeCiv-Cvs] dwp: Changed terrain special named  "Game" to "Game A..., Jules Bean, 1999/09/28
 - [Freeciv-Dev] on translating "Game", David Pfitzner, 1999/09/28
 - [Freeciv-Dev] Re: on translating "Game", Jeff Mallatt, 1999/09/29
 - [Freeciv-Dev] Re: on translating "Game",
Chyla Zbigniew 76659 <=
 
  
  
- [Freeciv-Dev] Re: [FreeCiv-Cvs] dwp: Changed terrain special..., jrb3@xxxxxxxx (Joseph Beckenbach III, CCP), 1999/09/29
 - [Freeciv-Dev] Re: [FreeCiv-Cvs] dwp: Changed terrain special..., Jerzy Klek, 1999/09/29
 
  
- [Freeciv-Dev] Re: [FreeCiv-Cvs] dwp: Changed terrain special named   "Game" to "Game A..., John Goerzen, 1999/09/28
 
- [Freeciv-Dev] Re: [FreeCiv-Cvs] dwp: Changed terrain special named  "Game" to "Game A..., Peter Schaefer, 1999/09/28
 - [Freeciv-Dev] Re: [FreeCiv-Cvs] dwp: Changed terrain special named "Game" to "Game A..., Greg Wooledge, 1999/09/28
 
- [Freeciv-Dev] Re: [FreeCiv-Cvs] dwp: Changed terrain special named "Game" to "Game A..., Reinier Post, 1999/09/28
 
- [Freeciv-Dev] Re: [FreeCiv-Cvs] dwp: Changed terrain special named  "Game" to "Game A..., Jules Bean, 1999/09/28
 
 
 
 | 
 |