mirror of
https://github.com/postgres/postgres.git
synced 2025-11-22 12:22:45 +03:00
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
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user