Commit 63585d7df4daa155fd3ac1fe3e38bdd30423a59c

Authored by tatiana
1 parent 5d5cd99a

ENH: English spelling / grammar / expresions, suggested by Eugene Liscio (fix #214)

invesalius/control.py
@@ -438,7 +438,7 @@ class Controller(): @@ -438,7 +438,7 @@ class Controller():
438 tilt_value = dicom.acquisition.tilt 438 tilt_value = dicom.acquisition.tilt
439 if (tilt_value) and (gui): 439 if (tilt_value) and (gui):
440 # Tell user gantry tilt and fix, according to answer 440 # Tell user gantry tilt and fix, according to answer
441 - message = _("Fix gantry tilt applying the degrees bellow") 441 + message = _("Fix gantry tilt applying the degrees below")
442 value = -1*tilt_value 442 value = -1*tilt_value
443 tilt_value = dialog.ShowNumberDialog(message, value) 443 tilt_value = dialog.ShowNumberDialog(message, value)
444 imagedata = utils.FixGantryTilt(imagedata, tilt_value) 444 imagedata = utils.FixGantryTilt(imagedata, tilt_value)
invesalius/gui/dialogs.py
@@ -298,7 +298,7 @@ def ImportEmptyDirectory(dirpath): @@ -298,7 +298,7 @@ def ImportEmptyDirectory(dirpath):
298 dlg.Destroy() 298 dlg.Destroy()
299 299
300 def ImportInvalidFiles(): 300 def ImportInvalidFiles():
301 - msg = _("There are no DICOM files on the selected directory.") 301 + msg = _("There are no DICOM files in the selected directory.")
302 if sys.platform == 'darwin': 302 if sys.platform == 'darwin':
303 dlg = wx.MessageDialog(None, "", msg, 303 dlg = wx.MessageDialog(None, "", msg,
304 wx.ICON_INFORMATION | wx.OK) 304 wx.ICON_INFORMATION | wx.OK)
invesalius/gui/task_exporter.py
@@ -102,7 +102,7 @@ class InnerTaskPanel(wx.Panel): @@ -102,7 +102,7 @@ class InnerTaskPanel(wx.Panel):
102 # Counter for projects loaded in current GUI 102 # Counter for projects loaded in current GUI
103 103
104 # Fixed hyperlink items 104 # Fixed hyperlink items
105 - tooltip = wx.ToolTip(_("Export InVesalius screen to a image file")) 105 + tooltip = wx.ToolTip(_("Export InVesalius screen to an image file"))
106 link_export_picture = hl.HyperLinkCtrl(self, -1, 106 link_export_picture = hl.HyperLinkCtrl(self, -1,
107 _("Export picture...")) 107 _("Export picture..."))
108 link_export_picture.SetUnderlines(False, False, False) 108 link_export_picture.SetUnderlines(False, False, False)
@@ -324,7 +324,7 @@ class InnerTaskPanel(wx.Panel): @@ -324,7 +324,7 @@ class InnerTaskPanel(wx.Panel):
324 (filename, filetype)) 324 (filename, filetype))
325 else: 325 else:
326 dlg = wx.MessageDialog(None, 326 dlg = wx.MessageDialog(None,
327 - _("You need to create a surface and make it ") + 327 + _("You need to create a surface and make ") +
328 _("visible before exporting it."), 328 _("visible before exporting it."),
329 'InVesalius 3', 329 'InVesalius 3',
330 wx.OK | wx.ICON_INFORMATION) 330 wx.OK | wx.ICON_INFORMATION)
invesalius/gui/task_slice.py
@@ -79,7 +79,7 @@ class InnerTaskPanel(wx.Panel): @@ -79,7 +79,7 @@ class InnerTaskPanel(wx.Panel):
79 79
80 80
81 # Fixed hyperlink items 81 # Fixed hyperlink items
82 - tooltip = wx.ToolTip(_("Create mask for slice segmentation and edition")) 82 + tooltip = wx.ToolTip(_("Create mask for slice segmentation and editing"))
83 link_new_mask = hl.HyperLinkCtrl(self, -1, _("Create new mask")) 83 link_new_mask = hl.HyperLinkCtrl(self, -1, _("Create new mask"))
84 link_new_mask.SetUnderlines(False, False, False) 84 link_new_mask.SetUnderlines(False, False, False)
85 link_new_mask.SetColours("BLACK", "BLACK", "BLACK") 85 link_new_mask.SetColours("BLACK", "BLACK", "BLACK")
invesalius/gui/task_surface.py
@@ -243,7 +243,7 @@ class SurfaceTools(wx.Panel): @@ -243,7 +243,7 @@ class SurfaceTools(wx.Panel):
243 243
244 244
245 # Fixed hyperlink items 245 # Fixed hyperlink items
246 - tooltip = wx.ToolTip(_("Automatically select largest disconnect region and create new surface")) 246 + tooltip = wx.ToolTip(_("Automatically select largest disconnected region and create new surface"))
247 link_largest = hl.HyperLinkCtrl(self, -1, _("Select largest part")) 247 link_largest = hl.HyperLinkCtrl(self, -1, _("Select largest part"))
248 link_largest.SetUnderlines(False, False, False) 248 link_largest.SetUnderlines(False, False, False)
249 link_largest.SetColours("BLACK", "BLACK", "BLACK") 249 link_largest.SetColours("BLACK", "BLACK", "BLACK")
@@ -252,8 +252,8 @@ class SurfaceTools(wx.Panel): @@ -252,8 +252,8 @@ class SurfaceTools(wx.Panel):
252 link_largest.UpdateLink() 252 link_largest.UpdateLink()
253 link_largest.Bind(hl.EVT_HYPERLINK_LEFT, self.OnLinkLargest) 253 link_largest.Bind(hl.EVT_HYPERLINK_LEFT, self.OnLinkLargest)
254 254
255 - tooltip = wx.ToolTip(_("Automatically select disconnect regions and create one new surface per region"))  
256 - link_split_all = hl.HyperLinkCtrl(self, -1,_("Split all disconnect surfaces")) 255 + tooltip = wx.ToolTip(_("Automatically select disconnected regions and create one new surface per region"))
  256 + link_split_all = hl.HyperLinkCtrl(self, -1,_("Split all disconnected surfaces"))
257 link_split_all.SetUnderlines(False, False, False) 257 link_split_all.SetUnderlines(False, False, False)
258 link_split_all.SetColours("BLACK", "BLACK", "BLACK") 258 link_split_all.SetColours("BLACK", "BLACK", "BLACK")
259 link_split_all.SetToolTip(tooltip) 259 link_split_all.SetToolTip(tooltip)