Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7dc956f

Browse files
committed
Adjust translator comment format to xgettext expectations
1 parent c729082 commit 7dc956f

File tree

3 files changed

+16
-20
lines changed

3 files changed

+16
-20
lines changed

src/backend/access/transam/xlog.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3222,11 +3222,10 @@ ExecuteRecoveryCommand(char *command, char *commandName, bool failOnSignal)
32223222
*/
32233223
signaled = WIFSIGNALED(rc) || WEXITSTATUS(rc) > 125;
32243224

3225-
/*
3226-
* translator: First %s represents a recovery.conf parameter name like
3227-
* "recovery_end_command", and the 2nd is the value of that parameter.
3228-
*/
32293225
ereport((signaled && failOnSignal) ? FATAL : WARNING,
3226+
/*------
3227+
translator: First %s represents a recovery.conf parameter name like
3228+
"recovery_end_command", and the 2nd is the value of that parameter. */
32303229
(errmsg("%s \"%s\": return code %d", commandName,
32313230
command, rc)));
32323231
}

src/backend/catalog/dependency.c

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2451,12 +2451,11 @@ getObjectDescription(const ObjectAddress *object)
24512451
initStringInfo(&opfam);
24522452
getOpFamilyDescription(&opfam, amopForm->amopfamily);
24532453

2454-
/*
2455-
* translator: %d is the operator strategy (a number), the
2456-
* first two %s's are data type names, the third %s is the
2457-
* description of the operator family, and the last %s is the
2458-
* textual form of the operator with arguments.
2459-
*/
2454+
/*------
2455+
translator: %d is the operator strategy (a number), the
2456+
first two %s's are data type names, the third %s is the
2457+
description of the operator family, and the last %s is the
2458+
textual form of the operator with arguments. */
24602459
appendStringInfo(&buffer, _("operator %d (%s, %s) of %s: %s"),
24612460
amopForm->amopstrategy,
24622461
format_type_be(amopForm->amoplefttype),
@@ -2502,12 +2501,11 @@ getObjectDescription(const ObjectAddress *object)
25022501
initStringInfo(&opfam);
25032502
getOpFamilyDescription(&opfam, amprocForm->amprocfamily);
25042503

2505-
/*
2506-
* translator: %d is the function number, the first two %s's
2507-
* are data type names, the third %s is the description of the
2508-
* operator family, and the last %s is the textual form of the
2509-
* function with arguments.
2510-
*/
2504+
/*------
2505+
translator: %d is the function number, the first two %s's
2506+
are data type names, the third %s is the description of the
2507+
operator family, and the last %s is the textual form of the
2508+
function with arguments. */
25112509
appendStringInfo(&buffer, _("function %d (%s, %s) of %s: %s"),
25122510
amprocForm->amprocnum,
25132511
format_type_be(amprocForm->amproclefttype),

src/bin/scripts/common.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,10 +289,9 @@ yesno_prompt(const char *question)
289289
{
290290
char prompt[256];
291291

292-
/*
293-
* translator: This is a question followed by the translated options for
294-
* "yes" and "no".
295-
*/
292+
/*------
293+
translator: This is a question followed by the translated options for
294+
"yes" and "no". */
296295
snprintf(prompt, sizeof(prompt), _("%s (%s/%s) "),
297296
_(question), _(PG_YESLETTER), _(PG_NOLETTER));
298297

0 commit comments

Comments
 (0)