diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2011-09-05 18:52:49 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2011-09-05 19:03:51 -0300 |
commit | 7dc956fee3284170db50c343bad9f52cf767894b (patch) | |
tree | f09c14ddc5495061ebe5a41c0f608b36ca5b2c9f | |
parent | c729082da46c615e663e7c7f996baff1c4c3d560 (diff) | |
download | postgresql-7dc956fee3284170db50c343bad9f52cf767894b.tar.gz |
Adjust translator comment format to xgettext expectations
-rw-r--r-- | src/backend/access/transam/xlog.c | 7 | ||||
-rw-r--r-- | src/backend/catalog/dependency.c | 22 | ||||
-rw-r--r-- | src/bin/scripts/common.c | 7 |
3 files changed, 16 insertions, 20 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 2529d12333..633450fbc7 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -3222,11 +3222,10 @@ ExecuteRecoveryCommand(char *command, char *commandName, bool failOnSignal) */ 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, + /*------ + 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, command, rc))); } diff --git a/src/backend/catalog/dependency.c b/src/backend/catalog/dependency.c index 0526555ac3..0c91536c6c 100644 --- a/src/backend/catalog/dependency.c +++ b/src/backend/catalog/dependency.c @@ -2451,12 +2451,11 @@ getObjectDescription(const ObjectAddress *object) initStringInfo(&opfam); getOpFamilyDescription(&opfam, amopForm->amopfamily); - /* - * translator: %d is the operator strategy (a number), 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 - * textual form of the operator with arguments. - */ + /*------ + translator: %d is the operator strategy (a number), 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 + textual form of the operator with arguments. */ appendStringInfo(&buffer, _("operator %d (%s, %s) of %s: %s"), amopForm->amopstrategy, format_type_be(amopForm->amoplefttype), @@ -2502,12 +2501,11 @@ getObjectDescription(const ObjectAddress *object) initStringInfo(&opfam); getOpFamilyDescription(&opfam, amprocForm->amprocfamily); - /* - * translator: %d is the function number, 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 textual form of the - * function with arguments. - */ + /*------ + translator: %d is the function number, 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 textual form of the + function with arguments. */ appendStringInfo(&buffer, _("function %d (%s, %s) of %s: %s"), amprocForm->amprocnum, format_type_be(amprocForm->amproclefttype), diff --git a/src/bin/scripts/common.c b/src/bin/scripts/common.c index e85adfaf11..9a7cc2c264 100644 --- a/src/bin/scripts/common.c +++ b/src/bin/scripts/common.c @@ -289,10 +289,9 @@ yesno_prompt(const char *question) { char prompt[256]; - /* - * translator: This is a question followed by the translated options for - * "yes" and "no". - */ + /*------ + translator: This is a question followed by the translated options for + "yes" and "no". */ snprintf(prompt, sizeof(prompt), _("%s (%s/%s) "), _(question), _(PG_YESLETTER), _(PG_NOLETTER)); |