summaryrefslogtreecommitdiff
path: root/src/backend/utils/fmgr/dfmgr.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2024-09-04 14:53:18 +0900
committerMichael Paquier <michael@paquier.xyz>2024-09-04 14:53:18 +0900
commita68159ff2b32f290b1136e2940470d50b8491301 (patch)
treec43f5b32ed2b84d19f88be648ef97c087d7b48d5 /src/backend/utils/fmgr/dfmgr.c
parentb4db64270e0c18f72c9c7bf214c809949875a85a (diff)
Unify some error messages to ease work of translators
This commit updates a couple of error messages around control file data, GUCs and server settings, unifying to the same message where possible. This reduces the translation burden a bit. Author: Peter Smith Discussion: https://postgr.es/m/CAHut+Pv-kSN8SkxSdoHano_wPubqcg5789ejhCDZAcLFceBR-w@mail.gmail.com
Diffstat (limited to 'src/backend/utils/fmgr/dfmgr.c')
-rw-r--r--src/backend/utils/fmgr/dfmgr.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/backend/utils/fmgr/dfmgr.c b/src/backend/utils/fmgr/dfmgr.c
index 092004dcf3b..c7aa789b51b 100644
--- a/src/backend/utils/fmgr/dfmgr.c
+++ b/src/backend/utils/fmgr/dfmgr.c
@@ -358,8 +358,9 @@ incompatible_module_error(const char *libname,
if (details.len)
appendStringInfoChar(&details, '\n');
appendStringInfo(&details,
- _("Server has FUNC_MAX_ARGS = %d, library has %d."),
- magic_data.funcmaxargs,
+ /* translator: %s is a variable name and %d its values */
+ _("Server has %s = %d, library has %d."),
+ "FUNC_MAX_ARGS", magic_data.funcmaxargs,
module_magic_data->funcmaxargs);
}
if (module_magic_data->indexmaxkeys != magic_data.indexmaxkeys)
@@ -367,8 +368,9 @@ incompatible_module_error(const char *libname,
if (details.len)
appendStringInfoChar(&details, '\n');
appendStringInfo(&details,
- _("Server has INDEX_MAX_KEYS = %d, library has %d."),
- magic_data.indexmaxkeys,
+ /* translator: %s is a variable name and %d its values */
+ _("Server has %s = %d, library has %d."),
+ "INDEX_MAX_KEYS", magic_data.indexmaxkeys,
module_magic_data->indexmaxkeys);
}
if (module_magic_data->namedatalen != magic_data.namedatalen)
@@ -376,8 +378,9 @@ incompatible_module_error(const char *libname,
if (details.len)
appendStringInfoChar(&details, '\n');
appendStringInfo(&details,
- _("Server has NAMEDATALEN = %d, library has %d."),
- magic_data.namedatalen,
+ /* translator: %s is a variable name and %d its values */
+ _("Server has %s = %d, library has %d."),
+ "NAMEDATALEN", magic_data.namedatalen,
module_magic_data->namedatalen);
}
if (module_magic_data->float8byval != magic_data.float8byval)
@@ -385,8 +388,9 @@ incompatible_module_error(const char *libname,
if (details.len)
appendStringInfoChar(&details, '\n');
appendStringInfo(&details,
- _("Server has FLOAT8PASSBYVAL = %s, library has %s."),
- magic_data.float8byval ? "true" : "false",
+ /* translator: %s is a variable name and %d its values */
+ _("Server has %s = %s, library has %s."),
+ "FLOAT8PASSBYVAL", magic_data.float8byval ? "true" : "false",
module_magic_data->float8byval ? "true" : "false");
}