| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Julius Tuskenis <julius(at)nsoft(dot)lt> |
| Cc: | Alvaro Herrera <alvherre(at)commandprompt(dot)com>, pgsql-admin(at)postgresql(dot)org |
| Subject: | Re: translating exception messages of postgresql functions |
| Date: | 2008-05-14 16:32:19 |
| Message-ID: | 20999.1210782739@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
Julius Tuskenis <julius(at)nsoft(dot)lt> writes:
> Alvaro Herrera ra:
>> 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
>>
> Thank you, Alvaro, but it seems you have slightly misunderstood me. I
> want to translate the exceptions I rise myself. That is I do RAISE
> EXCEPT 'user "%" not found', prm_user; in pl/pgsql function, but I want
> the user to see it translated to the language he uses.
I wonder if it would help to make plpgsql pass the RAISE format string
through gettext?
This would only be a usable approach if there were some fairly easy way
to add installation-specific translations to gettext's table. I don't
know enough about gettext to know if that's doable.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alvaro Herrera | 2008-05-14 16:41:37 | Re: translating exception messages of postgresql functions |
| Previous Message | Julius Tuskenis | 2008-05-14 15:48:46 | Re: translating exception messages of postgresql functions |