From 586e89d05a1c7fd42c9997c9ab81f463d4e08e1c Mon Sep 17 00:00:00 2001 From: Vaclav Petras Date: Thu, 16 Feb 2023 13:55:58 -0500 Subject: [PATCH 1/2] wxGUI: Change caption of Data Catalog to Data The multi-window layout is/was using just Data which worked well, so this changes the label of the pane/panel to just Data for simplicity and consistency. Now both the top caption and notebook page label (if in a notebook) are Data. --- gui/wxpython/main_window/frame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/wxpython/main_window/frame.py b/gui/wxpython/main_window/frame.py index bb9c7c41eb2..f7db3a42092 100644 --- a/gui/wxpython/main_window/frame.py +++ b/gui/wxpython/main_window/frame.py @@ -614,7 +614,7 @@ def BuildPanes(self): self.datacatalog, aui.AuiPaneInfo() .Name("datacatalog") - .Caption("Data Catalog") + .Caption("Data") .Left() .Layer(1) .Position(1) From 9e4d7ce98c1ce156e7df2e48a6c10187b026d9a9 Mon Sep 17 00:00:00 2001 From: Vaclav Petras Date: Thu, 16 Feb 2023 16:21:51 -0500 Subject: [PATCH 2/2] Make pane captions translatable --- gui/wxpython/main_window/frame.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gui/wxpython/main_window/frame.py b/gui/wxpython/main_window/frame.py index f7db3a42092..2d9c2b0b956 100644 --- a/gui/wxpython/main_window/frame.py +++ b/gui/wxpython/main_window/frame.py @@ -614,7 +614,7 @@ def BuildPanes(self): self.datacatalog, aui.AuiPaneInfo() .Name("datacatalog") - .Caption("Data") + .Caption(_("Data")) .Left() .Layer(1) .Position(1) @@ -629,7 +629,7 @@ def BuildPanes(self): self.notebookLayers, aui.AuiPaneInfo() .Name("layers") - .Caption("Layers") + .Caption(_("Layers")) .Left() .Layer(1) .Position(2) @@ -644,7 +644,7 @@ def BuildPanes(self): self.search, aui.AuiPaneInfo() .Name("tools") - .Caption("Tools") + .Caption(_("Tools")) .Right() .Layer(1) .Position(1) @@ -659,7 +659,7 @@ def BuildPanes(self): self.goutput, aui.AuiPaneInfo() .Name("console") - .Caption("Console") + .Caption(_("Console")) .Right() .BestSize(self.PANE_BEST_SIZE) .MinSize(self.PANE_MIN_SIZE) @@ -673,7 +673,7 @@ def BuildPanes(self): self.pyshell, aui.AuiPaneInfo() .Name("python") - .Caption("Python") + .Caption(_("Python")) .Right() .BestSize(self.PANE_BEST_SIZE) .MinSize(self.PANE_MIN_SIZE)