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 1wFqW3-005cYu-2H for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Apr 2026 09:38:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wFqW1-0014HR-2s for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Apr 2026 09:38:33 +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 1wFqW1-0014HG-1p for pgsql-hackers@lists.postgresql.org; Thu, 23 Apr 2026 09:38:33 +0000 Received: from fhigh-b7-smtp.messagingengine.com ([202.12.124.158]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wFqVz-00000002cxa-0bAI for pgsql-hackers@lists.postgresql.org; Thu, 23 Apr 2026 09:38:33 +0000 Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfhigh.stl.internal (Postfix) with ESMTP id BDA6F7A012C; Thu, 23 Apr 2026 05:38:29 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Thu, 23 Apr 2026 05:38:29 -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=fm1; t=1776937109; x= 1777023509; bh=EGPXkmmTun5V6clGSivSrKlV/T3VsWbwLuHOfSiVoFc=; b=V Pn69o6GeaNgFbbtyqtZ5gaz/Fln1mgq+lG6vxJHxTwpXPTBU9Ff9VMfjZSyHocjz WqGY5S/nL6J9HxZMcDhuJClvw/bsuimcWGkdSSijizTdR5ugyT+TY9WMZwxeUHOT YSucyHVBCGtHLGuTRKMcXpGXMLc8VjmrZKFoMBsC2vNGvLNaiUecZbtq1YrG5tks G8u2aepEsyMa3sXFuBN5UHL4996T+KT7NxaBwtEnTOT89iooISBJnam5apKbH5LA phKO0CVfPq1y8Z0Q/H74vme5KKDBjcAc1W8Gx6Hz2pAAhdQ6VNuKZZTCP79YbCw5 qCHhK84VfGgztrh/yPAXQ== 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=1776937109; x=1777023509; bh=E GPXkmmTun5V6clGSivSrKlV/T3VsWbwLuHOfSiVoFc=; b=uleqWiW31LDUnrJL0 txkhcjvE41qtvwNJ1oh3CgMTmgdrSSnyb7ionFcMYOFrsqoj8SYoAUhJobnu3mdu AtaY328hcMXVjI/oQRNru7CgJBfV8PkKaMEqo1WTPoE/lYxRmWEb2HfBKOO6xrxD jy8qSfoZC+JTfoPidT6szK+9Tstrblod6Ro4F0Jsgv92BL+edHM4ObQkeGwrJqIU ZUyPdk8sfEOfXP7BvI/qpD4WGdOFD7D/khg0srT57RYeuLi6H1ZRpaGrGz10cQhI /v4JkJX0zPa6Ufk+UgbtthdrWVumrAz7YQFosdSBn2VBtI785qe/N0G7fpQZs9Uh IfDTg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdeiieekudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvvefukfggtggugfgjsehtkeortddttdejnecuhfhrohhmpemllhhvrghrohcu jfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgeskhhurhhilhgvmhhurdguvgeqnecuggftrf grthhtvghrnhepfeejvefhheetieeiieehjefgteevkeehffefgfejieetkedtieegledu hefgudeknecuffhomhgrihhnpehpohhsthhgrhdrvghspdgvnhhtvghrphhrihhsvggusg drtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pegrlhhvhhgvrhhrvgeskhhurhhilhgvmhhurdguvgdpnhgspghrtghpthhtohepgedpmh houggvpehsmhhtphhouhhtpdhrtghpthhtohepphgvthgvrhesvghishgvnhhtrhgruhht rdhorhhgpdhrtghpthhtoheprghmihhtrdhkrghpihhlrgduieesghhmrghilhdrtghomh dprhgtphhtthhopegughhrohiflhgvhihmlhesghhmrghilhdrtghomhdprhgtphhtthho pehpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 23 Apr 2026 05:38:28 -0400 (EDT) Received: by ida.kurilemu.internal (Postfix, from userid 1000) id 6DA5DB03233; Thu, 23 Apr 2026 11:38:27 +0200 (CEST) Date: Thu, 23 Apr 2026 11:38:27 +0200 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: David Rowley Cc: PostgreSQL Developers , Amit Kapila , Peter Eisentraut Subject: Re: Get rid of translation strings that only contain punctuation Message-ID: 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-22, David Rowley wrote: > We've got a few parts of the code that translate strings that contain > only a single punctuation character. I'm not a translator, but I > suspect that these would be tricky to deal with as such short strings > could be used for various different things, and if the required > translation was to differ between requirements, then you're out of > luck. Yeah. > I looked at: git grep -A 1 "msgid \", \"" and I see French is the only > translation to do anything different with the ", " string, and only in > psql. Japanese also uses different punctuation characters, so I don't think we should get rid of translating these characters. Instead we should do what Tom says and integrate these characters into a larger string. I showed one example in a nearby thread from Peter Smith [1], and I think a couple of the spots you're patching can be easily done in the same way. As for the one in guc.c, I think what we should do is change config_enum_get_options() to have an API similar to GetPublicationsStr: instead of receiving prefix, suffix and separator, we should tell that function that we're constructing a list to be used in as an SQL value (GetConfigOptionValues), or one to be displayed to the user (parse_and_validate_value); and have the function add the separators and other decoration as needed, using the same technique. (The other prefix "Available values: " can be added by the caller, I think, and maybe the braces also, not sure.) [1] https://postgr.es/m/aeniYoOwCQmtWtQW@alvherre.pgsql -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/