Re: A Japanese-unfriendy error message contruction
Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
From: Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
To: tgl@sss.pgh.pa.us
Cc: pgsql-hackers@postgresql.org
Date: 2018-05-24T13:00:57Z
Lists: pgsql-hackers
Attachments
- 0001-Make-object-names-more-translatable.patch (text/x-patch)
Hello. Here is the patch set. At Wed, 23 May 2018 11:20:24 -0400, Tom Lane <tgl@sss.pgh.pa.us> wrote in <4979.1527088824@sss.pgh.pa.us> > After thinking about this some more, I'd like to propose that we change > the English output to be "column COLNAME of <relation>", using code > similar to what you suggested for O_POLICY etc. I know that I've been > momentarily confused more than once by looking at obj_description output > and thinking "what, the whole relation depends on this? ... oh, no, it's > just the one column". It would be better if the head-word were "column". > If that leads to better translations in other languages, fine, but in > any case this'd be an improvement for English. > > > I'll clean-up the two thinkgs and post the result later. > > OK, I'll await your patch before doing more here. Constraints also have namespace but I understand it is just a decoration so I left it alone. 1. Remove tranlation obstracles. 2. Show qualified names for all possible object types. 3. Changes "relation R column C" to "column C of relation R". Extended statistics's name qualification is not excercised in the current regression test. I found that the last one you sugeested makes error messages far cleaner, easy to grasp the meaning at a glance. regards. -- Kyotaro Horiguchi NTT Open Source Software Center
Commits
-
Improve English wording of some other getObjectDescription() messages.
- b86b7bfa3e8b 11.0 landed
-
Improve translatability of some getObjectDescription() messages.
- 7c89eb750d0c 11.0 landed
-
Fix objectaddress.c code for publication relations.
- e8cb8fdfd3a2 10.5 landed
- 1a31baf61ed8 11.0 landed
-
Properly schema-qualify additional object types in getObjectDescription().
- cbb37b2e1fbe 9.3.24 landed
- eb1aa1b46bd9 10.5 landed
- ad73c07b4457 9.5.14 landed
- 8f2143bc8fe9 9.4.19 landed
- 3d3165210dcc 9.6.10 landed
- 056f52d9c3ee 11.0 landed