Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 6A923161CA36 for ; Mon, 20 Feb 2012 17:13:03 -0400 (AST) Received: from sd-17937.dedibox.fr ([88.191.100.74]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RzaXc-0002bt-WE for pgsql-bugs@postgresql.org; Mon, 20 Feb 2012 21:13:02 +0000 Received: from mail.lelarge.info (localhost.localdomain [127.0.0.1]) by sd-17937.dedibox.fr (Postfix) with ESMTPA id 870273B92D; Mon, 20 Feb 2012 22:12:48 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Date: Mon, 20 Feb 2012 22:12:48 +0100 From: Guillaume Lelarge To: Susanne Ebrecht Cc: Alvaro Herrera , Pg Bugs Subject: Re: Syntax got translated In-Reply-To: <4F42B175.6010703@2ndquadrant.com> References: <4F40141A.2060109@2ndquadrant.com> <1329757905-sup-8549@alvh.no-ip.org> <8fb0c1eb813b2718f15dc2c357f43768@localhost> <4F42B175.6010703@2ndquadrant.com> Message-ID: X-Sender: guillaume@lelarge.info User-Agent: RoundCube Webmail/0.4-beta X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201202/152 X-Sequence-Number: 32495 On Mon, 20 Feb 2012 21:47:49 +0100, Susanne Ebrecht wrote: > Am 20.02.2012 21:22, schrieb Guillaume Lelarge: >> >> I don't see why the modifiers shouldn't be translatable. It's not as if >> they were intended to be copied and pasted in a query. They are here to >> help the user understand the different modifiers in each column. >> > > Of course they are intended to get copied and pasted. In support you > often ask > for output from \d tablename. And when I look to the languages that I > never learned, > especially when I look into Turkish - I would read NULL and not would > estimate column is > not NULL. > > Default and not null are keywords - they are valid sql syntax. > They are constraint definitions. > > When I output the table definition I want the constraint definition - I > don't want to translate it > back to english to understand - ahhhh default is meant. > If that's so, nothing should be translatable in psql. If you do \d, the second column is the relation type. I guess seeing vue instead of view won't help you, so we need to stop translating this. The table's title shouldn't be translatable too. Etc. If you want the english way, you already can do this. You just need to ask your customer to use "LANG=C psql" instead of psql. -- Guillaume http://www.postgresql.fr http://dalibo.com