Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w7u7H-0000jY-2z for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Apr 2026 11:52:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w7u7G-00HE1a-2I for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Apr 2026 11:52:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w7u7G-00HE1S-0V for pgsql-hackers@lists.postgresql.org; Wed, 01 Apr 2026 11:52:10 +0000 Received: from fhigh-a2-smtp.messagingengine.com ([103.168.172.153]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w7u7D-000000000Rq-0xA4 for pgsql-hackers@lists.postgresql.org; Wed, 01 Apr 2026 11:52:10 +0000 Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfhigh.phl.internal (Postfix) with ESMTP id 5CF061400301; Wed, 1 Apr 2026 07:52:05 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Wed, 01 Apr 2026 07:52:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm3; t=1775044325; x= 1775130725; bh=kts4cJ2qDRnp7TpUMoYVPwehIUMfFYU+2QKCoRY7eVk=; b=k NPJ3JMAsywAruQJ2JVieaK7x8Z1FU39kNY2Eer5AunzsXuh9j+5stn5H3R0HGP+p 7c9WPHT5MdreFArubMp0qhwXbZI7kemuHiAHppYNwvZRM7IanQw/t+tfOuYjSX5b DxC9rm0xmpRkxxRl3pxlo7qiHfovo5/RYstGY4ND6ylO/d6s58y3Jl5Ep3n8VoJe N4F5+RU7hrGvdPxD9hQtWuXUhadSzNRszU0ORGesKJbo4s0MLgDCME5BK6HQQr7h XCHzAbcAdmSS3qcri+zVDUUp05POjND9rDFQ/BKSVTT528EyTXXqS7AjiYroGTW6 O5Eo6+aVvg7iFuP/HdVQQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1775044325; x=1775130725; bh=k ts4cJ2qDRnp7TpUMoYVPwehIUMfFYU+2QKCoRY7eVk=; b=E/pEmqHXVxTsmb1pO um7YdjHTyOci6TN8etj1KyXtVyQV5PMa2FQFjudQ7wJheeTX8JlfO+fm8L6yZgko yOTMR4YqntLSVL5khalwXIpg4lbrF7e+86b6jKTcK0lK63+WV63kpDqRGOCeE1QJ bTwDkTdTj0Oa2ZG0TIUW519z4nGBQztQQthHuuOev25QjQsNBv+abzLYjrXwPaq2 Pv8diwVWqP7YUfQijUzvZUi7HtVWqv8Is0/nHnkxZr5Xn2aw9/DQKsBcen7FbwDx NVaNg68nqxysp97iC9YfxRVkWF6dYRmX3KlU1NC2az4OM964yTEwJg9HTbFcq2SX oZUxg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdeftdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceurghi lhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurh epfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheplmhlvhgrrhhoucfj vghrrhgvrhgruceorghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvqeenucggtffrrg htthgvrhhnpeetuedvheffkeevgfeuheevteevkefggedttdeufeeuheduuddthfeffffh jeefffenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgvsehk uhhrihhlvghmuhdruggvpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuth dprhgtphhtthhopehsmhhithhhphgsvddvhedtsehgmhgrihhlrdgtohhmpdhrtghpthht ohepphhgshhqlhdqhhgrtghkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorh hg X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 1 Apr 2026 07:52:04 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1775044322; bh=zlVPFuhv5ttov8/bRmKpKuqmMkyb0AxC7PPNTxJKSrs=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=cU+styWUNXXZJ6dTwL8hAg7vYcDRLx2xE6qcIUznMc6UnctZtVYJPNjdOpZpEZKkP SY7kWNql+cpG9l73Z+T4ysSRKcMRYY8C8/okb+1fEvcxteIDE9FWr+YAGYPRj9PYg5 uWnioALNpAI+5ejQYfHrlWZbMHnrRl9F0dkiOsZbJLWXaNOLlwnLplxySGhWDxVsWE YPRv/zooM9YhX3qyvNhQjayJGNt7aBwjYADuHqNZc4VLu6lYOjCZKfHsPDo+sjxuuW XLF6Y1iw43PhneJyiCi0TgORPW4+CU6VVGlFZ2mUmChf4YCdqjgPi/KwmnWcSj+mfz jPkfti6LnzB/g== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id 6B0467C; Wed, 01 Apr 2026 13:52:02 +0200 (CEST) Date: Wed, 1 Apr 2026 13:52:02 +0200 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Peter Smith Cc: PostgreSQL Hackers Subject: Re: Redundant/mis-use of _(x) gettext macro? Message-ID: <202604011144.jeo56tazdx6z@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2026-Apr-01, Peter Smith wrote: > Hi. > > As originally reported [1] in the EXCEPT (TABLE ...) thread, I felt > the _() gettext macro is mis-used when it contains nothing but a > quoted format string. No, you feel wrong -- this is necessary so that the translator has control over the quoting style of a list of items. Not all translations use double quoting. Some examples from different language files: msgstr "unbekannte Komprimierungsoption: »%s«" msgstr "opción de compresión no reconocida: «%s»" msgstr "option de compression inconnue : « %s »" msgstr "tidak dapat menentukan encoding untuk lokal « %s » : codesetnya adalah « %s »" -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "In fact, the basic problem with Perl 5's subroutines is that they're not crufty enough, so the cruft leaks out into user-defined code instead, by the Conservation of Cruft Principle." (Larry Wall, Apocalypse 6)