canaille-globuzma/build.py

18 lines
370 B
Python
Raw Normal View History

2022-11-20 22:47:31 +00:00
import os
2022-05-14 21:58:26 +00:00
def create_mo_files(setup_kwargs):
from babel.messages.frontend import compile_catalog
cmd = compile_catalog()
cmd.directory = os.path.dirname(__file__) + "/canaille/translations"
cmd.quiet = True
cmd.statistics = True
cmd.finalize_options()
cmd.run()
return setup_kwargs
if __name__ == "__main__":
create_mo_files({})