fix project panel translation
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 23 May 2008 12:31:15 +0000 (12:31 +0000)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 23 May 2008 12:31:15 +0000 (12:31 +0000)
git-svn-id: http://trooper/svn/projects/jSite/trunk@934 c3eda9e8-030b-0410-8277-bc7414b0a119

src/net/pterodactylus/jsite/gui/MainWindow.java

index cd6b210..4e1b9aa 100644 (file)
@@ -391,9 +391,12 @@ public class MainWindow extends JFrame implements WindowListener, I18nable, Prop
                }
                helpMenu.updateI18n();
                getJMenuBar().revalidate();
-               projectOverviewPanel.setName(I18n.get("mainWindow.pane.overview.title"));
+               projectPane.setTitleAt(0, I18n.get("mainWindow.pane.overview.title"));
                for (int componentIndex = 0; componentIndex < projectPane.getTabCount(); componentIndex++) {
-                       projectPane.setTitleAt(componentIndex, projectPane.getComponentAt(componentIndex).getName());
+                       Component tabComponent = projectPane.getComponentAt(componentIndex);
+                       if (tabComponent instanceof ProjectPanel) {
+                               ((ProjectPanel) tabComponent).updateI18n();
+                       }
                }
                refreshNodeMenuItems();
                SwingUtils.repackCentered(this);