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 7f1974fa77ab3d763cae3e0d0609c3ad90f0323a..266eaa04e72c146795693ea614e759b218b3834d 100644 (file)
@@ -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 b9a1e6bed92f42cc3aec8c24511e632de36e4848..2d6972b2942b935ca023581d70e3e1cce1eff3c2 100644 (file)
@@ -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 aadd38aae279999f473f9a1e423aff4bbea42eb9..2a43c867eecea29d1af9e71444a840efdfc1defa 100644 (file)
@@ -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 3e84107806651a443ee0c8044f87af39d77f24ef..61b42b7cb88aaa8d9c2fafa6722c0627daf057b0 100644 (file)
@@ -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;
        }