Commit f6150e88c0047592115af65a42eda2cbb2b5bbc4
1 parent
8506b3e4
Exists in
master
and in
54 other branches
ENH: i18n update
Showing
2 changed files
with
8 additions
and
8 deletions
Show diff stats
invesalius/data/viewer_slice.py
@@ -62,7 +62,7 @@ class ContourMIPConfig(wx.Panel): | @@ -62,7 +62,7 @@ class ContourMIPConfig(wx.Panel): | ||
62 | wx.Panel.__init__(self, prnt) | 62 | wx.Panel.__init__(self, prnt) |
63 | self.mip_size_spin = wx.SpinCtrl(self, -1, min=1, max=240, | 63 | self.mip_size_spin = wx.SpinCtrl(self, -1, min=1, max=240, |
64 | initial=const.PROJECTION_MIP_SIZE) | 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 | w, h = self.mip_size_spin.GetTextExtent('M') | 66 | w, h = self.mip_size_spin.GetTextExtent('M') |
67 | self.mip_size_spin.SetMinSize((5 * w + 10, -1)) | 67 | self.mip_size_spin.SetMinSize((5 * w + 10, -1)) |
68 | self.mip_size_spin.SetMaxSize((5 * w + 10, -1)) | 68 | self.mip_size_spin.SetMaxSize((5 * w + 10, -1)) |
@@ -74,17 +74,17 @@ class ContourMIPConfig(wx.Panel): | @@ -74,17 +74,17 @@ class ContourMIPConfig(wx.Panel): | ||
74 | self.border_spin.SetToolTip(wx.ToolTip(_("Controls the sharpness of the" | 74 | self.border_spin.SetToolTip(wx.ToolTip(_("Controls the sharpness of the" |
75 | " contour. The greater the" | 75 | " contour. The greater the" |
76 | " value, the sharper the" | 76 | " value, the sharper the" |
77 | - " contour"))) | 77 | + " contour."))) |
78 | w, h = self.border_spin.GetTextExtent('M') | 78 | w, h = self.border_spin.GetTextExtent('M') |
79 | self.border_spin.SetMinSize((5 * w + 10, -1)) | 79 | self.border_spin.SetMinSize((5 * w + 10, -1)) |
80 | self.border_spin.SetMaxSize((5 * w + 10, -1)) | 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 | self.inverted.SetToolTip(wx.ToolTip(_("If checked, the slices are" | 83 | self.inverted.SetToolTip(wx.ToolTip(_("If checked, the slices are" |
84 | " traversed in descending" | 84 | " traversed in descending" |
85 | " order to compound the" | 85 | " order to compound the" |
86 | " visualization instead of" | 86 | " visualization instead of" |
87 | - " ascending order"))) | 87 | + " ascending order."))) |
88 | 88 | ||
89 | txt_mip_size = wx.StaticText(self, -1, _("Number of slices"), style=wx.ALIGN_CENTER_HORIZONTAL) | 89 | txt_mip_size = wx.StaticText(self, -1, _("Number of slices"), style=wx.ALIGN_CENTER_HORIZONTAL) |
90 | self.txt_mip_border = wx.StaticText(self, -1, _("Sharpness")) | 90 | self.txt_mip_border = wx.StaticText(self, -1, _("Sharpness")) |
invesalius/gui/frame.py
@@ -547,8 +547,8 @@ class MenuBar(wx.MenuBar): | @@ -547,8 +547,8 @@ class MenuBar(wx.MenuBar): | ||
547 | file_edit = wx.Menu() | 547 | file_edit = wx.Menu() |
548 | file_edit.AppendMenu(wx.NewId(), _('Flip'), flip_menu) | 548 | file_edit.AppendMenu(wx.NewId(), _('Flip'), flip_menu) |
549 | file_edit.AppendMenu(wx.NewId(), _('Swap axes'), swap_axes_menu) | 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 | #app(const.ID_EDIT_LIST, "Show Undo List...") | 552 | #app(const.ID_EDIT_LIST, "Show Undo List...") |
553 | ################################################################# | 553 | ################################################################# |
554 | 554 | ||
@@ -1479,8 +1479,8 @@ class HistoryToolBar(wx.ToolBar): | @@ -1479,8 +1479,8 @@ class HistoryToolBar(wx.ToolBar): | ||
1479 | """ | 1479 | """ |
1480 | Add tools into toolbar. | 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 | self.EnableTool(wx.ID_UNDO, False) | 1484 | self.EnableTool(wx.ID_UNDO, False) |
1485 | self.EnableTool(wx.ID_REDO, False) | 1485 | self.EnableTool(wx.ID_REDO, False) |
1486 | 1486 |