]> granicus.if.org Git - postgresql/commitdiff
Fix some translator comments so that xgettext finds them and pgindent does
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 28 Nov 2006 12:54:42 +0000 (12:54 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 28 Nov 2006 12:54:42 +0000 (12:54 +0000)
not destroy them.  Maybe we can adjust pgindent sometime.

src/backend/parser/parse_clause.c
src/backend/parser/parse_coerce.c
src/backend/postmaster/postmaster.c
src/backend/utils/error/elog.c

index be584b514c6d42dcc6e62e332b0b2eeeb3aa85ca..996c724d1cec46c1709e0d239d81c26336446037 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/parser/parse_clause.c,v 1.158 2006/10/04 00:29:55 momjian Exp $
+ *       $PostgreSQL: pgsql/src/backend/parser/parse_clause.c,v 1.159 2006/11/28 12:54:41 petere Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -1229,10 +1229,8 @@ findTargetlistEntry(ParseState *pstate, Node *node, List **tlist, int clause)
                                                        ereport(ERROR,
                                                                        (errcode(ERRCODE_AMBIGUOUS_COLUMN),
 
-                                                       /*
-                                                        * translator: first %s is name of a SQL
-                                                        * construct, eg ORDER BY
-                                                        */
+                                                       /*------
+                                                         translator: first %s is name of a SQL construct, eg ORDER BY */
                                                                         errmsg("%s \"%s\" is ambiguous",
                                                                                        clauseText[clause], name),
                                                                         parser_errposition(pstate, location)));
index 39ae14ee1fa9f44a134fd3d39a4b7aa3c5efb8dc..a8972342af495c1a8aa7032edbf1076c463f533c 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/parser/parse_coerce.c,v 2.145 2006/10/11 20:21:03 tgl Exp $
+ *       $PostgreSQL: pgsql/src/backend/parser/parse_coerce.c,v 2.146 2006/11/28 12:54:41 petere Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -954,9 +954,8 @@ select_common_type(List *typeids, const char *context)
                                ereport(ERROR,
                                                (errcode(ERRCODE_DATATYPE_MISMATCH),
 
-                               /*
-                                * translator: first %s is name of a SQL construct, eg CASE
-                                */
+                               /*------
+                                 translator: first %s is name of a SQL construct, eg CASE */
                                                 errmsg("%s types %s and %s cannot be matched",
                                                                context,
                                                                format_type_be(ptype),
index 07b5a9d8545463edc4719a35788777e46df7f91b..907a08bb23e32a838993fe7cf1dc58a1b5bf776b 100644 (file)
@@ -37,7 +37,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.503 2006/11/21 20:59:52 tgl Exp $
+ *       $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.504 2006/11/28 12:54:41 petere Exp $
  *
  * NOTES
  *
@@ -2390,28 +2390,25 @@ LogChildExit(int lev, const char *procname, int pid, int exitstatus)
        if (WIFEXITED(exitstatus))
                ereport(lev,
 
-               /*
-                * translator: %s is a noun phrase describing a child process, such as
-                * "server process"
-                */
+               /*------
+                 translator: %s is a noun phrase describing a child process, such as
+                 "server process" */
                                (errmsg("%s (PID %d) exited with exit code %d",
                                                procname, pid, WEXITSTATUS(exitstatus))));
        else if (WIFSIGNALED(exitstatus))
                ereport(lev,
 
-               /*
-                * translator: %s is a noun phrase describing a child process, such as
-                * "server process"
-                */
+               /*------
+                 translator: %s is a noun phrase describing a child process, such as
+                 "server process" */
                                (errmsg("%s (PID %d) was terminated by signal %d",
                                                procname, pid, WTERMSIG(exitstatus))));
        else
                ereport(lev,
 
-               /*
-                * translator: %s is a noun phrase describing a child process, such as
-                * "server process"
-                */
+               /*------
+                 translator: %s is a noun phrase describing a child process, such as
+                 "server process" */
                                (errmsg("%s (PID %d) exited with unexpected status %d",
                                                procname, pid, exitstatus)));
 }
index 714fb9d0ca2110c16947c5d92f328d672245f13f..fe6dfb93a86d21bb4a721cf39968708f76a54eee 100644 (file)
@@ -42,7 +42,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.177 2006/11/21 22:19:46 tgl Exp $
+ *       $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.178 2006/11/28 12:54:42 petere Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -1957,11 +1957,10 @@ useful_strerror(int errnum)
         */
        if (str == NULL || *str == '\0')
        {
-               /*
-                * translator: This string will be truncated at 47 characters
-                * expanded.
-                */
                snprintf(errorstr_buf, sizeof(errorstr_buf),
+                                /*------
+                                  translator: This string will be truncated at 47
+                                  characters expanded. */
                                 _("operating system error %d"), errnum);
                str = errorstr_buf;
        }