mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 23:15:52 +08:00
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:
parent
5de614590c
commit
d3558ab377
@ -613,11 +613,6 @@ class CuraConan(ConanFile):
|
|||||||
pot.generate()
|
pot.generate()
|
||||||
|
|
||||||
def build(self):
|
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"):
|
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 = 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)
|
mo_file = mo_file.parent.joinpath("LC_MESSAGES", mo_file.name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user