Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/3MFWriter/ThreeMFWriter.py')
-rw-r--r--plugins/3MFWriter/ThreeMFWriter.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/3MFWriter/ThreeMFWriter.py b/plugins/3MFWriter/ThreeMFWriter.py
index 8d54f475d6..640aabd30c 100644
--- a/plugins/3MFWriter/ThreeMFWriter.py
+++ b/plugins/3MFWriter/ThreeMFWriter.py
@@ -25,6 +25,9 @@ except ImportError:
import zipfile
import UM.Application
+from UM.i18n import i18nCatalog
+catalog = i18nCatalog("cura")
+
class ThreeMFWriter(MeshWriter):
def __init__(self):
@@ -173,6 +176,7 @@ class ThreeMFWriter(MeshWriter):
archive.writestr(relations_file, b'<?xml version="1.0" encoding="UTF-8"?> \n' + ET.tostring(relations_element))
except Exception as e:
Logger.logException("e", "Error writing zip file")
+ self.setInformation(catalog.i18nc("@error:zip", "Error writing 3mf file."))
return False
finally:
if not self._store_archive: