| От | Heikki Linnakangas |
|---|---|
| Тема | Re: Proposal: Log inability to lock pages during vacuum |
| Дата | |
| Msg-id | 5491CB57.3000006@vmware.com обсуждение исходный текст |
| Ответ на | Re: Proposal: Log inability to lock pages during vacuum (Jim Nasby <Jim.Nasby@BlueTreble.com>) |
| Список | pgsql-hackers |
On 12/17/2014 08:02 PM, Jim Nasby wrote: > BTW, what is it about a dynamic message that makes it untranslatable? > Doesn't the translation happen down-stream, so that at most we'd just > need two translation messages? I'm not sure what you mean by down-stream. There is some explanation on this in the localization guide in the manual: http://www.postgresql.org/docs/devel/static/nls-programmer.html#NLS-GUIDELINES printf("Files were %s.\n", flag ? "copied" : "removed"); The translator will get three strings to translate: "Files were %s.\n", "copied", and "removed". > Or worst case we could have two > separate elog calls, if we wanted to go that route. Yeah, that's one option. I.e: if (flag) printf("Files were copied.\n"); else printf("Files were removed.\n"); - Heikki
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера