[xliff-tools] C-format annotations

Asgeir Frimannsson asgeirf at redhat.com
Mon Feb 21 21:06:35 PST 2005


On Thu, 17 Feb 2005 02:38, Tim Foster wrote:
> On Wed, 2005-02-16 at 15:06, Bruno Haible wrote:
...
> > Unsolved question: How does this deal with reordering (in C, the POSIX
> > "%2$d" syntax)?
>
> I don't understand ?

Reordering means changing the order of the parameter in the source string, 
e.g:
  printf("I eat %s and therefore I am a %s", "chicken", "man");
     = "I eat chicken and therefore I am a man"

 .. let's reorder:

  printf("I eat %2$s and therefore I am a %1$s", "chicken", "man");
     = "I eat man and therefore I am a chicken"

(sorry for lame example)

cheers,
asgeir


More information about the xliff-tools mailing list