]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Improve translatability of some getObjectDescription() messages.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 24 May 2018 17:20:16 +0000 (13:20 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 24 May 2018 17:20:16 +0000 (13:20 -0400)
commit7c89eb750d0cc4e33c46c62154c461be57883b72
tree8ad3a8ee7050d08239804032bf7dc611fd33ab71
parent1a31baf61ed81a13d034bd50db19473ad67acc52
Improve translatability of some getObjectDescription() messages.

Refactor some cases in getObjectDescription so that the translator has
more control over phrase order in the translated messages.  This doesn't
cause any changes in the English results.  (I was sorely tempted to
reorder "... belonging to role %s in schema %s" into "... in schema %s
belonging to role %s", but refrained.)

In principle we could back-patch this, but since translators have not
complained about these cases previously, it seems better not to thrash
the translatable strings in back branches.

Kyotaro Horiguchi, tweaked a bit by me

Discussion: https://postgr.es/m/20180522.182020.114074746.horiguchi.kyotaro@lab.ntt.co.jp
src/backend/catalog/objectaddress.c