From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA16333; Thu, 18 Apr 2002 11:33:28 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA16329 for ; Thu, 18 Apr 2002 11:33:27 +0200 (MET DST) Received: from gwsmtp.thomson-csf.com (gwsmtp.thomson-csf.com [195.101.39.226]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g3I9XQb18690 for ; Thu, 18 Apr 2002 11:33:27 +0200 (MET DST) Received: from thomplex.thomson-csf.com (200.3.2.2) by gwsmtp.thomson-csf.com (NPlex 5.1.053) id 3CBA667C000746F4 for caml-list@inria.fr; Thu, 18 Apr 2002 11:35:54 +0200 Received: from thomplex.thomson-csf.com (200.3.2.2) by thomplex.thomson-csf.com (NPlex 5.1.036) id 3CBE8E730000173A for caml-list@inria.fr; Thu, 18 Apr 2002 11:36:13 +0200 Received: from bgxplex3.bgx.airsys.thomson-csf.com (1.38.9.153) by bgxplex.bgx.airsys.thomson-csf.com (NPlex 5.1.053) id 3CAC2CE100026CC2 for caml-list@inria.fr; Thu, 18 Apr 2002 11:33:25 +0200 Received: from bgxplex3.bgx.airsys.thomson-csf.com (1.38.9.153) by bgxplex3.bgx.airsys.thomson-csf.com (NPlex 5.1.053) id 3CAAD5C60001B898 for caml-list@inria.fr; Thu, 18 Apr 2002 11:44:39 +0200 Received: from 187.150.3.12 by bgxplex3.bgx.airsys.thomson-csf.com (InterScan E-Mail VirusWall NT); Thu, 18 Apr 2002 11:44:38 +0200 Received: from af_mara by lully.bgx.airsys.thomson-csf.com with local (Exim 3.22 #1 (Red Hat Linux)) id 16y8I7-0001gB-00 for ; Thu, 18 Apr 2002 11:33:23 +0200 Date: Thu, 18 Apr 2002 11:33:23 +0200 From: =?iso-8859-1?Q?J=E9r=F4me_Marant?= To: caml-list@inria.fr Subject: Re: [Caml-list] Printf and i18n Message-ID: <20020418113323.A6414@fr.thalesgroup.com> Mail-Followup-To: caml-list@inria.fr References: <87ads2rzu8.fsf@marant.org> <20020418084753.A11351@verdot.inria.fr> <20020418100241.B2735@fr.thalesgroup.com> <20020418102734.H11492@verdot.inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020418102734.H11492@verdot.inria.fr>; from daniel.de_rauglaudre@inria.fr on Thu, Apr 18, 2002 at 10:27:34AM +0200 Content-Transfer-Encoding: Quoted-Printable Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Thu, Apr 18, 2002 at 10:27:34AM +0200, Daniel de Rauglaudre wrote: > Hi, >=20 > On Thu, Apr 18, 2002 at 10:02:42AM +0200, J=E9r=F4me Marant wrote: >=20 > > By the way, in order to improve the localization process, we would = need > > to add the "argument reordering" feature to printf functions. > > For instance, with:=20 > >=20 > > printf " %2$d %1$s" "foo" 1 >=20 > I have something like that, indeed. It is also John Prevost's remark. > For that I use the same system of lexicon, but I don't use printf, but > just print_string for this kind of phrases. So, if I understood correctly, the string parameters are nothing but strings, right? ... > Of course, in all these examples, printf does not work: you have to > apply print_string, or printf "%s" I'ld love to see the feature in printf though. Regards, --=20 J=E9r=F4me Marant ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners