Re: [PATCHSET] xfsprogs: localize the python programs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 01, 2025 at 07:43:25AM -0700, Darrick J. Wong wrote:
> Hi all,
> 
> We ship two Python programs in the main xfsprogs package, but neither of
> them actually participate in gettext, which means that the output is
> always English no matter what user's locale settings are.  Fix that by
> adding them to the autogenerated message catalog.
> 
> If you're going to start using this code, I strongly recommend pulling
> from my git trees, which are linked below.
> 
> With a bit of luck, this should all go splendidly.
> Comments and questions are, as always, welcome.
> 
> --D
> 
> xfsprogs git tree:
> https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=localization
> ---
> Commits in this patchset:
>  * xfs_protofile: rename source code to .py.in
>  * xfs_scrub_all: rename source code to .py.in
>  * Makefile: inject package name/version/bugreport into pot file
>  * xfs_protofile: add messages to localization catalog
>  * xfs_scrub_all: localize the strings in the program
> ---

For the series...
Reviewed-by: Bill O'Donnell <bodonnel@xxxxxxxxxx>


>  configure.ac              |    3 +-
>  include/builddefs.in      |    1 +
>  include/buildrules        |    9 ++++++-
>  libfrog/Makefile          |   18 ++++++++++++-
>  libfrog/gettext.py.in     |   12 +++++++++
>  mkfs/Makefile             |   11 +++++---
>  mkfs/xfs_protofile.py.in  |   21 +++++++++------
>  scrub/Makefile            |   11 +++++---
>  scrub/xfs_scrub_all.py.in |   62 +++++++++++++++++++++++++++------------------
>  9 files changed, 103 insertions(+), 45 deletions(-)
>  create mode 100644 libfrog/gettext.py.in
>  rename mkfs/{xfs_protofile.in => xfs_protofile.py.in} (85%)
>  rename scrub/{xfs_scrub_all.in => xfs_scrub_all.py.in} (89%)
> 
> 





[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux