pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: alexey.ermakov@postgresql-consulting.com
To: pgsql-bugs@postgresql.org
Subject: BUG #14369: incorrect translation of error message to russian
Date: Thu, 13 Oct 2016 10:22:59 +0000
Message-ID: <20161013102259.1398.208@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      14369
Logged by:          Alexey Ermakov
Email address:      alexey.ermakov@postgresql-consulting.com
PostgreSQL version: 9.5.4
Operating system:   CentOS Linux release 7.2.1511 (Core)
Description:        

Hello,

it seems there is confusing error message in russian when client is trying
to connect from a host which is not in pg_hba.
it says that connection is used for replication but in fact it is not.

/src/backend/po/ru.po:11605

#: libpq/auth.c:482
#, c-format
msgid "no pg_hba.conf entry for host \"%s\", user \"%s\", database \"%s\",
%s"
msgstr ""
"в pg_hba.conf нет записи, разрешающей подключение для репликации с "
"компьютера \"%s\" для пользователя \"%s\", базы данных \"%s\", %s"


I think it should be something like this:

#: libpq/auth.c:482
#, c-format
msgid "no pg_hba.conf entry for host \"%s\", user \"%s\", database \"%s\",
%s"
msgstr ""
"в pg_hba.conf нет записи, разрешающей подключение с "
"компьютера \"%s\" для пользователя \"%s\", базы данных \"%s\", %s"

steps to reproduce:

1) comment out line in default pg_hba:
#host    all             all             127.0.0.1/32            ident

2) lc_messages = ru_RU.UTF-8

3) reload

4)
-bash-4.2$ psql -h 127.0.0.1
psql: ВАЖНО:  в pg_hba.conf нет записи, разрешающей подключение для
репликации с компьютера "127.0.0.1" для пользователя "postgres", базы данных
"postgres", SSL выкл.


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


Message-ID: <20161013102259.1398.208@wrigleys.postgresql.org>
Permalink:  ../20161013102259.1398.208@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20161013102259.1398.208@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: alexey.ermakov@postgresql-consulting.com
  Subject: Re: BUG #14369: incorrect translation of error message to russian
  In-Reply-To: <20161013102259.1398.208@wrigleys.postgresql.org>
  References: <20161013102259.1398.208@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox