Skip to content

Commit

Permalink
Build binary translation messages on Windows on any shell
Browse files Browse the repository at this point in the history
This is an attempt to see what actually happens, and may have to be reverted
  • Loading branch information
wawanbreton committed Feb 26, 2025
1 parent 5de6145 commit d3558ab
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,11 +613,6 @@ def generate(self):
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)
Expand Down

0 comments on commit d3558ab

Please sign in to comment.