Skip to content

Commit 56a9ed9

Browse files
committed
Adjust translator comment format to xgettext expectations
1 parent b64f18c commit 56a9ed9

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
@@ -3280,11 +3280,10 @@ ExecuteRecoveryCommand(char *command, char *commandName, bool failOnSignal)
32803280
*/
32813281
signaled = WIFSIGNALED(rc) || WEXITSTATUS(rc) > 125;
32823282

3283-
/*
3284-
* translator: First %s represents a recovery.conf parameter name like
3285-
* "recovery_end_command", and the 2nd is the value of that parameter.
3286-
*/
32873283
ereport((signaled && failOnSignal) ? FATAL : WARNING,
3284+
/*------
3285+
translator: First %s represents a recovery.conf parameter name like
3286+
"recovery_end_command", and the 2nd is the value of that parameter. */
32883287
(errmsg("%s \"%s\": return code %d", commandName,
32893288
command, rc)));
32903289
}

src/backend/catalog/dependency.c

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

2450-
/*
2451-
* translator: %d is the operator strategy (a number), the
2452-
* first two %s's are data type names, the third %s is the
2453-
* description of the operator family, and the last %s is the
2454-
* textual form of the operator with arguments.
2455-
*/
2450+
/*------
2451+
translator: %d is the operator strategy (a number), the
2452+
first two %s's are data type names, the third %s is the
2453+
description of the operator family, and the last %s is the
2454+
textual form of the operator with arguments. */
24562455
appendStringInfo(&buffer, _("operator %d (%s, %s) of %s: %s"),
24572456
amopForm->amopstrategy,
24582457
format_type_be(amopForm->amoplefttype),
@@ -2498,12 +2497,11 @@ getObjectDescription(const ObjectAddress *object)
24982497
initStringInfo(&opfam);
24992498
getOpFamilyDescription(&opfam, amprocForm->amprocfamily);
25002499

2501-
/*
2502-
* translator: %d is the function number, the first two %s's
2503-
* are data type names, the third %s is the description of the
2504-
* operator family, and the last %s is the textual form of the
2505-
* function with arguments.
2506-
*/
2500+
/*------
2501+
translator: %d is the function number, the first two %s's
2502+
are data type names, the third %s is the description of the
2503+
operator family, and the last %s is the textual form of the
2504+
function with arguments. */
25072505
appendStringInfo(&buffer, _("function %d (%s, %s) of %s: %s"),
25082506
amprocForm->amprocnum,
25092507
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy