Re: PRI?64 vs Visual Studio (2022) - Mailing list pgsql-hackers

From Thomas Munro
Subject Re: PRI?64 vs Visual Studio (2022)
Date
Msg-id CA+hUKGKoNeGoyOC1KK24KnuVcJczTLYF_akRs_qYHPskSHpXWA@mail.gmail.com
Whole thread Raw
In response to Re: PRI?64 vs Visual Studio (2022)  (Álvaro Herrera <alvherre@kurilemu.de>)
Responses Re: PRI?64 vs Visual Studio (2022)
List pgsql-hackers
On Thu, Nov 20, 2025 at 6:07 AM Álvaro Herrera <alvherre@kurilemu.de> 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.

Oh, that's probably better than my nearby en.po + es.po suggestion.
Combining the ideas, you could have just an en.po translation, but
expected files to match "hello ..." and "[translated] hello ...".
Though, hmm, I suppose that fails to fail if it didn't translate when
it should have, so maybe a TAP test or a test_nls() function that
internally checks the translation rather than using error() and
expected files...



pgsql-hackers by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: Speed up COPY FROM text/CSV parsing using SIMD
Next
From: Andreas Karlsson
Date:
Subject: Re: Changing the state of data checksums in a running cluster