Bug#1024450: ITP: setuptools-gettext -- Compile .po files into .mo files
On Wed, Nov 23, 2022 at 08:09:36AM +0100, Roland Clobus wrote:
> Hello Jelmer,
>
> On 22/11/2022 00:49, Jelmer Vernooij wrote:
> > On Mon, Nov 21, 2022 at 09:19:41PM +0100, Roland Clobus wrote:
> > > On 19/11/2022 18:20, Jelmer Vernooij wrote:
> > > > Package: wnpp
> > > > Severity: wishlist
> > > > Owner: Jelmer Vernooij <jelmer@debian.org>
> > > > X-Debbugs-Cc: debian-devel@lists.debian.org
> > > >
> > > > * Package name : setuptools-gettext
> > > > Version : 0.0.1
> > > > Upstream Author : Breezy Team <breezy-core@googlegroups.com>
> > > > * URL : https://github.com/jelmer/setuptools-gettext
> > > > * License : GPL
> > > > Programming Lang: Python
> > > > Description : Compile .po files into .mo files
> > > >
> > > > This extension for setuptools compiles gettext .po files
> > > > found in the source directory into .mo files and installs them.
> > >
> > > How does this tool differ from 'msgfmt' from 'gettext'?
> >
> > It's a wrapper around msgfmt, but making it convenient to run from setuptools.
> > I'll clarify that in the final description.
>
> Sorry to bother you again.
>
> Today I found the following post:
> https://www.redhat.com/sysadmin/python-subprocess-module
>
> Wouldn't this package effectively be 'subprocess.run("msgfmt")'?
> Or would the package name 'python3-gettext' be more suitable?
It's specifically an extension to setuptools to do these things and integrate
with the python ecosystem. It's /not/ a generic module for compiling gettext
files.
For the latter, the name python3-gettext would indeed be more appropriate and
I'm not sure whether it would be more than a wrapper around subprocess.
Jelmer
Reply to: