Commit f6150e88c0047592115af65a42eda2cbb2b5bbc4

Authored by Paulo Henrique Junqueira Amorim
1 parent 8506b3e4

ENH: i18n update

invesalius/data/viewer_slice.py
... ... @@ -62,7 +62,7 @@ class ContourMIPConfig(wx.Panel):
62 62 wx.Panel.__init__(self, prnt)
63 63 self.mip_size_spin = wx.SpinCtrl(self, -1, min=1, max=240,
64 64 initial=const.PROJECTION_MIP_SIZE)
65   - self.mip_size_spin.SetToolTip(wx.ToolTip(_("Number of slices used to compound the visualization")))
  65 + self.mip_size_spin.SetToolTip(wx.ToolTip(_("Number of slices used to compound the visualization.")))
66 66 w, h = self.mip_size_spin.GetTextExtent('M')
67 67 self.mip_size_spin.SetMinSize((5 * w + 10, -1))
68 68 self.mip_size_spin.SetMaxSize((5 * w + 10, -1))
... ... @@ -74,17 +74,17 @@ class ContourMIPConfig(wx.Panel):
74 74 self.border_spin.SetToolTip(wx.ToolTip(_("Controls the sharpness of the"
75 75 " contour. The greater the"
76 76 " value, the sharper the"
77   - " contour")))
  77 + " contour.")))
78 78 w, h = self.border_spin.GetTextExtent('M')
79 79 self.border_spin.SetMinSize((5 * w + 10, -1))
80 80 self.border_spin.SetMaxSize((5 * w + 10, -1))
81 81  
82   - self.inverted = wx.CheckBox(self, -1, _("inverted"))
  82 + self.inverted = wx.CheckBox(self, -1, _("Inverted order"))
83 83 self.inverted.SetToolTip(wx.ToolTip(_("If checked, the slices are"
84 84 " traversed in descending"
85 85 " order to compound the"
86 86 " visualization instead of"
87   - " ascending order")))
  87 + " ascending order.")))
88 88  
89 89 txt_mip_size = wx.StaticText(self, -1, _("Number of slices"), style=wx.ALIGN_CENTER_HORIZONTAL)
90 90 self.txt_mip_border = wx.StaticText(self, -1, _("Sharpness"))
... ...
invesalius/gui/frame.py
... ... @@ -547,8 +547,8 @@ class MenuBar(wx.MenuBar):
547 547 file_edit = wx.Menu()
548 548 file_edit.AppendMenu(wx.NewId(), _('Flip'), flip_menu)
549 549 file_edit.AppendMenu(wx.NewId(), _('Swap axes'), swap_axes_menu)
550   - file_edit.Append(wx.ID_UNDO, "Undo\tCtrl+Z").Enable(False)
551   - file_edit.Append(wx.ID_REDO, "Redo\tCtrl+Y").Enable(False)
  550 + file_edit.Append(wx.ID_UNDO, _("Undo\tCtrl+Z")).Enable(False)
  551 + file_edit.Append(wx.ID_REDO, _("Redo\tCtrl+Y")).Enable(False)
552 552 #app(const.ID_EDIT_LIST, "Show Undo List...")
553 553 #################################################################
554 554  
... ... @@ -1479,8 +1479,8 @@ class HistoryToolBar(wx.ToolBar):
1479 1479 """
1480 1480 Add tools into toolbar.
1481 1481 """
1482   - self.AddSimpleTool(wx.ID_UNDO, wx.ArtProvider_GetBitmap(wx.ART_UNDO, wx.ART_OTHER, wx.Size( 16, 16)), 'Undo', '')
1483   - self.AddSimpleTool(wx.ID_REDO, wx.ArtProvider_GetBitmap(wx.ART_REDO, wx.ART_OTHER, wx.Size( 16, 16)), 'Redo', '')
  1482 + self.AddSimpleTool(wx.ID_UNDO, wx.ArtProvider_GetBitmap(wx.ART_UNDO, wx.ART_OTHER, wx.Size( 16, 16)), _('Undo'), '')
  1483 + self.AddSimpleTool(wx.ID_REDO, wx.ArtProvider_GetBitmap(wx.ART_REDO, wx.ART_OTHER, wx.Size( 16, 16)), _('Redo'), '')
1484 1484 self.EnableTool(wx.ID_UNDO, False)
1485 1485 self.EnableTool(wx.ID_REDO, False)
1486 1486  
... ...