Re: Remove an unnecessary errmsg_plural in dependency.c
Alvaro Herrera <alvherre@alvh.no-ip.org>
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Cc: Peter Eisentraut <peter.eisentraut@enterprisedb.com>, Daniel Gustafsson <daniel@yesql.se>, Kyotaro Horiguchi <horikyota.ntt@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-03-24T14:28:57Z
Lists: pgsql-hackers
On 2022-Mar-24, Bharath Rupireddy wrote: > Thanks. I think I get the point - is it dngettext doing things > differently for different languages? Yes. The dngettext() rules are embedded in each translation's catalog file: $ git grep 'Plural-Forms' src/backend/po/*.po de.po:"Plural-Forms: nplurals=2; plural=(n != 1);\n" es.po:"Plural-Forms: nplurals=2; plural=n != 1;\n" fr.po:"Plural-Forms: nplurals=2; plural=(n > 1);\n" id.po:"Plural-Forms: nplurals=2; plural=(n > 1);\n" it.po:"Plural-Forms: nplurals=2; plural=n != 1;\n" ja.po:"Plural-Forms: nplurals=2; plural=n != 1;\n" ko.po:"Plural-Forms: nplurals=1; plural=0;\n" pl.po:"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " pt_BR.po:"Plural-Forms: nplurals=2; plural=(n>1);\n" ru.po:"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" sv.po:"Plural-Forms: nplurals=2; plural=(n != 1);\n" tr.po:"Plural-Forms: nplurals=2; plural=(n != 1);\n" uk.po:"Plural-Forms: nplurals=4; plural=((n%10==1 && n%100!=11) ? 0 : ((n%10 >= 2 && n%10 <=4 && (n%100 < 12 || n%100 > 14)) ? 1 : ((n%10 == 0 || (n%10 >= 5 && n%10 <=9)) || (n%100 >= 11 && n%100 <= 14)) ? 2 : 3));\n" zh_CN.po:"Plural-Forms: nplurals=1; plural=0;\n" -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ Thou shalt study thy libraries and strive not to reinvent them without cause, that thy code may be short and readable and thy days pleasant and productive. (7th Commandment for C Programmers)
Commits
-
Remove unnecessary translator comment
- a47651447f01 15.0 landed