Re: Improve logging when using Huge Pages
| От | Justin Pryzby |
|---|---|
| Тема | Re: Improve logging when using Huge Pages |
| Дата | |
| Msg-id | 20211022023815.GI741@telsasoft.com обсуждение исходный текст |
| Ответ на | RE: Improve logging when using Huge Pages ("Shinoda, Noriyoshi (PN Japan FSIP)" <noriyoshi.shinoda@hpe.com>) |
| Ответы |
RE: Improve logging when using Huge Pages
|
| Список | pgsql-hackers |
+ ereport(LOG, (errmsg("Anonymous shared memory was allocated %s huge pages.", with_hugepages ? "with" :
"without")));
You shouldn't break a sentence into pieces like this, since it breaks
translation. You don't want an untranslated "without" to appear in the middle
of the translated message.
There are cases where a component *shouldn't* be translated, like this one:
where "numeric" should not be translated.
src/backend/utils/adt/numeric.c: errmsg("invalid input syntax for type %s:
\"%s\"",
src/backend/utils/adt/numeric.c- "numeric", str)));
--
Justin
В списке pgsql-hackers по дате отправления: