Re: translating exception messages of postgresql functions
В списке pgsql-admin по дате отправления:
| От | Alvaro Herrera |
|---|---|
| Тема | Re: translating exception messages of postgresql functions |
| Дата | |
| Msg-id | 20080514164137.GC9838@alvh.no-ip.org обсуждение |
| Ответ на | Re: translating exception messages of postgresql functions (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-admin |
Tom Lane wrote: > I wonder if it would help to make plpgsql pass the RAISE format string > through gettext? Hmm, nice idea. However, > 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. There are lots of caveats -- the first being that you would need to extract the messages from the function body. I don't think there's a gettext PL/pgSQL parser, so there's a first hurdle there. Then there's the matter of not mixing the "postgres" message domain with the user's, so we would need to change it just before calling RAISE and restore it afterwards. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера