darold / pgbadger

A fast PostgreSQL Log Analyzer
http://pgbadger.darold.net/
PostgreSQL License
3.45k stars 348 forks source link

lc_messages not in English #795

Open Krysztophe opened 10 months ago

Krysztophe commented 10 months ago

''lc_messages = C'' is not set by default by some customers, so I have already lost time generating empty reports before checking it.

darold commented 9 months ago

Hi Christophe,

About point 1, this is not an easy work, there are 14 language to support and I'm not sure that the Perl code will support Korean or Japanese words in the regexp.

The problem with point 2 is that this is common to have non-English language at start of the first log before lc_messages is changed.

Krysztophe commented 9 months ago

@gleu has launched a discussion about giving up the translation of server messages : https://www.postgresql.org/message-id/flat/CAECtzeV6dyu4jTOrorFW%3DB%3DEicyejWO7_Seew3Ch0%3D0wO%2BM-RQ%40mail.gmail.com

1) Making pgbadger aware of other languages would be tedious, but not impossible. We could support only the easiest languages at the beginning, and it would be easier to support the others.

2) Well, I'll try if I find some time for this.