Commit 56a9ed92 authored by Alvaro Herrera's avatar Alvaro Herrera

Adjust translator comment format to xgettext expectations

parent b64f18c5
...@@ -3280,11 +3280,10 @@ ExecuteRecoveryCommand(char *command, char *commandName, bool failOnSignal) ...@@ -3280,11 +3280,10 @@ ExecuteRecoveryCommand(char *command, char *commandName, bool failOnSignal)
*/ */
signaled = WIFSIGNALED(rc) || WEXITSTATUS(rc) > 125; signaled = WIFSIGNALED(rc) || WEXITSTATUS(rc) > 125;
/*
* translator: First %s represents a recovery.conf parameter name like
* "recovery_end_command", and the 2nd is the value of that parameter.
*/
ereport((signaled && failOnSignal) ? FATAL : WARNING, ereport((signaled && failOnSignal) ? FATAL : WARNING,
/*------
translator: First %s represents a recovery.conf parameter name like
"recovery_end_command", and the 2nd is the value of that parameter. */
(errmsg("%s \"%s\": return code %d", commandName, (errmsg("%s \"%s\": return code %d", commandName,
command, rc))); command, rc)));
} }
......
...@@ -2447,12 +2447,11 @@ getObjectDescription(const ObjectAddress *object) ...@@ -2447,12 +2447,11 @@ getObjectDescription(const ObjectAddress *object)
initStringInfo(&opfam); initStringInfo(&opfam);
getOpFamilyDescription(&opfam, amopForm->amopfamily); getOpFamilyDescription(&opfam, amopForm->amopfamily);
/* /*------
* translator: %d is the operator strategy (a number), the translator: %d is the operator strategy (a number), the
* first two %s's are data type names, the third %s is the first two %s's are data type names, the third %s is the
* description of the operator family, and the last %s is the description of the operator family, and the last %s is the
* textual form of the operator with arguments. textual form of the operator with arguments. */
*/
appendStringInfo(&buffer, _("operator %d (%s, %s) of %s: %s"), appendStringInfo(&buffer, _("operator %d (%s, %s) of %s: %s"),
amopForm->amopstrategy, amopForm->amopstrategy,
format_type_be(amopForm->amoplefttype), format_type_be(amopForm->amoplefttype),
...@@ -2498,12 +2497,11 @@ getObjectDescription(const ObjectAddress *object) ...@@ -2498,12 +2497,11 @@ getObjectDescription(const ObjectAddress *object)
initStringInfo(&opfam); initStringInfo(&opfam);
getOpFamilyDescription(&opfam, amprocForm->amprocfamily); getOpFamilyDescription(&opfam, amprocForm->amprocfamily);
/* /*------
* translator: %d is the function number, the first two %s's translator: %d is the function number, the first two %s's
* are data type names, the third %s is the description of the are data type names, the third %s is the description of the
* operator family, and the last %s is the textual form of the operator family, and the last %s is the textual form of the
* function with arguments. function with arguments. */
*/
appendStringInfo(&buffer, _("function %d (%s, %s) of %s: %s"), appendStringInfo(&buffer, _("function %d (%s, %s) of %s: %s"),
amprocForm->amprocnum, amprocForm->amprocnum,
format_type_be(amprocForm->amproclefttype), format_type_be(amprocForm->amproclefttype),
......
...@@ -289,10 +289,9 @@ yesno_prompt(const char *question) ...@@ -289,10 +289,9 @@ yesno_prompt(const char *question)
{ {
char prompt[256]; char prompt[256];
/* /*------
* translator: This is a question followed by the translated options for translator: This is a question followed by the translated options for
* "yes" and "no". "yes" and "no". */
*/
snprintf(prompt, sizeof(prompt), _("%s (%s/%s) "), snprintf(prompt, sizeof(prompt), _("%s (%s/%s) "),
_(question), _(PG_YESLETTER), _(PG_NOLETTER)); _(question), _(PG_YESLETTER), _(PG_NOLETTER));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment