1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-30 21:42:05 +03:00

Fix translator notes in comments

The translator comments detailing what a %s inclusion refers to were
accidentally including too many address types.  In practice this is
not a problem since it's not a translated string, but to minimize any
risk of confusion let's fix them anwyays.  Even though this exists in
backbranches there is little use for backpatch as the translation work
has already happened there, so let's avoid the churn.

Author: Japin Li <japinli@hotmail.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/ME0P300MB04458DE627480614ABE639D2B6FB2@ME0P300MB0445.AUSP300.PROD.OUTLOOK.COM
This commit is contained in:
Daniel Gustafsson
2025-02-17 20:23:34 +01:00
parent c407d5426b
commit 9cdc21b533

View File

@ -571,7 +571,7 @@ ListenServerPort(int family, const char *hostName, unsigned short portNumber,
{ {
ereport(LOG, ereport(LOG,
(errcode_for_socket_access(), (errcode_for_socket_access(),
/* translator: third %s is IPv4, IPv6, or Unix */ /* translator: third %s is IPv4 or IPv6 */
errmsg("%s(%s) failed for %s address \"%s\": %m", errmsg("%s(%s) failed for %s address \"%s\": %m",
"setsockopt", "SO_REUSEADDR", "setsockopt", "SO_REUSEADDR",
familyDesc, addrDesc))); familyDesc, addrDesc)));
@ -589,7 +589,7 @@ ListenServerPort(int family, const char *hostName, unsigned short portNumber,
{ {
ereport(LOG, ereport(LOG,
(errcode_for_socket_access(), (errcode_for_socket_access(),
/* translator: third %s is IPv4, IPv6, or Unix */ /* translator: third %s is IPv6 */
errmsg("%s(%s) failed for %s address \"%s\": %m", errmsg("%s(%s) failed for %s address \"%s\": %m",
"setsockopt", "IPV6_V6ONLY", "setsockopt", "IPV6_V6ONLY",
familyDesc, addrDesc))); familyDesc, addrDesc)));