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 1vnnav-00BsXa-1e for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Feb 2026 00:51:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vnnau-00EOOZ-0z for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Feb 2026 00:51:40 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vnnat-00EOOQ-2B for pgsql-hackers@lists.postgresql.org; Thu, 05 Feb 2026 00:51:39 +0000 Received: from fout-b4-smtp.messagingengine.com ([202.12.124.147]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vnnaq-00000000bYJ-3rgy for pgsql-hackers@postgresql.org; Thu, 05 Feb 2026 00:51:38 +0000 Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfout.stl.internal (Postfix) with ESMTP id 7797B1D0002A; Wed, 4 Feb 2026 19:51:35 -0500 (EST) Received: from phl-imap-05 ([10.202.2.95]) by phl-compute-06.internal (MEProxy); Wed, 04 Feb 2026 19:51:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eulerto.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1770252695; x=1770339095; bh=oTrhEksLqtwQCxYJFOTfrgDE2oDPUYYHJOH2GhroSsU=; b= UBGpzHloUNvNq7qjHVBTR+T9Ue40B11VgefjYwfJkEKO5jut4tfayWQg05FIt/Tx 7XpTxLrJgMRwaLyrBjDhFIWjClmxiz7dyn0ulJ2FNhPgTz9xgaMifwOuUK0d4Foj FyMvH7Z+hsLTcvQhLm5PPwW5Mwb5S4GopSZux8GyJSnJiBlQL3Cu/FX6d10CE6GR 3LmpaQst6kFhX4WuGPfyXbSIZWNTaZrYis6Cksk5DUYQ5Pd6smqUO3i2xscOi+B+ 3EOOQm5RobiOYlchLnKfMhegZaVw/zJ7LIdNzEF4DfdY0t4MhbbQYICZtm0j+Tz+ 8cnkXSFd4MyWAwqC/kaT/g== 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 :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1770252695; x= 1770339095; bh=oTrhEksLqtwQCxYJFOTfrgDE2oDPUYYHJOH2GhroSsU=; b=d CS8pB9z+Ej6vkBvUOTWnsqQChOXEzqZH8ep2xhD15lbs+GVzCQTloV2Mk8+bAcHv JVvT8nbScl3B0stzLqBwXbZKpeQwP2WdJGeLklVNfIm+qxYO9GDam6MhBqEYaRsQ k3FK4YX3gTE4Oo+vuT8Sn3lvJEqL88WGHpI1JvCGYYoIjs4eLEy6AgAkFASK2QuW o5vKlpcuTX7198dKOKXHnNnL3Pa7B+njucjuQ+Edk1FoGOi5Xe+ZrNU2Q2qlxUQn Tj5rqmppRMWCpngWijuV17kSxloeJbt94cxq1Y08eWraKBS3FUQhOZBz2XwHr8Cj 2d1Z1K95WsBsD49OIWhMQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddukeefledvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepofggfffhvfevkfgjfhfutgfgsehtqhertdertdejnecuhfhrohhmpedfgfhulhgv rhcuvfgrvhgvihhrrgdfuceovghulhgvrhesvghulhgvrhhtohdrtghomheqnecuggftrf grthhtvghrnhepfeekueejgeevteffueegffffgfefhedtgeduffejleduuedvhfeflefg jeegfeelnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomhenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegvuhhlvghrsegvuhhl vghrthhordgtohhmpdhnsggprhgtphhtthhopeduvddpmhhouggvpehsmhhtphhouhhtpd hrtghpthhtohepghhilhhlvghssegurghrohhlugdrnhgvthdprhgtphhtthhopegrnhgu rhgvfiesughunhhslhgrnhgvrdhnvghtpdhrtghpthhtohepphgvthgvrhesvghishgvnh htrhgruhhtrdhorhhgpdhrtghpthhtohepthhsihhnghhhuhgrlhhutghkhieluddvsehf ohigmhgrihhlrdgtohhmpdhrtghpthhtoheplhhiuhighhdriihjrdgtnhesghhmrghilh drtghomhdprhgtphhtthhopehnrghthhgrnhgusghoshhsrghrthesghhmrghilhdrtgho mhdprhgtphhtthhopehnihhushhhihhjihesghhmrghilhdrtghomhdprhgtphhtthhope hshhhihihuvghfvghiuddttdegsehgmhgrihhlrdgtohhmpdhrtghpthhtohepjhgrphhi nhhliheshhhothhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: i0c21471d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 5A3C1182007A; Wed, 4 Feb 2026 19:51:34 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 X-ThreadId: ALvzPRv-w3yJ Date: Wed, 04 Feb 2026 21:51:10 -0300 From: "Euler Taveira" To: "Nathan Bossart" Cc: "Peter Eisentraut" , "Gilles Darold" , "Zsolt Parragi" , japin , "Yuefei Shi" , songjinzhou , pgsql-hackers , "Andrew Dunstan" , "Tom Lane" , "liu xiaohui" , "Steven Niu" Message-Id: <3cc53f9a-e56d-4950-8dd8-db1eaa9ef986@app.fastmail.com> In-Reply-To: References: <197512e0-8116-4776-a600-822d29ee68a6@darold.net> <1f4d0b80-3fea-4f4d-8d33-a652ea23e90b@eisentraut.org> <5798afb7-b10c-436f-987e-14fb625df7d0@app.fastmail.com> Subject: Re: Pasword expiration warning 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, Feb 4, 2026, at 7:15 PM, Nathan Bossart wrote: > On Wed, Feb 04, 2026 at 06:12:07PM -0300, Euler Taveira wrote: >> That's correct. You should use ngettext(). Using the plural form mean= s better >> translation. Looking at some messages in the catalog, the developers = tend to >> ignore the fact that the sentence has a plural form too. Sometimes it= is hard >> to write a message if multiple parts of the message have plural form.= I >> completely understand your resistance. > > Please pardon the brain fade; I'd forgotten about ngettext() and missed > your previous message. Here is an updated patch. > LGTM. Translation works fine. $ psql -U baz Senha para o usu=C3=A1rio baz:=20 AVISO: senha expirar=C3=A1 em breve DETALHE: A senha da role "baz" expirar=C3=A1 em 3 dias. $ psql -U bar Senha para o usu=C3=A1rio bar:=20 AVISO: senha expirar=C3=A1 em breve DETALHE: A senha da role "bar" expirar=C3=A1 em 2 horas. $ psql -U bar1 Senha para o usu=C3=A1rio bar1:=20 AVISO: senha expirar=C3=A1 em breve DETALHE: A senha da role "bar1" expirar=C3=A1 em 15 minutos. $ psql -U bar2 Senha para o usu=C3=A1rio bar2:=20 AVISO: senha expirar=C3=A1 em breve DETALHE: A senha da role "bar2" expirar=C3=A1 em menos de 1 minuto. --=20 Euler Taveira EDB https://www.enterprisedb.com/