Remove translation markers from libpq-be-fe-helpers.h
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 28 Mar 2024 12:12:12 +0000 (13:12 +0100)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 28 Mar 2024 12:12:12 +0000 (13:12 +0100)
Apparently these markers cause the modules to not link correctly in some
platforms, at least per buildfarm member indri; moreover, this code is
only used in modules that don't have a translation.  If we someday add
i18n support to contrib/ it might be worth revisiting this.

src/include/libpq/libpq-be-fe-helpers.h

index 2adf92030af311fe32598ea86bc4cebecd2213bf..8be9aa1f2f990914541059e80e03221d261df681 100644 (file)
@@ -390,7 +390,7 @@ libpqsrv_cancel(PGconn *conn, TimestampTz endtime)
 
    cancel_conn = PQcancelCreate(conn);
    if (cancel_conn == NULL)
-       return _("out of memory");
+       return "out of memory";
 
    /* In what follows, do not leak any PGcancelConn on any errors. */
 
@@ -418,7 +418,7 @@ libpqsrv_cancel(PGconn *conn, TimestampTz endtime)
            cur_timeout = TimestampDifferenceMilliseconds(now, endtime);
            if (cur_timeout <= 0)
            {
-               error = _("cancel request timed out");
+               error = "cancel request timed out";
                break;
            }