| From: | "Euler Taveira" <euler(at)eulerto(dot)com> |
|---|---|
| To: | "Nathan Bossart" <nathandbossart(at)gmail(dot)com> |
| Cc: | "Peter Eisentraut" <peter(at)eisentraut(dot)org>, "Gilles Darold" <gilles(at)darold(dot)net>, "Zsolt Parragi" <zsolt(dot)parragi(at)percona(dot)com>, japin <japinli(at)hotmail(dot)com>, "Yuefei Shi" <shiyuefei1004(at)gmail(dot)com>, songjinzhou <tsinghualucky912(at)foxmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, "Andrew Dunstan" <andrew(at)dunslane(dot)net>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "liu xiaohui" <liuxh(dot)zj(dot)cn(at)gmail(dot)com>, "Steven Niu" <niushiji(at)gmail(dot)com> |
| Subject: | Re: Pasword expiration warning |
| Date: | 2026-02-05 00:51:10 |
| Message-ID: | 3cc53f9a-e56d-4950-8dd8-db1eaa9ef986@app.fastmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| 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/
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Chao Li | 2026-02-05 01:06:27 | Re: Pasword expiration warning |
| Previous Message | Henson Choi | 2026-02-05 00:46:06 | Re: Row pattern recognition |