Re: Adding init-po and update-po targets to the meson build system

From: Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com>
To: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Peter Eisentraut <peter(at)eisentraut(dot)org>
Subject: Re: Adding init-po and update-po targets to the meson build system
Date: 2026-10-07 16:35:10
Message-ID: CAN55FZ3OfOmFcLdkyE9p1ekiK-=U+Remwntige752DEU8rfqmw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On Wed, 7 Oct 2026 at 19:24, Álvaro Herrera <alvherre(at)kurilemu(dot)de> wrote:
>
> On 2026-Oct-07, Nazir Bilal Yavuz wrote:
>
> > So, my solution is switching to using nls.json files instead
> > of nls.mk files and having a Perl script so that the autoconf system
> > can parse these nls.json files and read them as nls.mk files as
> > before. So the big picture is:
> >
> > - We will switch nls.mk files with nls.json files.
> > - autoconf will read these nls.json files with the help of perl script.
> > - meson will read nls.json files and will use a helper Python script
> > to generate *.pot files.
> > - meson will have init-po and update-po targets and also singular
> > targes like psql-init-po.
>
> Hmm, so the source files would be .json and we generate .mk files as
> derivative artifacts? I don't know, that sounds potentially
> nightmarish. Isn't it more convenient to generate a JSON file from the
> nls.mk list instead?

Yes, I agree that it is kind of nightmarish. I considered both options
and chose to use JSON files because, AFAIK, we want to remove the
autoconf system and use meson in the future. So, using JSON files
makes more sense to me from a maintainability perspective for this
reason.

Perhaps it is better to generate JSON files from the nls.mk files for
now and switch later if needed.

--
Regards,
Nazir Bilal Yavuz
Microsoft

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomás Senart 2026-10-07 16:37:36 Re: [PATCH v1] Batch B-tree TIDs when building a bitmap
Previous Message Daria Lepikhova 2026-10-07 16:30:38 Re: Incremental backups report progress as if they were full backups