Skip site navigation (1) Skip section navigation (2)

Re: translating exception messages of postgresql functions

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Julius Tuskenis <julius(at)nsoft(dot)lt>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: translating exception messages of postgresql functions
Date: 2008-05-14 15:33:37
Message-ID: 20080514153337.GI5521@alvh.no-ip.org (view raw or flat)
Thread:
Lists: pgsql-admin
Julius Tuskenis wrote:

> I want to translate the exception message. For example I raise an  
> exception in pg function like RAISE EXCEPTION 'my exception', then in my  
> application that calls the function I catch the exception. But before I  
> show it to the user of application I have to translate it. How do I know  
> what exception it is? As Tom Lane answered - the only way is to rely on  
> message text.

You want to translate it from english to another language, or you want
to change the nature of the message reported?  If you just want to
translate it to another language, see here:

http://pgtranslation.projects.postgresql.org/status.html

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

pgsql-admin by date

Next:From: Julius TuskenisDate: 2008-05-14 15:48:46
Subject: Re: translating exception messages of postgresql functions
Previous:From: Julius TuskenisDate: 2008-05-14 15:22:24
Subject: Re: translating exception messages of postgresql functions

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group