psql: Add missing file to nls.mk
authorPeter Eisentraut <[email protected]>
Tue, 7 Jun 2016 14:58:46 +0000 (10:58 -0400)
committerPeter Eisentraut <[email protected]>
Tue, 7 Jun 2016 14:58:46 +0000 (10:58 -0400)
crosstabview.c was not added to nls.mk when it was added.  Also remove
redundant gettext markers, since psql_error() is already registered as a
gettext keyword.

src/bin/psql/crosstabview.c
src/bin/psql/nls.mk

index 7685c6e74672f3943106cd3bf3adc158bb5e6625..1e838bb3135a084bf07966eeb88fec758f69be97 100644 (file)
@@ -122,13 +122,13 @@ PrintResultsInCrosstab(const PGresult *res)
 
    if (PQresultStatus(res) != PGRES_TUPLES_OK)
    {
-       psql_error(_("\\crosstabview: query must return results to be shown in crosstab\n"));
+       psql_error("\\crosstabview: query must return results to be shown in crosstab\n");
        goto error_return;
    }
 
    if (PQnfields(res) < 3)
    {
-       psql_error(_("\\crosstabview: query must return at least three columns\n"));
+       psql_error("\\crosstabview: query must return at least three columns\n");
        goto error_return;
    }
 
@@ -155,7 +155,7 @@ PrintResultsInCrosstab(const PGresult *res)
    /* Insist that header columns be distinct */
    if (field_for_columns == field_for_rows)
    {
-       psql_error(_("\\crosstabview: vertical and horizontal headers must be different columns\n"));
+       psql_error("\\crosstabview: vertical and horizontal headers must be different columns\n");
        goto error_return;
    }
 
@@ -171,7 +171,7 @@ PrintResultsInCrosstab(const PGresult *res)
         */
        if (PQnfields(res) != 3)
        {
-           psql_error(_("\\crosstabview: data column must be specified when query returns more than three columns\n"));
+           psql_error("\\crosstabview: data column must be specified when query returns more than three columns\n");
            goto error_return;
        }
 
@@ -227,7 +227,7 @@ PrintResultsInCrosstab(const PGresult *res)
 
        if (piv_columns.count > CROSSTABVIEW_MAX_COLUMNS)
        {
-           psql_error(_("\\crosstabview: maximum number of columns (%d) exceeded\n"),
+           psql_error("\\crosstabview: maximum number of columns (%d) exceeded\n",
                       CROSSTABVIEW_MAX_COLUMNS);
            goto error_return;
        }
@@ -395,7 +395,7 @@ printCrosstab(const PGresult *results,
             */
            if (cont.cells[idx] != NULL)
            {
-               psql_error(_("\\crosstabview: query result contains multiple data values for row \"%s\", column \"%s\"\n"),
+               psql_error("\\crosstabview: query result contains multiple data values for row \"%s\", column \"%s\"\n",
                             piv_rows[row_number].name ? piv_rows[row_number].name :
                             popt.nullPrint ? popt.nullPrint : "(null)",
                             piv_columns[col_number].name ? piv_columns[col_number].name :
@@ -643,7 +643,7 @@ indexOfColumn(char *arg, const PGresult *res)
        idx = atoi(arg) - 1;
        if (idx < 0 || idx >= PQnfields(res))
        {
-           psql_error(_("\\crosstabview: invalid column number: \"%s\"\n"), arg);
+           psql_error("\\crosstabview: invalid column number: \"%s\"\n", arg);
            return -1;
        }
    }
@@ -667,7 +667,7 @@ indexOfColumn(char *arg, const PGresult *res)
                if (idx >= 0)
                {
                    /* another idx was already found for the same name */
-                   psql_error(_("\\crosstabview: ambiguous column name: \"%s\"\n"), arg);
+                   psql_error("\\crosstabview: ambiguous column name: \"%s\"\n", arg);
                    return -1;
                }
                idx = i;
@@ -675,7 +675,7 @@ indexOfColumn(char *arg, const PGresult *res)
        }
        if (idx == -1)
        {
-           psql_error(_("\\crosstabview: column name not found: \"%s\"\n"), arg);
+           psql_error("\\crosstabview: column name not found: \"%s\"\n", arg);
            return -1;
        }
    }
index d3e02209cc6510c4772910ae4652259c485c9bec..671c78a2b860d92e12e349352273cfb9cb1e223c 100644 (file)
@@ -1,7 +1,7 @@
 # src/bin/psql/nls.mk
 CATALOG_NAME     = psql
 AVAIL_LANGUAGES  = cs de es fr it ja pl pt_BR ru zh_CN zh_TW
-GETTEXT_FILES    = command.c common.c copy.c help.c input.c large_obj.c \
+GETTEXT_FILES    = command.c common.c copy.c crosstabview.c help.c input.c large_obj.c \
                    mainloop.c psqlscanslash.c startup.c \
                    describe.c sql_help.h sql_help.c \
                    tab-complete.c variables.c \