Change language for error messages


Read With Formatting | Free Open Source Tutorials Account

PostgreSQL
Thread: Change language for error messages


wingchun
Hallo. to all,
first of all i want to exuse me for my english and then i have a question :
I installed Postgresql on my windows2000(by cygWin) but i' not able to change the language(from english to italian) of the error messages that the RDBMS sent me.
Tanks.

md_doc
Hello--

I found the following doc that explains it but not very well http://www.postgresql.org/docs/current/static/nls.html

The important part os 64.1.3 which says go into the data dir and look to see if there is a file called nls.mk. If there is then some translation might have been done already.

In your case you want to see if there is a file called it.po, if there is not then you are going to have to make one yourself by doing a

gmake init-po

That will create a template file called program.pot you need to rename it to it.po

You will also need to edit the nls.mk file, the line that says
AVAIL_LANGUAGES := de fr

in your case you will want to add in "it"

AVAIL_LANGUAGES := de fr it

or something similar depending on what it looked like originally.

Once you have done both of those things do a

gmake update-po

and you should be all set.