mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 14:29:03 +08:00
Merge branch '2.3' of github.com:Ultimaker/Cura into 2.3
This commit is contained in:
commit
70ab3d7b1b
@ -23,6 +23,7 @@ class RemovableDriveOutputDevice(OutputDevice):
|
||||
self.setPriority(1)
|
||||
|
||||
self._writing = False
|
||||
self._stream = None
|
||||
|
||||
def requestWrite(self, node, file_name = None, filter_by_machine = False):
|
||||
filter_by_machine = True # This plugin is indended to be used by machine (regardless of what it was told to do)
|
||||
@ -65,8 +66,9 @@ class RemovableDriveOutputDevice(OutputDevice):
|
||||
|
||||
try:
|
||||
Logger.log("d", "Writing to %s", file_name)
|
||||
stream = open(file_name, "wt")
|
||||
job = WriteMeshJob(writer, stream, node, MeshWriter.OutputMode.TextMode)
|
||||
# Using buffering greatly reduces the write time for many lines of gcode
|
||||
self._stream = open(file_name, "wt", buffering = 1)
|
||||
job = WriteMeshJob(writer, self._stream, node, MeshWriter.OutputMode.TextMode)
|
||||
job.setFileName(file_name)
|
||||
job.progress.connect(self._onProgress)
|
||||
job.finished.connect(self._onFinished)
|
||||
@ -92,6 +94,11 @@ class RemovableDriveOutputDevice(OutputDevice):
|
||||
self.writeProgress.emit(self, progress)
|
||||
|
||||
def _onFinished(self, job):
|
||||
if self._stream:
|
||||
# Explicitly closing the stream flushes the write-buffer
|
||||
self._stream.close()
|
||||
self._stream = None
|
||||
|
||||
if hasattr(job, "_message"):
|
||||
job._message.hide()
|
||||
job._message = None
|
||||
|
@ -2294,3 +2294,42 @@ msgid ""
|
||||
"\n"
|
||||
"Click to open the profile manager."
|
||||
msgstr "Einige Einstellungswerte unterscheiden sich von den im Profil gespeicherten Werten.\n\nKlicken Sie, um den Profilmanager zu öffnen."
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.py:24
|
||||
msgid "Modify G-Code"
|
||||
msgstr "G-Code ändern"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/__init__.py:12
|
||||
msgctxt "@label"
|
||||
msgid "Post Processing"
|
||||
msgstr "Nachbearbeitung"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/__init__.py:16
|
||||
msgctxt "Description of plugin"
|
||||
msgid "Extension that allows for user created scripts for post processing"
|
||||
msgstr "Erweiterung, die eine Nachbearbeitung von Skripten ermöglicht, die von Benutzern erstellt wurden."
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:18
|
||||
msgctxt "@title:window"
|
||||
msgid "Post Processing Plugin"
|
||||
msgstr "Plugin Nachbearbeitung"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:49
|
||||
msgctxt "@label"
|
||||
msgid "Post Processing Scripts"
|
||||
msgstr "Skripts Nachbearbeitung"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:218
|
||||
msgctxt "@action"
|
||||
msgid "Add a script"
|
||||
msgstr "Ein Skript hinzufügen"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:264
|
||||
msgctxt "@label"
|
||||
msgid "Settings"
|
||||
msgstr "Einstellungen"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:456
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Change active post-processing scripts"
|
||||
msgstr "Aktive Skripts Nachbearbeitung ändern"
|
||||
|
@ -2294,3 +2294,42 @@ msgid ""
|
||||
"\n"
|
||||
"Click to open the profile manager."
|
||||
msgstr "Algunos valores son distintos de los valores almacenados en el perfil.\n\nHaga clic para abrir el administrador de perfiles."
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.py:24
|
||||
msgid "Modify G-Code"
|
||||
msgstr "Modificar GCode"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/__init__.py:12
|
||||
msgctxt "@label"
|
||||
msgid "Post Processing"
|
||||
msgstr "Posprocesamiento"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/__init__.py:16
|
||||
msgctxt "Description of plugin"
|
||||
msgid "Extension that allows for user created scripts for post processing"
|
||||
msgstr "Extensión que permite el posprocesamiento de las secuencias de comandos creadas por los usuarios."
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:18
|
||||
msgctxt "@title:window"
|
||||
msgid "Post Processing Plugin"
|
||||
msgstr "Complemento de posprocesamiento"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:49
|
||||
msgctxt "@label"
|
||||
msgid "Post Processing Scripts"
|
||||
msgstr "Secuencias de comandos de posprocesamiento"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:218
|
||||
msgctxt "@action"
|
||||
msgid "Add a script"
|
||||
msgstr "Añadir secuencia de comando"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:264
|
||||
msgctxt "@label"
|
||||
msgid "Settings"
|
||||
msgstr "Ajustes"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:456
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Change active post-processing scripts"
|
||||
msgstr "Cambia las secuencias de comandos de posprocesamiento."
|
||||
|
@ -2294,3 +2294,42 @@ msgid ""
|
||||
"\n"
|
||||
"Click to open the profile manager."
|
||||
msgstr "Jotkut asetusten arvot eroavat profiiliin tallennetuista arvoista.\n\nAvaa profiilin hallinta napsauttamalla."
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.py:24
|
||||
msgid "Modify G-Code"
|
||||
msgstr "Muokkaa GCode-arvoa"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/__init__.py:12
|
||||
msgctxt "@label"
|
||||
msgid "Post Processing"
|
||||
msgstr "Jälkikäsittely"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/__init__.py:16
|
||||
msgctxt "Description of plugin"
|
||||
msgid "Extension that allows for user created scripts for post processing"
|
||||
msgstr "Lisäosa, jonka avulla käyttäjät voivat luoda komentosarjoja jälkikäsittelyä varten"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:18
|
||||
msgctxt "@title:window"
|
||||
msgid "Post Processing Plugin"
|
||||
msgstr "Jälkikäsittelylisäosa"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:49
|
||||
msgctxt "@label"
|
||||
msgid "Post Processing Scripts"
|
||||
msgstr "Jälkikäsittelykomentosarjat"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:218
|
||||
msgctxt "@action"
|
||||
msgid "Add a script"
|
||||
msgstr "Lisää komentosarja"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:264
|
||||
msgctxt "@label"
|
||||
msgid "Settings"
|
||||
msgstr "Asetukset"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:456
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Change active post-processing scripts"
|
||||
msgstr "Muuta aktiivisia jälkikäsittelykomentosarjoja"
|
||||
|
@ -2294,3 +2294,42 @@ msgid ""
|
||||
"\n"
|
||||
"Click to open the profile manager."
|
||||
msgstr "Certaines valeurs de paramètre sont différentes des valeurs enregistrées dans le profil.\n\nCliquez pour ouvrir le gestionnaire de profils."
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.py:24
|
||||
msgid "Modify G-Code"
|
||||
msgstr "Modifier le G-Code"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/__init__.py:12
|
||||
msgctxt "@label"
|
||||
msgid "Post Processing"
|
||||
msgstr "Post-traitement"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/__init__.py:16
|
||||
msgctxt "Description of plugin"
|
||||
msgid "Extension that allows for user created scripts for post processing"
|
||||
msgstr "Extension qui permet le post-traitement des scripts créés par l'utilisateur"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:18
|
||||
msgctxt "@title:window"
|
||||
msgid "Post Processing Plugin"
|
||||
msgstr "Plug-in de post-traitement"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:49
|
||||
msgctxt "@label"
|
||||
msgid "Post Processing Scripts"
|
||||
msgstr "Scripts de post-traitement"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:218
|
||||
msgctxt "@action"
|
||||
msgid "Add a script"
|
||||
msgstr "Ajouter un script"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:264
|
||||
msgctxt "@label"
|
||||
msgid "Settings"
|
||||
msgstr "Paramètres"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:456
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Change active post-processing scripts"
|
||||
msgstr "Modifier les scripts de post-traitement actifs"
|
||||
|
@ -2294,3 +2294,42 @@ msgid ""
|
||||
"\n"
|
||||
"Click to open the profile manager."
|
||||
msgstr "Alcuni valori di impostazione sono diversi dai valori memorizzati nel profilo.\n\nFare clic per aprire la gestione profili."
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.py:24
|
||||
msgid "Modify G-Code"
|
||||
msgstr "Modifica il codice G"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/__init__.py:12
|
||||
msgctxt "@label"
|
||||
msgid "Post Processing"
|
||||
msgstr "Post-elaborazione"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/__init__.py:16
|
||||
msgctxt "Description of plugin"
|
||||
msgid "Extension that allows for user created scripts for post processing"
|
||||
msgstr "Estensione che consente la post-elaborazione degli script creati da utente"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:18
|
||||
msgctxt "@title:window"
|
||||
msgid "Post Processing Plugin"
|
||||
msgstr "Plug-in di post-elaborazione"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:49
|
||||
msgctxt "@label"
|
||||
msgid "Post Processing Scripts"
|
||||
msgstr "Script di post-elaborazione"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:218
|
||||
msgctxt "@action"
|
||||
msgid "Add a script"
|
||||
msgstr "Aggiungi uno script"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:264
|
||||
msgctxt "@label"
|
||||
msgid "Settings"
|
||||
msgstr "Impostazioni"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:456
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Change active post-processing scripts"
|
||||
msgstr "Modifica script di post-elaborazione attivi"
|
||||
|
@ -2294,3 +2294,42 @@ msgid ""
|
||||
"\n"
|
||||
"Click to open the profile manager."
|
||||
msgstr "Sommige instellingswaarden zijn anders dan de waarden die in het profiel zijn opgeslagen.\n\nKlik om het profielbeheer te openen."
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.py:24
|
||||
msgid "Modify G-Code"
|
||||
msgstr "G-code wijzigen"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/__init__.py:12
|
||||
msgctxt "@label"
|
||||
msgid "Post Processing"
|
||||
msgstr "Nabewerken"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/__init__.py:16
|
||||
msgctxt "Description of plugin"
|
||||
msgid "Extension that allows for user created scripts for post processing"
|
||||
msgstr "Uitbreiding waarmee door de gebruiker gemaakte scripts voor nabewerking kunnen worden gebruikt"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:18
|
||||
msgctxt "@title:window"
|
||||
msgid "Post Processing Plugin"
|
||||
msgstr "Invoegtoepassing voor nabewerking"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:49
|
||||
msgctxt "@label"
|
||||
msgid "Post Processing Scripts"
|
||||
msgstr "Scripts voor nabewerking"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:218
|
||||
msgctxt "@action"
|
||||
msgid "Add a script"
|
||||
msgstr "Een script toevoegen"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:264
|
||||
msgctxt "@label"
|
||||
msgid "Settings"
|
||||
msgstr "Instellingen"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:456
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Change active post-processing scripts"
|
||||
msgstr "Actieve scripts voor nabewerking wijzigen"
|
||||
|
@ -2294,3 +2294,42 @@ msgid ""
|
||||
"\n"
|
||||
"Click to open the profile manager."
|
||||
msgstr "Bazı ayar değerleri profilinizde saklanan değerlerden farklıdır.\n\nProfil yöneticisini açmak için tıklayın."
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.py:24
|
||||
msgid "Modify G-Code"
|
||||
msgstr "GCode Değiştir"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/__init__.py:12
|
||||
msgctxt "@label"
|
||||
msgid "Post Processing"
|
||||
msgstr "Son İşleme"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/__init__.py:16
|
||||
msgctxt "Description of plugin"
|
||||
msgid "Extension that allows for user created scripts for post processing"
|
||||
msgstr "Kullanıcının oluşturduğu komut dosyalarına son işleme için izin veren uzantı"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:18
|
||||
msgctxt "@title:window"
|
||||
msgid "Post Processing Plugin"
|
||||
msgstr "Son İşleme Uzantısı"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:49
|
||||
msgctxt "@label"
|
||||
msgid "Post Processing Scripts"
|
||||
msgstr "Son İşleme Dosyaları"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:218
|
||||
msgctxt "@action"
|
||||
msgid "Add a script"
|
||||
msgstr "Dosya ekle"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:264
|
||||
msgctxt "@label"
|
||||
msgid "Settings"
|
||||
msgstr "Ayarlar"
|
||||
|
||||
#: /home/ruben/Projects/Cura/plugins/PostProcessingPlugin/PostProcessingPlugin.qml:456
|
||||
msgctxt "@info:tooltip"
|
||||
msgid "Change active post-processing scripts"
|
||||
msgstr "Etkin son işleme dosyalarını değiştir"
|
||||
|
Loading…
x
Reference in New Issue
Block a user