Re: Fwd: printf/translation strings

From: Hubert Figuiere (hfiguiere@teaser.fr)
Date: Mon Mar 04 2002 - 20:26:52 GMT

  • Next message: Dom Lachowicz: "Commit: de-DE.po"

    On Mon, 2002-03-04 at 15:06, Pierre Abbat wrote:
    >

    Translation:

    >
    > ---------- Forwarded Message ----------
    > Subject: printf/translation strings
    > Date: Mon, 04 Mar 2002 14:17:39 +0100
    > From: Stephane Fritsch <stephane.fritsch@vz.cit.alcatel.fr>
    > To: phma@webjockey.net
    >
    >
    > Bonjour, (j'espere que tu es francophone...)
    >
    > Desole de repondre hors liste mais je ne peux pas
    > poster de l'adresse a laquelle je suis abonne a
    > abiword-dev pour le moment.

    Hi. Hope you speak French

    Sorry to talk off-list, but I can't post with the adress I'm currentl
    subscribed.

    >
    > Il est possible d'acceder a n'importe quel parametre avec
    > des printfs (et meme plusieurs fois au meme) avec la notation
    > %n$ (où n est n-ieme parametre, en commencant à 1). Exemple :

    It is possibl to access the parameter you wish with printfs (and even
    several time the same) with the %n$ notation, where n is the index of
    the parameter, 1 based. Example

    >
    > $ cat e.c
    > int main()
    > {
    > printf("I have %2$d %1$s. Yes, %2$d.\n", "eggs", 4);
    > }
    > $ make e
    > cc -o e e.c
    > $ ./e
    > I have 4 eggs. Yes, 4.
    >
    >
    > Stephane
    >
    > -------------------------------------------------------

    Hub





    This archive was generated by hypermail 2.1.4 : Mon Mar 04 2002 - 15:32:31 GMT