Re: Pasword expiration warning
Euler Taveira <euler@eulerto.com>
From: "Euler Taveira" <euler@eulerto.com>
To: "Nathan Bossart" <nathandbossart@gmail.com>
Cc: "Peter Eisentraut" <peter@eisentraut.org>,
"Gilles Darold" <gilles@darold.net>,
"Zsolt Parragi" <zsolt.parragi@percona.com>, japin <japinli@hotmail.com>,
"Yuefei Shi" <shiyuefei1004@gmail.com>,
songjinzhou <tsinghualucky912@foxmail.com>,
pgsql-hackers <pgsql-hackers@postgresql.org>,
"Andrew Dunstan" <andrew@dunslane.net>, "Tom Lane" <tgl@sss.pgh.pa.us>,
"liu xiaohui" <liuxh.zj.cn@gmail.com>, "Steven Niu" <niushiji@gmail.com>
Date: 2026-02-05T00:51:10Z
Lists: pgsql-hackers
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 means 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ário baz: AVISO: senha expirará em breve DETALHE: A senha da role "baz" expirará em 3 dias. $ psql -U bar Senha para o usuário bar: AVISO: senha expirará em breve DETALHE: A senha da role "bar" expirará em 2 horas. $ psql -U bar1 Senha para o usuário bar1: AVISO: senha expirará em breve DETALHE: A senha da role "bar1" expirará em 15 minutos. $ psql -U bar2 Senha para o usuário bar2: AVISO: senha expirará em breve DETALHE: A senha da role "bar2" expirará em menos de 1 minuto. -- Euler Taveira EDB https://www.enterprisedb.com/
Commits
-
Add password expiration warnings.
- 1d92e0c2cc47 19 (unreleased) landed