diff options
author | Ghostkeeper <rubend@tutanota.com> | 2018-02-13 17:50:33 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2018-02-13 17:50:59 +0300 |
commit | f91c990fedbef7ddbf38a036513796362452a5fe (patch) | |
tree | 33d3718d5605d8356ed9c9b07fa458213f9fbaa2 /plugins | |
parent | 6eeaab3c12fe0d60f8e841927cb7b209b482d916 (diff) |
Streamline usage of g-code (vs. GCode, Gcode, G-code, gcode, etc.)
This makes it all the same. It is something that came up in our translation pass this time.
Contributes to issue CURA-4883.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/CuraEngineBackend/StartSliceJob.py | 10 | ||||
-rw-r--r-- | plugins/GCodeProfileReader/GCodeProfileReader.py | 2 | ||||
-rw-r--r-- | plugins/GCodeProfileReader/plugin.json | 2 | ||||
-rw-r--r-- | plugins/GCodeWriter/GCodeWriter.py | 4 | ||||
-rw-r--r-- | plugins/GCodeWriter/__init__.py | 2 | ||||
-rw-r--r-- | plugins/GCodeWriter/plugin.json | 4 | ||||
-rw-r--r-- | plugins/MachineSettingsAction/MachineSettingsAction.qml | 14 |
7 files changed, 19 insertions, 19 deletions
diff --git a/plugins/CuraEngineBackend/StartSliceJob.py b/plugins/CuraEngineBackend/StartSliceJob.py index df19b1dc9e..b19c387a14 100644 --- a/plugins/CuraEngineBackend/StartSliceJob.py +++ b/plugins/CuraEngineBackend/StartSliceJob.py @@ -55,19 +55,19 @@ class GcodeStartEndFormatter(Formatter): extruder_nr = int(kwargs["-1"][key_fragments[1]]) # get extruder_nr values from the global stack except (KeyError, ValueError): # either the key does not exist, or the value is not an int - Logger.log("w", "Unable to determine stack nr '%s' for key '%s' in start/end gcode, using global stack", key_fragments[1], key_fragments[0]) + Logger.log("w", "Unable to determine stack nr '%s' for key '%s' in start/end g-code, using global stack", key_fragments[1], key_fragments[0]) elif len(key_fragments) != 1: - Logger.log("w", "Incorrectly formatted placeholder '%s' in start/end gcode", key) + Logger.log("w", "Incorrectly formatted placeholder '%s' in start/end g-code", key) return "{" + str(key) + "}" key = key_fragments[0] try: return kwargs[str(extruder_nr)][key] except KeyError: - Logger.log("w", "Unable to replace '%s' placeholder in start/end gcode", key) + Logger.log("w", "Unable to replace '%s' placeholder in start/end g-code", key) return "{" + key + "}" else: - Logger.log("w", "Incorrectly formatted placeholder '%s' in start/end gcode", key) + Logger.log("w", "Incorrectly formatted placeholder '%s' in start/end g-code", key) return "{" + str(key) + "}" @@ -308,7 +308,7 @@ class StartSliceJob(Job): settings["default_extruder_nr"] = default_extruder_nr return str(fmt.format(value, **settings)) except: - Logger.logException("w", "Unable to do token replacement on start/end gcode") + Logger.logException("w", "Unable to do token replacement on start/end g-code") return str(value) ## Create extruder message from stack diff --git a/plugins/GCodeProfileReader/GCodeProfileReader.py b/plugins/GCodeProfileReader/GCodeProfileReader.py index 9d7f0059f9..2a10e01d43 100644 --- a/plugins/GCodeProfileReader/GCodeProfileReader.py +++ b/plugins/GCodeProfileReader/GCodeProfileReader.py @@ -71,7 +71,7 @@ class GCodeProfileReader(ProfileReader): try: json_data = json.loads(serialized) except Exception as e: - Logger.log("e", "Could not parse serialized JSON data from GCode %s, error: %s", file_name, e) + Logger.log("e", "Could not parse serialized JSON data from g-code %s, error: %s", file_name, e) return None profiles = [] diff --git a/plugins/GCodeProfileReader/plugin.json b/plugins/GCodeProfileReader/plugin.json index 8111bc687c..f8f7d4c291 100644 --- a/plugins/GCodeProfileReader/plugin.json +++ b/plugins/GCodeProfileReader/plugin.json @@ -1,5 +1,5 @@ { - "name": "GCode Profile Reader", + "name": "G-code Profile Reader", "author": "Ultimaker B.V.", "version": "1.0.0", "description": "Provides support for importing profiles from g-code files.", diff --git a/plugins/GCodeWriter/GCodeWriter.py b/plugins/GCodeWriter/GCodeWriter.py index 2dfaf5aef7..d06332bec1 100644 --- a/plugins/GCodeWriter/GCodeWriter.py +++ b/plugins/GCodeWriter/GCodeWriter.py @@ -56,7 +56,7 @@ class GCodeWriter(MeshWriter): # file. This must always be text mode. def write(self, stream, nodes, mode = MeshWriter.OutputMode.TextMode): if mode != MeshWriter.OutputMode.TextMode: - Logger.log("e", "GCode Writer does not support non-text mode.") + Logger.log("e", "GCodeWriter does not support non-text mode.") return False active_build_plate = Application.getInstance().getBuildPlateModel().activeBuildPlate @@ -108,7 +108,7 @@ class GCodeWriter(MeshWriter): container_with_profile = stack.qualityChanges if container_with_profile.getId() == "empty_quality_changes": - Logger.log("e", "No valid quality profile found, not writing settings to GCode!") + Logger.log("e", "No valid quality profile found, not writing settings to g-code!") return "" flat_global_container = self._createFlattenedContainerInstance(stack.getTop(), container_with_profile) diff --git a/plugins/GCodeWriter/__init__.py b/plugins/GCodeWriter/__init__.py index a89332a371..1a5728f510 100644 --- a/plugins/GCodeWriter/__init__.py +++ b/plugins/GCodeWriter/__init__.py @@ -13,7 +13,7 @@ def getMetaData(): "mesh_writer": { "output": [{ "extension": "gcode", - "description": catalog.i18nc("@item:inlistbox", "GCode File"), + "description": catalog.i18nc("@item:inlistbox", "G-code File"), "mime_type": "text/x-gcode", "mode": GCodeWriter.GCodeWriter.OutputMode.TextMode }] diff --git a/plugins/GCodeWriter/plugin.json b/plugins/GCodeWriter/plugin.json index 5788b01375..5fcb1a3bd7 100644 --- a/plugins/GCodeWriter/plugin.json +++ b/plugins/GCodeWriter/plugin.json @@ -1,8 +1,8 @@ { - "name": "GCode Writer", + "name": "G-code Writer", "author": "Ultimaker B.V.", "version": "1.0.0", - "description": "Writes GCode to a file.", + "description": "Writes g-code to a file.", "api": 4, "i18n-catalog": "cura" } diff --git a/plugins/MachineSettingsAction/MachineSettingsAction.qml b/plugins/MachineSettingsAction/MachineSettingsAction.qml index b4e9dd9b39..5502172728 100644 --- a/plugins/MachineSettingsAction/MachineSettingsAction.qml +++ b/plugins/MachineSettingsAction/MachineSettingsAction.qml @@ -165,7 +165,7 @@ Cura.MachineAction id: gcodeFlavorComboBox sourceComponent: comboBoxWithOptions property string settingKey: "machine_gcode_flavor" - property string label: catalog.i18nc("@label", "Gcode flavor") + property string label: catalog.i18nc("@label", "G-code flavor") property bool forceUpdateOnChange: true property var afterOnActivate: manager.updateHasMaterialsMetadata } @@ -307,7 +307,7 @@ Cura.MachineAction width: settingsTabs.columnWidth Label { - text: catalog.i18nc("@label", "Start Gcode") + text: catalog.i18nc("@label", "Start G-code") font.bold: true } Loader @@ -317,7 +317,7 @@ Cura.MachineAction property int areaWidth: parent.width property int areaHeight: parent.height - y property string settingKey: "machine_start_gcode" - property string tooltip: catalog.i18nc("@tooltip", "Gcode commands to be executed at the very start.") + property string tooltip: catalog.i18nc("@tooltip", "G-code commands to be executed at the very start.") } } @@ -326,7 +326,7 @@ Cura.MachineAction width: settingsTabs.columnWidth Label { - text: catalog.i18nc("@label", "End Gcode") + text: catalog.i18nc("@label", "End G-code") font.bold: true } Loader @@ -336,7 +336,7 @@ Cura.MachineAction property int areaWidth: parent.width property int areaHeight: parent.height - y property string settingKey: "machine_end_gcode" - property string tooltip: catalog.i18nc("@tooltip", "Gcode commands to be executed at the very end.") + property string tooltip: catalog.i18nc("@tooltip", "G-code commands to be executed at the very end.") } } } @@ -441,7 +441,7 @@ Cura.MachineAction width: settingsTabs.columnWidth Label { - text: catalog.i18nc("@label", "Extruder Start Gcode") + text: catalog.i18nc("@label", "Extruder Start G-code") font.bold: true } Loader @@ -459,7 +459,7 @@ Cura.MachineAction width: settingsTabs.columnWidth Label { - text: catalog.i18nc("@label", "Extruder End Gcode") + text: catalog.i18nc("@label", "Extruder End G-code") font.bold: true } Loader |