X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 04BDD3CC806 for ; Sat, 18 Dec 2004 13:54:05 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 73770-05 for ; Sat, 18 Dec 2004 13:53:55 +0000 (GMT) Received: from postfix4-2.free.fr (postfix4-2.free.fr [213.228.0.176]) by svr1.postgresql.org (Postfix) with ESMTP id 8AC643CC5F0 for ; Sat, 18 Dec 2004 13:53:57 +0000 (GMT) Received: from [192.168.0.1] (lns-vlq-34-dij-82-253-8-120.adsl.proxad.net [82.253.8.120]) by postfix4-2.free.fr (Postfix) with ESMTP id 69EDF29680E; Sat, 18 Dec 2004 14:53:56 +0100 (CET) Message-ID: <41C43673.3030700@free.fr> Date: Sat, 18 Dec 2004 14:53:55 +0100 From: "Xavier Poinsard" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041007 Debian/1.7.3-5 X-Accept-Language: fr, fr-fr, en MIME-Version: 1.0 To: Peter Eisentraut Cc: Kris Jurka , pgsql-jdbc Subject: Re: Patch to reduce the number of messages to translate References: <41C21526.6060205@free.fr> <200412172316.28229.peter_e@gmx.net> In-Reply-To: <200412172316.28229.peter_e@gmx.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.065 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200412/143 X-Sequence-Number: 11809 Peter Eisentraut wrote: > Kris Jurka wrote: > >>>For example "Bad short" => "Bad {0}" with "short" as argument. >>>This way "Bad int" becomes "Bad {0}" we have reduced the number of >>>messages to translate. >> >>Is this a good idea? I'm willing to take your word as someone who >>actually does translations, but I wanted to confirm that >>parameterizing the message in this way won't cause translation >>problems. > > > I'm pretty sure it will. Splitting the adjective away from the noun > isn't a good idea. > I typed quickly the message with my patch ; the changes are the following : - "Conversion of box failed: {0}." => "Conversion of {1} failed: {0}." with box,circle,line,lseg,point - "The JVM claims not to support the ASCII encoding." => "The JVM claims not to support the {0} encoding." with ASCII,UTF-8 - "Bad byte: {0}" => "Bad {1}: {0}" with byte,short,int,long,BigDecimal,float,double,date - "Cannot cast an instance of {0} to Types.BIT" => "Cannot cast an instance of {0} to {1}" with Types.BIT,Types.OTHER As you can see, the new parameters have all the same gender : they are all java type names or encodings. Since they have the same gender, the adjective will be the same for all. As far as I know, this type of replacement can't be a problem. If the new parameters were real nouns with different genders, it would be a problem, but not in these cases. No ?