From f6150e88c0047592115af65a42eda2cbb2b5bbc4 Mon Sep 17 00:00:00 2001 From: paulojamorim Date: Mon, 16 Dec 2013 15:27:13 -0200 Subject: [PATCH] ENH: i18n update --- invesalius/data/viewer_slice.py | 8 ++++---- invesalius/gui/frame.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/invesalius/data/viewer_slice.py b/invesalius/data/viewer_slice.py index 529f128..dff54a4 100755 --- a/invesalius/data/viewer_slice.py +++ b/invesalius/data/viewer_slice.py @@ -62,7 +62,7 @@ class ContourMIPConfig(wx.Panel): wx.Panel.__init__(self, prnt) self.mip_size_spin = wx.SpinCtrl(self, -1, min=1, max=240, initial=const.PROJECTION_MIP_SIZE) - self.mip_size_spin.SetToolTip(wx.ToolTip(_("Number of slices used to compound the visualization"))) + self.mip_size_spin.SetToolTip(wx.ToolTip(_("Number of slices used to compound the visualization."))) w, h = self.mip_size_spin.GetTextExtent('M') self.mip_size_spin.SetMinSize((5 * w + 10, -1)) self.mip_size_spin.SetMaxSize((5 * w + 10, -1)) @@ -74,17 +74,17 @@ class ContourMIPConfig(wx.Panel): self.border_spin.SetToolTip(wx.ToolTip(_("Controls the sharpness of the" " contour. The greater the" " value, the sharper the" - " contour"))) + " contour."))) w, h = self.border_spin.GetTextExtent('M') self.border_spin.SetMinSize((5 * w + 10, -1)) self.border_spin.SetMaxSize((5 * w + 10, -1)) - self.inverted = wx.CheckBox(self, -1, _("inverted")) + self.inverted = wx.CheckBox(self, -1, _("Inverted order")) self.inverted.SetToolTip(wx.ToolTip(_("If checked, the slices are" " traversed in descending" " order to compound the" " visualization instead of" - " ascending order"))) + " ascending order."))) txt_mip_size = wx.StaticText(self, -1, _("Number of slices"), style=wx.ALIGN_CENTER_HORIZONTAL) self.txt_mip_border = wx.StaticText(self, -1, _("Sharpness")) diff --git a/invesalius/gui/frame.py b/invesalius/gui/frame.py index 5189ae9..7360fc9 100644 --- a/invesalius/gui/frame.py +++ b/invesalius/gui/frame.py @@ -547,8 +547,8 @@ class MenuBar(wx.MenuBar): file_edit = wx.Menu() file_edit.AppendMenu(wx.NewId(), _('Flip'), flip_menu) file_edit.AppendMenu(wx.NewId(), _('Swap axes'), swap_axes_menu) - file_edit.Append(wx.ID_UNDO, "Undo\tCtrl+Z").Enable(False) - file_edit.Append(wx.ID_REDO, "Redo\tCtrl+Y").Enable(False) + file_edit.Append(wx.ID_UNDO, _("Undo\tCtrl+Z")).Enable(False) + file_edit.Append(wx.ID_REDO, _("Redo\tCtrl+Y")).Enable(False) #app(const.ID_EDIT_LIST, "Show Undo List...") ################################################################# @@ -1479,8 +1479,8 @@ class HistoryToolBar(wx.ToolBar): """ Add tools into toolbar. """ - self.AddSimpleTool(wx.ID_UNDO, wx.ArtProvider_GetBitmap(wx.ART_UNDO, wx.ART_OTHER, wx.Size( 16, 16)), 'Undo', '') - self.AddSimpleTool(wx.ID_REDO, wx.ArtProvider_GetBitmap(wx.ART_REDO, wx.ART_OTHER, wx.Size( 16, 16)), 'Redo', '') + self.AddSimpleTool(wx.ID_UNDO, wx.ArtProvider_GetBitmap(wx.ART_UNDO, wx.ART_OTHER, wx.Size( 16, 16)), _('Undo'), '') + self.AddSimpleTool(wx.ID_REDO, wx.ArtProvider_GetBitmap(wx.ART_REDO, wx.ART_OTHER, wx.Size( 16, 16)), _('Redo'), '') self.EnableTool(wx.ID_UNDO, False) self.EnableTool(wx.ID_REDO, False) -- libgit2 0.21.2