diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml
index 1961ce58753..7887a5ad7e8 100644
--- a/doc/src/sgml/libpq.sgml
+++ b/doc/src/sgml/libpq.sgml
@@ -6878,7 +6878,7 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
PGLOCALEDIR
PGLOCALEDIR sets the directory containing the
- locale> files for message internationalization.
+ locale> files for message localization.
diff --git a/src/interfaces/ecpg/ecpglib/misc.c b/src/interfaces/ecpg/ecpglib/misc.c
index 9371f7140f4..2e622607477 100644
--- a/src/interfaces/ecpg/ecpglib/misc.c
+++ b/src/interfaces/ecpg/ecpglib/misc.c
@@ -260,7 +260,7 @@ ecpg_log(const char *format,...)
if (!simple_debug)
return;
- /* internationalize the error message string */
+ /* localize the error message string */
intl_format = ecpg_gettext(format);
/*
diff --git a/src/interfaces/ecpg/preproc/ecpg.header b/src/interfaces/ecpg/preproc/ecpg.header
index 64e7600a8cb..9c5018c2490 100644
--- a/src/interfaces/ecpg/preproc/ecpg.header
+++ b/src/interfaces/ecpg/preproc/ecpg.header
@@ -67,7 +67,7 @@ struct ECPGtype ecpg_query = {ECPGt_char_variable, NULL, NULL, NULL, {NULL}, 0};
static void __attribute__((format(PG_PRINTF_ATTRIBUTE, 3, 0)))
vmmerror(int error_code, enum errortype type, const char *error, va_list ap)
{
- /* internationalize the error message string */
+ /* localize the error message string */
error = _(error);
fprintf(stderr, "%s:%d: ", input_filename, yylineno);