Compile po files to mo files.
Project description
Setuptools compile po
Compile .po files to .mo files.
Usage
Set in pyproject.toml:
[build-system]
requires = ["setuptools", "setuptools-compile-po"]
...
This configuration compiles all .po files in the $package/locale folder.
Another path to the files is defined by the configuration:
[tool.setuptools_compile_po]
directory = "package/path/locale"
Dependencies
The msgfmt command is used for compilation. It must be installed in the os.
For example, with the command apt install gettext.
If you need to compile with a different command, you can define it with the msgfmt parameter:
[tool.setuptools_compile_po]
msgfmt = "command"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file setuptools_compile_po-1.0.0.tar.gz.
File metadata
- Download URL: setuptools_compile_po-1.0.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae63b2b3ec44f87cb6f11ff3f7c6a73c8df70d175fab7ced344b5bd219eb8a60
|
|
| MD5 |
c3fecccc951c787c8d9581d2c7f09351
|
|
| BLAKE2b-256 |
2ab36e429f807ba5db8ff4f339f2a702865ac90538f19025f48d1782c09be997
|
File details
Details for the file setuptools_compile_po-1.0.0-py3-none-any.whl.
File metadata
- Download URL: setuptools_compile_po-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78a645aeee84681acd7d548faf9fe00eb3e971ce104f23e715168920b9dd621b
|
|
| MD5 |
4d3aea161c47ac7978e7f3d3a5fc96cf
|
|
| BLAKE2b-256 |
7ce64ad66a288a6707a1f4393d0bb24fc1c95d14ab42a3095b79bab13db7611c
|