Metadata-Version: 2.1
Name: hatch-msgfmt
Version: 1.1.2
Summary: Msgfmt build hook, replacing all po with mo in build
Author-email: "Taylor C. Richberger" <tcr@absolute-performance.com>
Maintainer-email: "Taylor C. Richberger" <tcr@absolute-performance.com>
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python :: 3
Classifier: Framework :: Hatch
Requires-Dist: hatchling
Project-URL: repository, https://github.com/absperf/hatch-msgfmt

# hatch-msgfmt
A hatch msgfmt plugin, simply replacing all po files with mo files, using msgfmt in `PATH`.

At a future point, a pure-python version could be implemented, by implementing
a pure-Python version of msgfmt.  [The standard cpython msgfmt.py](https://
github.com/python/cpython/blob/main/Tools/i18n/msgfmt.py) could be a starting
point for this, but it's not as capable as GNU Gettext, and doesn't support
plural forms.  Even with a fresh implementation, handling the file encoding
from the header is challenging, especially for variable-length encodings like
EUC-JP, which could feasibly cause particular problems.

Better to just use the system one for now.  If somebody wants to submit a pure-
python implementation that functions, I'll gladly integrate it as a separate
msgfmtpy plugin in the same repository.

# Copyright

This plugin is Copyright 2023 Absolute Performance, Inc.

MIT licensed.

