Skip to content

Commit

Permalink
gmoccapy: little optimization for translation
Browse files Browse the repository at this point in the history
  • Loading branch information
hansu committed Mar 24, 2024
1 parent 8e07aef commit fcc84d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/emc/usr_intf/gmoccapy/gmoccapy.glade
Original file line number Diff line number Diff line change
Expand Up @@ -3531,7 +3531,7 @@
<object class="GtkSpinButton">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="text" translatable="yes">250</property>
<property name="text">250</property>
<property name="adjustment">adj_kbd_width</property>
<property name="value">500</property>
</object>
Expand Down
9 changes: 4 additions & 5 deletions src/emc/usr_intf/gmoccapy/gmoccapy.py
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ def _get_button_with_image(self, name, filepath, icon_name):
btn.add(image)
except Exception as e:
LOG.error(e)
message = _("could not resolv the image path '{0}' given for button '{1}'".format(filepath, name))
message = _("could not resolve the image path '{0}' given for button '{1}'".format(filepath, name))
LOG.error(message)
image.set_from_icon_name("image-missing", Gtk.IconSize.DIALOG)
btn.add(image)
Expand Down Expand Up @@ -1077,7 +1077,7 @@ def _check_toolmeasurement(self):
xpos, ypos, zpos, maxprobe = self.get_ini_info.get_tool_sensor_data()
if not xpos or not ypos or not zpos or not maxprobe:
self.widgets.lbl_tool_measurement.show()
LOG.info(_("No valid probe config in INI File. Tool measurement disabled."))
LOG.info(_("No valid probe config in INI file. Tool measurement disabled."))
self.widgets.chk_use_tool_measurement.set_active(False)
self.widgets.chk_use_tool_measurement.set_sensitive(False)
return False
Expand Down Expand Up @@ -1105,7 +1105,7 @@ def _make_jog_increments(self):

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

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

num_macros = 16
Expand Down

0 comments on commit fcc84d0

Please sign in to comment.