Adjust translator comment format to xgettext expectations
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 5 Sep 2011 21:52:49 +0000 (18:52 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 5 Sep 2011 22:04:30 +0000 (19:04 -0300)
src/backend/access/transam/xlog.c
src/backend/catalog/dependency.c
src/bin/scripts/common.c

index 7d665450178f1148068c765e86fbbdb1458654cb..4abc5630e950c55ed2d69fa5dab7c6da5dedb757 100644 (file)
@@ -3280,11 +3280,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)));
    }
index 290e74a7779b5153e5bbb227f1de17fb2779f1d5..223c097abb1a69308cf61af30d97a2a87e967058 100644 (file)
@@ -2447,12 +2447,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),
@@ -2498,12 +2497,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),
index e85adfaf11e72ba17040313f767393542229e605..9a7cc2c264cc6b31c7f232ecbe402ce63b3fe398 100644 (file)
@@ -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));