Build binary translation messages on Windows on any shell

This is an attempt to see what actually happens, and may have to be reverted
This commit is contained in:
Erwan MATHIEU 2025-02-26 14:10:27 +01:00
parent 5de614590c
commit d3558ab377

View File

@ -613,11 +613,6 @@ class CuraConan(ConanFile):
pot.generate()
def build(self):
if self.settings.os == "Windows" and not self.conf.get("tools.microsoft.bash:path", check_type=str):
self.output.warning(
"Skipping generation of binary translation files because Bash could not be found and is required")
return
for po_file in Path(self.source_folder, "resources", "i18n").glob("**/*.po"):
mo_file = Path(self.build_folder, po_file.with_suffix('.mo').relative_to(self.source_folder))
mo_file = mo_file.parent.joinpath("LC_MESSAGES", mo_file.name)