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 1wFME7-0050iz-2N for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Apr 2026 01:18:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wFME6-00Azni-3D for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Apr 2026 01:18:02 +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 1wFME6-00AznZ-2G for pgsql-hackers@lists.postgresql.org; Wed, 22 Apr 2026 01:18:02 +0000 Received: from mail-qt1-x829.google.com ([2607:f8b0:4864:20::829]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wFME4-00000002OPQ-24Ny for pgsql-hackers@lists.postgresql.org; Wed, 22 Apr 2026 01:18:02 +0000 Received: by mail-qt1-x829.google.com with SMTP id d75a77b69052e-50fb8e9a4edso14243271cf.1 for ; Tue, 21 Apr 2026 18:17:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1776820678; cv=none; d=google.com; s=arc-20240605; b=NAZyWrf4CBmavb25ThxYaV3P7GiGvlvJsdc6fJtyukbJVHpQ6OXzb5vcY/1FLfj7Dx EHaEm/C5/NDQYevHpV3ZfFEC/jbsJM3Lz1jC0WDRkbZFA2r3EGjd2QwnJ9tjOwfsK4no 7RS9E0UCQDvLGSppotUKM0w0oN7byUitdstNXddUamt8l1zX/agxYxo1XzCntAZQwdhx UnXCkjFBqxomrjVJVHQMnxUaXMxK4osKicEISU5IPmKLt5Tnh/Ahe3c88SB6S4/hzoUA tv7Sjs+h5vIv3/Pdz1OZdK5wLM5acVYGqx5ri2n0IlV8vs7VY8zD+sMyLwA5mUklcNMf xXNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=yxtwVN9GWsDifjjg5jPsbdqxODa8CerOY1DT1vOhhtE=; fh=LtudOd9XLybGiOty7U4nANQizAgewD4VY/Hcp4wHE6Q=; b=W72Hds1ya5cZA1GdZwIZoVArMJnIq1SBk0ARUEjZp56t8InGCDy6R6ToB9bkpp6XKx 85shrgZEJ0waIEwSCGzPpkvNlwKPa0TwEynWWLE7RPhxO9jR9nEE3DfSugBWeAo5UpG/ whcCH8gnLt1HPttjB5bS3ewe1FjuJrgbsQEO2qmHV9WLV2owVo58NnKtZYDMc+Ob9y8j ZCR+Oh1teIGvNxcqwBOerD7dPOZOMCthRbnusa5nkSZzwYurm24WAaATC/mmtnScZwNv +k3wIdkgCbPubPuJwyW5sGI+wwifxPYb+HxNbIK0/hdhmEoNtxVhgHoi4vUj1/BlA1f7 gs5w==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776820678; x=1777425478; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=yxtwVN9GWsDifjjg5jPsbdqxODa8CerOY1DT1vOhhtE=; b=awc04jclyQnJT7Ui0ZuQsG+7hAyL13lBg0ddxt5k1w+ZUiIrYiSHbyYPHcOcpHbaCX PqRXKGecyb8FyZhGH9Aak+/G6ZPiNtfUC5a5raCWngmoMTlEGKhZK/3oLL8tNSYvLTC2 3gqx35CYdnnrcygikzlnciY1SfJcYrni4+/yWymtOVGIVzJPJ6cHzbtD+WC/IuB4KYUe 8Jm0sPsI1CDd7xbiOYlp7LRqASLSAqfg6ZHwWlNhXQBwfPeBOxcM4Sji9O/Dpg9Tt0hk MoIdLfQ69hUxB+kPZuJpkttD1vJOMZsxOcCF9JsabCppS2Y0FwJor/NpFNFKEJ3kiqlI 8SZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776820678; x=1777425478; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=yxtwVN9GWsDifjjg5jPsbdqxODa8CerOY1DT1vOhhtE=; b=tJ5jXjuxIhQ+cJ9lwySBZ+U4hEPMJi8n8qFlbY9F41//HAy2igVkGA22V2zxWeUGLi A1E/OCq6+dTdz2eo6br05K0Ka52ZpuNLX+OlCfLglxKz4WKOPrtGlEm15zULGGaL7xJO acr866XzA5r+c/ryc9Qwtb5jtylHaQG0Uj/s2Jk83khsaojOByTq6Crxkneiv7GBPn9g sSb60a6BzgJqhR+lkmmY+V4AfyfYDXYq3WgqBf50aY4+BwYhCYM0rMrFXUoIwPhKgAyw ur0D/xmdw/nvIdU0tkGAx+LtDc41PEfuiMgckzwcqB6mJkhIi8uuL5v7cbIZsHfuGPra bTLQ== X-Gm-Message-State: AOJu0YzsCN28Zn7pA+kzOREZneOjc+vmqtpE7VPRBm6cfXXz7y+MdaEy gj7RHUTQSZdx+cMe8AeLzw/n5+RV391v7jLdLvU50O6jIJFEHisaG4uVDo7Ozc8MJoLny0Yvqe9 JaUM/eXzjaE8LUfMTv9FCL/Ak5c2IGcc= X-Gm-Gg: AeBDiesPai3nfQ4TaWcd29Lz3U/1dR1GimdLFA1Q7Ttg6lE/vCHvdV2ZlhhZx88yVEy qBj5ch9xtBF5Ob2q4kBMxKhLU9sqrrjGjopnPCKtW9qG8dDSf/V2A9wqv7BKVUWu39xADMJbDLV AtmCkYzwbjfNlLVXnGA62kAFosFI6P40jAUKWHUKXCHvpE6XgJ2yRw19cJUmxqNk6Tj9TdOhCcw 2Lv2PdWb6dzLIifAY4kOChymBg6GSQRAYgFOw3YXb9PP5hEdHG1WER8HHmuVB4/EgbkgMAEZEsg MdTCWUZA9SOPykvsRA== X-Received: by 2002:a05:622a:5a94:b0:50d:7b0c:35e7 with SMTP id d75a77b69052e-50e36ed02b9mr311566031cf.43.1776820678180; Tue, 21 Apr 2026 18:17:58 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Peter Smith Date: Wed, 22 Apr 2026 11:17:31 +1000 X-Gm-Features: AQROBzCYgO3JGHgIKJGn2PY7S72T_rrE7wUvUfXtszLCmUExsfLHC4B27Q7BkzI Message-ID: Subject: Re: Get rid of translation strings that only contain punctuation To: David Rowley Cc: PostgreSQL Developers , Amit Kapila , Peter Eisentraut Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Apr 22, 2026 at 10:30=E2=80=AFAM David Rowley wrote: > > (Follow-on work from [1]) > > 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. > > 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. > > src/bin/psql/po/fr.po:msgid ", " > src/bin/psql/po/fr.po-msgstr " , " > > This is used for suffixing "unique" or "unique nulls not distinct". I > adjusted the logic there to get rid of the short translation string. > > Quite a few are new to v19: fd366065e (AmitK), 48efefa6c (AmitK), > 0fc33b005 (PeterE) > The relation.c one is from v18: 8fcd80258 (AmitK) > The describe.c one is from v15: 94aa7cc5f (PeterE) > > Should we get rid of these? > This question overlaps with another thread of mine [1]. There, I was told that a punctuation double-quote (") *should* be translat= ed. OTOH, I did not see why the comma separator (,) should be translated -- my patch did so only to be the same as existing code. =3D=3D=3D=3D=3D=3D [1] https://www.postgresql.org/message-id/CAHut%2BPui7RaQ8OfJEVn2ry-ykjnGc%= 2B3ujsFmcHDFw9FsXw_tRw%40mail.gmail.com Kind Regards, Peter Smith. Fujitsu Australia