mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 14:35:56 +08:00
Merge branch '3.3'
This commit is contained in:
commit
b8920b290f
@ -3,11 +3,11 @@
|
|||||||
|
|
||||||
import gzip
|
import gzip
|
||||||
|
|
||||||
from io import TextIOWrapper
|
from UM.Platform import Platform
|
||||||
|
|
||||||
from UM.Mesh.MeshReader import MeshReader #The class we're extending/implementing.
|
from UM.Mesh.MeshReader import MeshReader #The class we're extending/implementing.
|
||||||
from UM.PluginRegistry import PluginRegistry
|
from UM.PluginRegistry import PluginRegistry
|
||||||
|
|
||||||
|
|
||||||
## A file reader that reads gzipped g-code.
|
## A file reader that reads gzipped g-code.
|
||||||
#
|
#
|
||||||
# If you're zipping g-code, you might as well use gzip!
|
# If you're zipping g-code, you might as well use gzip!
|
||||||
@ -15,7 +15,7 @@ class GCodeGzReader(MeshReader):
|
|||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self._supported_extensions = [".gcode.gz"]
|
self._supported_extensions = [".gz"]
|
||||||
|
|
||||||
def read(self, file_name):
|
def read(self, file_name):
|
||||||
with open(file_name, "rb") as file:
|
with open(file_name, "rb") as file:
|
||||||
|
@ -1,21 +1,24 @@
|
|||||||
# Copyright (c) 2018 Ultimaker B.V.
|
# Copyright (c) 2018 Ultimaker B.V.
|
||||||
# Cura is released under the terms of the LGPLv3 or higher.
|
# Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
|
from UM.i18n import i18nCatalog
|
||||||
|
from UM.Platform import Platform
|
||||||
|
|
||||||
from . import GCodeGzReader
|
from . import GCodeGzReader
|
||||||
|
|
||||||
from UM.i18n import i18nCatalog
|
|
||||||
i18n_catalog = i18nCatalog("cura")
|
i18n_catalog = i18nCatalog("cura")
|
||||||
|
|
||||||
def getMetaData():
|
def getMetaData():
|
||||||
|
file_extension = "gz" if Platform.isOSX() else "gcode.gz"
|
||||||
return {
|
return {
|
||||||
"mesh_reader": [
|
"mesh_reader": [
|
||||||
{
|
{
|
||||||
"extension": "gcode.gz",
|
"extension": file_extension,
|
||||||
"description": i18n_catalog.i18nc("@item:inlistbox", "Compressed G-code File")
|
"description": i18n_catalog.i18nc("@item:inlistbox", "Compressed G-code File")
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
def register(app):
|
def register(app):
|
||||||
app.addNonSliceableExtension(".gcode.gz")
|
app.addNonSliceableExtension(".gz")
|
||||||
return { "mesh_reader": GCodeGzReader.GCodeGzReader() }
|
return { "mesh_reader": GCodeGzReader.GCodeGzReader() }
|
||||||
|
@ -1,16 +1,19 @@
|
|||||||
# Copyright (c) 2018 Ultimaker B.V.
|
# Copyright (c) 2018 Ultimaker B.V.
|
||||||
# Cura is released under the terms of the LGPLv3 or higher.
|
# Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
|
from UM.i18n import i18nCatalog
|
||||||
|
from UM.Platform import Platform
|
||||||
|
|
||||||
from . import GCodeGzWriter
|
from . import GCodeGzWriter
|
||||||
|
|
||||||
from UM.i18n import i18nCatalog
|
|
||||||
catalog = i18nCatalog("cura")
|
catalog = i18nCatalog("cura")
|
||||||
|
|
||||||
def getMetaData():
|
def getMetaData():
|
||||||
|
file_extension = "gz" if Platform.isOSX() else "gcode.gz"
|
||||||
return {
|
return {
|
||||||
"mesh_writer": {
|
"mesh_writer": {
|
||||||
"output": [{
|
"output": [{
|
||||||
"extension": "gcode.gz",
|
"extension": file_extension,
|
||||||
"description": catalog.i18nc("@item:inlistbox", "Compressed G-code File"),
|
"description": catalog.i18nc("@item:inlistbox", "Compressed G-code File"),
|
||||||
"mime_type": "application/gzip",
|
"mime_type": "application/gzip",
|
||||||
"mode": GCodeGzWriter.GCodeGzWriter.OutputMode.BinaryMode
|
"mode": GCodeGzWriter.GCodeGzWriter.OutputMode.BinaryMode
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -8,9 +8,9 @@ msgstr ""
|
|||||||
"Project-Id-Version: Cura 3.3\n"
|
"Project-Id-Version: Cura 3.3\n"
|
||||||
"Report-Msgid-Bugs-To: r.dulek@ultimaker.com\n"
|
"Report-Msgid-Bugs-To: r.dulek@ultimaker.com\n"
|
||||||
"POT-Creation-Date: 2018-03-29 08:36+0200\n"
|
"POT-Creation-Date: 2018-03-29 08:36+0200\n"
|
||||||
"PO-Revision-Date: 2018-04-11 14:40+0100\n"
|
"PO-Revision-Date: 2018-04-16 02:14+0100\n"
|
||||||
"Last-Translator: Bothof <info@bothof.nl>\n"
|
"Last-Translator: Paulo Miranda <av@utopica3d.com>\n"
|
||||||
"Language-Team: Portuguese <info@bothof.nl>, Paulo Miranda <av@utopica3d.com>\n"
|
"Language-Team: Paulo Miranda <av@utopica3d.com>, Portuguese <info@bothof.nl>\n"
|
||||||
"Language: pt_PT\n"
|
"Language: pt_PT\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
@ -96,7 +96,7 @@ msgstr "Posição Inicial Absoluta do Extrusor"
|
|||||||
#: fdmextruder.def.json
|
#: fdmextruder.def.json
|
||||||
msgctxt "machine_extruder_start_pos_abs description"
|
msgctxt "machine_extruder_start_pos_abs description"
|
||||||
msgid "Make the extruder starting position absolute rather than relative to the last-known location of the head."
|
msgid "Make the extruder starting position absolute rather than relative to the last-known location of the head."
|
||||||
msgstr "Define a posição inicial do extrusor, absoluta em vez de relativa à última posição conhecida da cabeça de impressão."
|
msgstr "Define a posição inicial do extrusor, de forma absoluta em vez, de relativa à última posição conhecida da cabeça de impressão."
|
||||||
|
|
||||||
#: fdmextruder.def.json
|
#: fdmextruder.def.json
|
||||||
msgctxt "machine_extruder_start_pos_x label"
|
msgctxt "machine_extruder_start_pos_x label"
|
||||||
@ -161,42 +161,42 @@ msgstr "A coordenada Y da posição final ao desligar o extrusor."
|
|||||||
#: fdmextruder.def.json
|
#: fdmextruder.def.json
|
||||||
msgctxt "extruder_prime_pos_z label"
|
msgctxt "extruder_prime_pos_z label"
|
||||||
msgid "Extruder Prime Z Position"
|
msgid "Extruder Prime Z Position"
|
||||||
msgstr "Posição Z para Preparação Extrusor"
|
msgstr "Posição Z para Preparação do Extrusor"
|
||||||
|
|
||||||
#: fdmextruder.def.json
|
#: fdmextruder.def.json
|
||||||
msgctxt "extruder_prime_pos_z description"
|
msgctxt "extruder_prime_pos_z description"
|
||||||
msgid "The Z coordinate of the position where the nozzle primes at the start of printing."
|
msgid "The Z coordinate of the position where the nozzle primes at the start of printing."
|
||||||
msgstr "A coordenada Z da posição onde fazer a preparação do nozzle no inicio da impressão."
|
msgstr "A coordenada Z da posição onde o nozzle é preparado ao iniciar a impressão."
|
||||||
|
|
||||||
#: fdmextruder.def.json
|
#: fdmextruder.def.json
|
||||||
msgctxt "platform_adhesion label"
|
msgctxt "platform_adhesion label"
|
||||||
msgid "Build Plate Adhesion"
|
msgid "Build Plate Adhesion"
|
||||||
msgstr "Aderência"
|
msgstr "Aderência à Base Construção"
|
||||||
|
|
||||||
#: fdmextruder.def.json
|
#: fdmextruder.def.json
|
||||||
msgctxt "platform_adhesion description"
|
msgctxt "platform_adhesion description"
|
||||||
msgid "Adhesion"
|
msgid "Adhesion"
|
||||||
msgstr "Aderência à Base de Construção"
|
msgstr "Aderência"
|
||||||
|
|
||||||
#: fdmextruder.def.json
|
#: fdmextruder.def.json
|
||||||
msgctxt "extruder_prime_pos_x label"
|
msgctxt "extruder_prime_pos_x label"
|
||||||
msgid "Extruder Prime X Position"
|
msgid "Extruder Prime X Position"
|
||||||
msgstr "Posição X Preparação Extrusor"
|
msgstr "Posição X Preparação do Extrusor"
|
||||||
|
|
||||||
#: fdmextruder.def.json
|
#: fdmextruder.def.json
|
||||||
msgctxt "extruder_prime_pos_x description"
|
msgctxt "extruder_prime_pos_x description"
|
||||||
msgid "The X coordinate of the position where the nozzle primes at the start of printing."
|
msgid "The X coordinate of the position where the nozzle primes at the start of printing."
|
||||||
msgstr "A coordenada X da posição onde o é feita a preparação do nozzle no inicio da impressão."
|
msgstr "A coordenada X da posição onde o nozzle é preparado ao iniciar a impressão."
|
||||||
|
|
||||||
#: fdmextruder.def.json
|
#: fdmextruder.def.json
|
||||||
msgctxt "extruder_prime_pos_y label"
|
msgctxt "extruder_prime_pos_y label"
|
||||||
msgid "Extruder Prime Y Position"
|
msgid "Extruder Prime Y Position"
|
||||||
msgstr "Posição Y Preparação Extrusor"
|
msgstr "Posição Y Preparação do Extrusor"
|
||||||
|
|
||||||
#: fdmextruder.def.json
|
#: fdmextruder.def.json
|
||||||
msgctxt "extruder_prime_pos_y description"
|
msgctxt "extruder_prime_pos_y description"
|
||||||
msgid "The Y coordinate of the position where the nozzle primes at the start of printing."
|
msgid "The Y coordinate of the position where the nozzle primes at the start of printing."
|
||||||
msgstr "A coordenada Y da posição onde o é feita a preparação do nozzle no inicio da impressão."
|
msgstr "A coordenada Y da posição onde o nozzle é preparado ao iniciar a impressão."
|
||||||
|
|
||||||
#: fdmextruder.def.json
|
#: fdmextruder.def.json
|
||||||
msgctxt "material label"
|
msgctxt "material label"
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user