Skip to content

Commit

Permalink
wxGUI: fix i18n issues in r.li.setup gui (#2869)
Browse files Browse the repository at this point in the history
  • Loading branch information
slichtzzz committed Mar 6, 2023
1 parent dec1e3f commit 20cee66
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions gui/wxpython/rlisetup/wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -1230,11 +1230,8 @@ def afterRegionDrawn(self, marea):
self.parent.wizard.ShowPage(self.parent.summarypage)
else:
self.title.SetLabel(
_(
"Draw sample region "
+ str(self.regioncount)
+ " of "
+ str(numregions)
_("Draw sample region {count} of {num_regions}").format(
count=self.regioncount, num_regions=numregions
)
)
wx.FindWindowById(wx.ID_FORWARD).Enable(False)
Expand Down Expand Up @@ -1731,13 +1728,10 @@ def SampleFrameChanged(self, region):
self.parent.wizard.ShowPage(self.parent.summarypage)
else:
self.title.SetLabel(
_(
"Draw Sampling "
+ drawtype
+ " "
+ str(self.regioncount)
+ " of "
+ str(self.numregions)
_("Draw sampling {draw_type} {count} of {num_regions}").format(
draw_type=drawtype,
count=self.regioncount,
num_regions=self.numregions,
)
)
wx.FindWindowById(wx.ID_FORWARD).Enable(False)
Expand Down Expand Up @@ -1833,11 +1827,8 @@ def afterRegionDrawn(self):
return True
else:
self.title.SetLabel(
_(
"Select sample area "
+ str(self.areascount + 1)
+ " of "
+ str(self.areanum)
_("Select sample area {areas_count} of {area_num}").format(
areas_count=self.areascount + 1, area_num=self.areanum
)
)
wx.FindWindowById(wx.ID_FORWARD).Enable(False)
Expand Down

0 comments on commit 20cee66

Please sign in to comment.