Skip to content

zbohm/setuptools-compile-po

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

Compile po files to mo files.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages