On Wed, Nov 19, 2025 at 9:07 AM Álvaro Herrera <[email protected]> wrote: > You could feed the message catalog a translated string that differs from > the original in some simple way, say, by adding a constant prefix > "[translated]" or something like that.
`xgettext -m` can do that. (But I wish I'd known about msgen earlier...) We could additionally use preloadable_libintl.so, in combination with GETTEXT_LOG_UNTRANSLATED, and check if the log contains entries from our domains. I was doing that just last week. But beware that the log file can grow very quickly. And we'd probably have to differentiate the "no domain" text belonging to other software from accidental no-domain strings in our own code, like what I described in [1]. --Jacob [1] https://postgr.es/m/caoymi+kqq8vprcosra5eq98wa3g6jfj1yrhs6mh1v7ohktc...@mail.gmail.com
