Re: Pasword expiration warning
| От | Euler Taveira |
|---|---|
| Тема | Re: Pasword expiration warning |
| Дата | |
| Msg-id | 3cc53f9a-e56d-4950-8dd8-db1eaa9ef986@app.fastmail.com обсуждение исходный текст |
| Ответ на | Re: Pasword expiration warning (Nathan Bossart <nathandbossart@gmail.com>) |
| Список | 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/
В списке pgsql-hackers по дате отправления: