mirror of
https://github.com/godotengine/godot.git
synced 2026-02-07 11:21:49 +00:00
[Editor] Handle spaces in paths when generating translations
This commit is contained in:
@@ -85,7 +85,7 @@ def make_translations(target, source, env):
|
||||
# msgfmt erases non-translated messages, so avoid using it if exporting the POT.
|
||||
if msgfmt and name != category:
|
||||
mo_path = os.path.join(tempfile.gettempdir(), uuid.uuid4().hex + ".mo")
|
||||
cmd = f"{msgfmt} {path} --no-hash -o {mo_path}"
|
||||
cmd = f'{msgfmt} "{path}" --no-hash -o "{mo_path}"'
|
||||
try:
|
||||
subprocess.Popen(cmd, shell=True, stderr=subprocess.PIPE).communicate()
|
||||
buffer = methods.get_buffer(mo_path)
|
||||
|
||||
Reference in New Issue
Block a user