2022-11-20 22:47:31 +00:00
|
|
|
import os
|
2022-05-14 16:37:39 +00:00
|
|
|
import subprocess
|
|
|
|
|
2022-05-14 21:58:26 +00:00
|
|
|
|
2022-05-14 16:37:39 +00:00
|
|
|
def create_mo_files(setup_kwargs):
|
|
|
|
print("Compile translations:")
|
2022-11-20 22:47:31 +00:00
|
|
|
subprocess.run(
|
|
|
|
[
|
|
|
|
"pybabel",
|
|
|
|
"compile",
|
|
|
|
"--directory",
|
|
|
|
os.path.dirname(__file__) + "/canaille/translations",
|
|
|
|
]
|
|
|
|
)
|
2022-05-14 16:37:39 +00:00
|
|
|
return setup_kwargs
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
create_mo_files({})
|