There were a few different ways to line-wrap the error messages. Make
them all the same, and use placeholders for the actual program names,
to save translation work.
index a6577486ce9a4e8253423096b8bb1538e295e2a9..a66dd078a79e21de9f7265d35283224af3de81c2 100644 (file)
strlcpy(full_path, progname, sizeof(full_path));
if (ret == -1)
- pg_log_error("The program \"postgres\" is needed by %s but was not found in the\n"
+ pg_log_error("The program \"%s\" is needed by %s but was not found in the\n"
"same directory as \"%s\".\n"
"Check your installation.",
- progname, full_path);
+ "postgres", progname, full_path);
else
- pg_log_error("The program \"postgres\" was found by \"%s\"\n"
+ pg_log_error("The program \"%s\" was found by \"%s\"\n"
"but was not the same version as %s.\n"
"Check your installation.",
- full_path, progname);
+ "postgres", full_path, progname);
exit(1);
}
index f41084d2dba1aafbcd79d6d9c293057df4961082..3c03ace7ed6ba3b328001775d0756c9365023d9d 100644 (file)
@@ -810,8 +810,7 @@ find_other_exec_or_die(const char *argv0, const char *target, const char *versio
strlcpy(full_path, progname, sizeof(full_path));
if (ret == -1)
- write_stderr(_("The program \"%s\" is needed by %s "
- "but was not found in the\n"
+ write_stderr(_("The program \"%s\" is needed by %s but was not found in the\n"
"same directory as \"%s\".\n"
"Check your installation.\n"),
target, progname, full_path);
index 0b25526d48f872cbef37991c5df37f43f0eee563..8d548491023179bef4c2847b3a6c2e6c324818bc 100644 (file)
strlcpy(full_path, progname, sizeof(full_path));
if (ret == -1)
- pg_log_error("The program \"pg_dump\" is needed by %s but was not found in the\n"
+ pg_log_error("The program \"%s\" is needed by %s but was not found in the\n"
"same directory as \"%s\".\n"
"Check your installation.",
- progname, full_path);
+ "pg_dump", progname, full_path);
else
- pg_log_error("The program \"pg_dump\" was found by \"%s\"\n"
+ pg_log_error("The program \"%s\" was found by \"%s\"\n"
"but was not the same version as %s.\n"
"Check your installation.",
- full_path, progname);
+ "pg_dump", full_path, progname);
exit_nicely(1);
}
index ca9e50d4d0c9e11959181ca7406b823232d0f36d..630fb3b9f56bc32585a7cf83e31568b9c6b5e2f6 100644 (file)
strlcpy(full_path, progname, sizeof(full_path));
if (rc == -1)
- pg_log_error("The program \"postgres\" is needed by %s but was not found in the\n"
+ pg_log_error("The program \"%s\" is needed by %s but was not found in the\n"
"same directory as \"%s\".\n"
"Check your installation.",
- progname, full_path);
+ "postgres", progname, full_path);
else
- pg_log_error("The program \"postgres\" was found by \"%s\"\n"
+ pg_log_error("The program \"%s\" was found by \"%s\"\n"
"but was not the same version as %s.\n"
"Check your installation.",
- full_path, progname);
+ "postgres", full_path, progname);
exit(1);
}
strlcpy(full_path, progname, sizeof(full_path));
if (ret == -1)
- pg_fatal("The program \"%s\" is needed by %s but was\n"
- "not found in the same directory as \"%s\".\n"
+ pg_fatal("The program \"%s\" is needed by %s but was not found in the\n"
+ "same directory as \"%s\".\n"
"Check your installation.",
"postgres", progname, full_path);
else
- pg_fatal("The program \"%s\" was found by \"%s\" but was\n"
- "not the same version as %s.\n"
+ pg_fatal("The program \"%s\" was found by \"%s\"\n"
+ "but was not the same version as %s.\n"
"Check your installation.",
"postgres", full_path, progname);
}
index a54130b320477854546445ae25a765bf1630eef9..2fa2aa6ae04dc849d8e5b40c1080d2bf9e721072 100644 (file)
if (find_my_exec(argv[0], full_path) < 0)
strlcpy(full_path, progname, sizeof(full_path));
if (ret == -1)
- pg_log_fatal("The program \"%s\" is needed by %s but was\n"
- "not found in the same directory as \"%s\".\n"
+ pg_log_fatal("The program \"%s\" is needed by %s but was not found in the\n"
+ "same directory as \"%s\".\n"
"Check your installation.",
"pg_waldump", "pg_verifybackup", full_path);
else
- pg_log_fatal("The program \"%s\" was found by \"%s\" but was\n"
- "not the same version as %s.\n"
+ pg_log_fatal("The program \"%s\" was found by \"%s\"\n"
+ "but was not the same version as %s.\n"
"Check your installation.",
"pg_waldump", full_path, "pg_verifybackup");
}