Commit 02945c939fe702b630a273333a6d34eb3f1999ca
1 parent
4258ded6
Exists in
master
Some strings in brain segmentation dialog were missing gettext
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
invesalius/gui/brain_seg_dialog.py
... | ... | @@ -53,7 +53,7 @@ class BrainSegmenterDialog(wx.Dialog): |
53 | 53 | self.cb_backends = wx.ComboBox(self, wx.ID_ANY, choices=backends, value=backends[0], style=wx.CB_DROPDOWN | wx.CB_READONLY) |
54 | 54 | w, h = self.CalcSizeFromTextSize("MM" * (1 + max(len(i) for i in backends))) |
55 | 55 | self.cb_backends.SetMinClientSize((w, -1)) |
56 | - self.chk_use_gpu = wx.CheckBox(self, wx.ID_ANY, "Use GPU") | |
56 | + self.chk_use_gpu = wx.CheckBox(self, wx.ID_ANY, _("Use GPU")) | |
57 | 57 | self.sld_threshold = wx.Slider(self, wx.ID_ANY, 75, 0, 100) |
58 | 58 | w, h = self.CalcSizeFromTextSize("M" * 20) |
59 | 59 | self.sld_threshold.SetMinClientSize((w, -1)) |
... | ... | @@ -61,7 +61,7 @@ class BrainSegmenterDialog(wx.Dialog): |
61 | 61 | w, h = self.CalcSizeFromTextSize("MMMMM") |
62 | 62 | self.txt_threshold.SetMinClientSize((w, -1)) |
63 | 63 | # self.progress = wx.Gauge(self, -1) |
64 | - self.btn_segment = wx.Button(self, wx.ID_ANY, "Segment") | |
64 | + self.btn_segment = wx.Button(self, wx.ID_ANY, _("Segment")) | |
65 | 65 | # self.btn_stop = wx.Button(self, wx.ID_ANY, _("Stop")) |
66 | 66 | # self.btn_stop.Disable() |
67 | 67 | |
... | ... | @@ -74,12 +74,12 @@ class BrainSegmenterDialog(wx.Dialog): |
74 | 74 | main_sizer = wx.BoxSizer(wx.VERTICAL) |
75 | 75 | sizer_3 = wx.BoxSizer(wx.HORIZONTAL) |
76 | 76 | sizer_backends = wx.BoxSizer(wx.HORIZONTAL) |
77 | - label_1 = wx.StaticText(self, wx.ID_ANY, "Backend") | |
77 | + label_1 = wx.StaticText(self, wx.ID_ANY, _("Backend")) | |
78 | 78 | sizer_backends.Add(label_1, 0, wx.ALIGN_CENTER, 0) |
79 | 79 | sizer_backends.Add(self.cb_backends, 1, wx.LEFT, 5) |
80 | 80 | main_sizer.Add(sizer_backends, 0, wx.ALL | wx.EXPAND, 5) |
81 | 81 | main_sizer.Add(self.chk_use_gpu, 0, wx.ALL, 5) |
82 | - label_5 = wx.StaticText(self, wx.ID_ANY, "Level of certainty") | |
82 | + label_5 = wx.StaticText(self, wx.ID_ANY, _("Level of certainty")) | |
83 | 83 | main_sizer.Add(label_5, 0, wx.ALL, 5) |
84 | 84 | sizer_3.Add(self.sld_threshold, 1, wx.ALIGN_CENTER | wx.BOTTOM | wx.EXPAND | wx.LEFT | wx.RIGHT, 5) |
85 | 85 | sizer_3.Add(self.txt_threshold, 0, wx.ALL, 5) | ... | ... |