Commit 63af3acdffb57bd82eb5a87c7b26f8bffdcbe260

Authored by fabioaz
1 parent e6403287

ENH: Enhancing messages and translations.

Showing 1 changed file with 5 additions and 6 deletions   Show diff stats
invesalius/gui/dialogs.py
@@ -233,7 +233,7 @@ def ShowOpenProjectDialog(): @@ -233,7 +233,7 @@ def ShowOpenProjectDialog():
233 def ShowOpenAnalyzeDialog(): 233 def ShowOpenAnalyzeDialog():
234 # Default system path 234 # Default system path
235 current_dir = os.path.abspath(".") 235 current_dir = os.path.abspath(".")
236 - dlg = wx.FileDialog(None, message=_("Open Analyze file..."), 236 + dlg = wx.FileDialog(None, message=_("Open Analyze file"),
237 defaultDir="", 237 defaultDir="",
238 defaultFile="", wildcard=WILDCARD_ANALYZE, 238 defaultFile="", wildcard=WILDCARD_ANALYZE,
239 style=wx.OPEN|wx.CHANGE_DIR) 239 style=wx.OPEN|wx.CHANGE_DIR)
@@ -712,8 +712,7 @@ def ShowAboutDialog(parent): @@ -712,8 +712,7 @@ def ShowAboutDialog(parent):
712 "Fabio de Souza Azevedo", 712 "Fabio de Souza Azevedo",
713 "Jorge Vicente Lopes da Silva", 713 "Jorge Vicente Lopes da Silva",
714 "Tatiana Al-Chueyr (former)", 714 "Tatiana Al-Chueyr (former)",
715 - "Bruno Lara Bottazzini (contributor)",  
716 - ""] 715 + "Bruno Lara Bottazzini (contributor)"]
717 716
718 info.Translators = ["Alex P. Natsios", 717 info.Translators = ["Alex P. Natsios",
719 "Andreas Loupasakis", 718 "Andreas Loupasakis",
@@ -1141,7 +1140,7 @@ class CAOptions(wx.Panel): @@ -1141,7 +1140,7 @@ class CAOptions(wx.Panel):
1141 self._build_widgets() 1140 self._build_widgets()
1142 1141
1143 def _build_widgets(self): 1142 def _build_widgets(self):
1144 - sb = wx.StaticBox(self, -1, _('Context aware options')) 1143 + sb = wx.StaticBox(self, -1, _('Options'))
1145 self.angle = floatspin.FloatSpin(self, -1, value=0.7, min_val=0.0, 1144 self.angle = floatspin.FloatSpin(self, -1, value=0.7, min_val=0.0,
1146 max_val=1.0, increment=0.1, 1145 max_val=1.0, increment=0.1,
1147 digits=1) 1146 digits=1)
@@ -1201,10 +1200,10 @@ class SurfaceMethodPanel(wx.Panel): @@ -1201,10 +1200,10 @@ class SurfaceMethodPanel(wx.Panel):
1201 icon = wx.ArtProvider.GetBitmap(wx.ART_INFORMATION, wx.ART_MESSAGE_BOX, 1200 icon = wx.ArtProvider.GetBitmap(wx.ART_INFORMATION, wx.ART_MESSAGE_BOX,
1202 (h * 0.8, h * 0.8)) 1201 (h * 0.8, h * 0.8))
1203 self.bmp = wx.StaticBitmap(self, -1, icon) 1202 self.bmp = wx.StaticBitmap(self, -1, icon)
1204 - self.bmp.SetToolTipString(_("It's not possible to use the Default method because the mask was edited")) 1203 + self.bmp.SetToolTipString(_("It is not possible to use the Default method because the mask was edited."))
1205 1204
1206 self.method_sizer = wx.BoxSizer(wx.HORIZONTAL) 1205 self.method_sizer = wx.BoxSizer(wx.HORIZONTAL)
1207 - self.method_sizer.Add(wx.StaticText(self, -1, u'Method:'), 0, 1206 + self.method_sizer.Add(wx.StaticText(self, -1, _(u'Method:')), 0,
1208 wx.EXPAND | wx.ALL, 5) 1207 wx.EXPAND | wx.ALL, 5)
1209 self.method_sizer.Add(self.cb_types, 1, wx.EXPAND) 1208 self.method_sizer.Add(self.cb_types, 1, wx.EXPAND)
1210 self.method_sizer.Add(self.bmp, 0, wx.EXPAND|wx.ALL, 5) 1209 self.method_sizer.Add(self.bmp, 0, wx.EXPAND|wx.ALL, 5)