]> granicus.if.org Git - postgresql/commitdiff
Make some strings translatable again that were accidentally removed in
authorMagnus Hagander <magnus@hagander.net>
Wed, 21 Jan 2009 09:28:26 +0000 (09:28 +0000)
committerMagnus Hagander <magnus@hagander.net>
Wed, 21 Jan 2009 09:28:26 +0000 (09:28 +0000)
earlier patch to fix "printf-arguments".

src/backend/commands/trigger.c
src/backend/utils/misc/guc.c

index 270437dcb20d6682e87704b2ed4e5ee89d41eccd..09cc7860e0c73b1b61d94915c16d86e6c4fb46ee 100644 (file)
@@ -7,7 +7,7 @@
  * Portions Copyright (c) 1994, Regents of the University of California
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/commands/trigger.c,v 1.243 2009/01/01 17:23:40 momjian Exp $
+ *       $PostgreSQL: pgsql/src/backend/commands/trigger.c,v 1.244 2009/01/21 09:28:26 mha Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -614,7 +614,7 @@ ConvertTriggerToFK(CreateTrigStmt *stmt, Oid funcoid)
                ereport(NOTICE,
                (errmsg("ignoring incomplete trigger group for constraint \"%s\" %s",
                                constr_name, buf.data),
-                errdetail("%s", funcdescr[funcnum])));
+                errdetail("%s", _(funcdescr[funcnum]))));
                oldContext = MemoryContextSwitchTo(TopMemoryContext);
                info = (OldTriggerInfo *) palloc0(sizeof(OldTriggerInfo));
                info->args = copyObject(stmt->args);
@@ -630,7 +630,7 @@ ConvertTriggerToFK(CreateTrigStmt *stmt, Oid funcoid)
                ereport(NOTICE,
                (errmsg("ignoring incomplete trigger group for constraint \"%s\" %s",
                                constr_name, buf.data),
-                errdetail("%s", funcdescr[funcnum])));
+                errdetail("%s", _(funcdescr[funcnum]))));
        }
        else
        {
@@ -642,7 +642,7 @@ ConvertTriggerToFK(CreateTrigStmt *stmt, Oid funcoid)
                ereport(NOTICE,
                                (errmsg("converting trigger group into constraint \"%s\" %s",
                                                constr_name, buf.data),
-                                errdetail("%s", funcdescr[funcnum])));
+                                errdetail("%s", _(funcdescr[funcnum]))));
                if (funcnum == 2)
                {
                        /* This trigger is on the FK table */
index fbba0557d29bf50a7a6905b9962de4da55f2c21e..40b087a8f3adc541c3442c931a73be63ca90fabd 100644 (file)
@@ -10,7 +10,7 @@
  * Written by Peter Eisentraut <peter_e@gmx.net>.
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.494 2009/01/16 13:27:24 heikki Exp $
+ *       $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.495 2009/01/21 09:28:26 mha Exp $
  *
  *--------------------------------------------------------------------
  */
@@ -4801,7 +4801,7 @@ set_config_option(const char *name, const char *value,
                                                                (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
                                                 errmsg("invalid value for parameter \"%s\": \"%s\"",
                                                                name, value),
-                                                                hintmsg ? errhint("%s", hintmsg) : 0));
+                                                                hintmsg ? errhint("%s", _(hintmsg)) : 0));
                                                return false;
                                        }
                                        if (newval < conf->min || newval > conf->max)
@@ -5069,7 +5069,7 @@ set_config_option(const char *name, const char *value,
                                                                (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
                                                                 errmsg("invalid value for parameter \"%s\": \"%s\"",
                                                                                name, value),
-                                                                hintmsg ? errhint("%s", hintmsg) : 0));
+                                                                hintmsg ? errhint("%s", _(hintmsg)) : 0));
 
                                                if (hintmsg)
                                                        pfree(hintmsg);