errdetail_busy_db plural forms

Started by Peter Eisentrautalmost 14 years ago1 messageshackers
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

I was looking for missing use of gettext plural forms, which led me to
errdetail_busy_db().

While we can't do much about this:

errdetail("There are %d other session(s) and %d prepared transaction(s) using the database.",
notherbackends, npreparedxacts);

I think it's still worth pluralizing the other cases

errdetail("There are %d other session(s) using the database.",
notherbackends);

and

errdetail("There are %d prepared transaction(s) using the database.",
npreparedxacts);

Especially the "other sessions" case is probably the one most seen by users.

So I propose the attached patch.

Attachments:

pg-errdetail_busy_db-plurals.patchtext/x-patch; charset=UTF-8; name=pg-errdetail_busy_db-plurals.patchDownload+10-9