Skip to content

Commit 0dde743

Browse files
committed
gmoccapy: some spelling fixes
1 parent 8e07aef commit 0dde743

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

src/emc/usr_intf/gmoccapy/gmoccapy.glade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3531,7 +3531,7 @@
35313531
<object class="GtkSpinButton">
35323532
<property name="visible">True</property>
35333533
<property name="can-focus">True</property>
3534-
<property name="text" translatable="yes">250</property>
3534+
<property name="text">250</property>
35353535
<property name="adjustment">adj_kbd_width</property>
35363536
<property name="value">500</property>
35373537
</object>

src/emc/usr_intf/gmoccapy/gmoccapy.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ def _get_button_with_image(self, name, filepath, icon_name):
801801
btn.add(image)
802802
except Exception as e:
803803
LOG.error(e)
804-
message = _("could not resolv the image path '{0}' given for button '{1}'".format(filepath, name))
804+
message = _("could not resolve the image path '{0}' given for button '{1}'".format(filepath, name))
805805
LOG.error(message)
806806
image.set_from_icon_name("image-missing", Gtk.IconSize.DIALOG)
807807
btn.add(image)
@@ -1077,7 +1077,7 @@ def _check_toolmeasurement(self):
10771077
xpos, ypos, zpos, maxprobe = self.get_ini_info.get_tool_sensor_data()
10781078
if not xpos or not ypos or not zpos or not maxprobe:
10791079
self.widgets.lbl_tool_measurement.show()
1080-
LOG.info(_("No valid probe config in INI File. Tool measurement disabled."))
1080+
LOG.info(_("No valid probe config in INI file. Tool measurement disabled."))
10811081
self.widgets.chk_use_tool_measurement.set_active(False)
10821082
self.widgets.chk_use_tool_measurement.set_sensitive(False)
10831083
return False
@@ -1105,7 +1105,7 @@ def _make_jog_increments(self):
11051105

11061106
# We get the increments from INI File
11071107
if len(self.jog_increments) > 10:
1108-
LOG.warning(_("To many increments given in INI File for this screen. "
1108+
LOG.warning(_("To many increments given in INI file for this screen. "
11091109
"Only the first 10 will be reachable through this screen."))
11101110
# we shorten the increment list to 10 (first is default = 0)
11111111
self.jog_increments = self.jog_increments[0:11]
@@ -1303,8 +1303,7 @@ def _make_macro_button(self):
13031303
LOG.debug("found {0} Macros".format(num_macros))
13041304

13051305
if num_macros > 16:
1306-
message = _("GMOCCAPY INFO\n")
1307-
message += _("found more than 16 macros, will use only the first 16")
1306+
message = _("Found more than 16 macros, will use only the first 16.")
13081307
LOG.info(message)
13091308

13101309
num_macros = 16
@@ -4563,7 +4562,7 @@ def _set_icon_theme(self, name):
45634562
for widget_name, icon_name, size in icon_configs:
45644563
try:
45654564
image = self.widgets[widget_name]
4566-
# TODO: Thats kind a problem, as not every image has (yet) a parent (e.g. for toggle button only one
4565+
# TODO: That's kind a problem, as not every image has (yet) a parent (e.g. for toggle button only one
45674566
# image is assigned at a time) and the default_style is maybe to inaccurate in terms of overridden
45684567
# style attributes used by the icon loading mechanism (fg, succcss, warning and error colors)
45694568
# style = image.get_parent().get_style_context() if image.get_parent() else default_style
@@ -5624,7 +5623,7 @@ def _get_child_button(self, location, number = None):
56245623
elif location == "right":
56255624
container = self.widgets.vbtb_main
56265625
else:
5627-
LOG.debug("got wrong location to locate the childs")
5626+
LOG.debug("got wrong location to locate the children")
56285627

56295628
children = container.get_children()
56305629
hidden = 0
@@ -5782,7 +5781,7 @@ def _make_hal_pins(self):
57825781
pin = self.halcomp.newpin("ignore-limits", hal.HAL_BIT, hal.HAL_IN)
57835782
hal_glib.GPin(pin).connect("value_changed", self._ignore_limits)
57845783

5785-
# make pins to set optinal stops and block delete
5784+
# make pins to set optional stops and block delete
57865785
pin = self.halcomp.newpin("optional-stop", hal.HAL_BIT, hal.HAL_IN)
57875786
hal_glib.GPin(pin).connect("value_changed", self._optional_blocks)
57885787
pin = self.halcomp.newpin("blockdelete", hal.HAL_BIT, hal.HAL_IN)

0 commit comments

Comments
 (0)