forked from Github-Mirrors/canaille
14 lines
329 B
Python
14 lines
329 B
Python
def create_mo_files(setup_kwargs):
|
|
from babel.messages.frontend import compile_catalog
|
|
|
|
cmd = compile_catalog()
|
|
cmd.directory = "canaille/translations"
|
|
cmd.quiet = True
|
|
cmd.statistics = True
|
|
cmd.finalize_options()
|
|
cmd.run()
|
|
return setup_kwargs
|
|
|
|
|
|
if __name__ == "__main__":
|
|
create_mo_files({})
|