From ad79ad7bb303e4ed0e58d37cbea6dd01ba559921 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 23 May 2008 12:31:15 +0000 Subject: [PATCH] fix project panel translation git-svn-id: http://trooper/svn/projects/jSite/trunk@934 c3eda9e8-030b-0410-8277-bc7414b0a119 --- src/net/pterodactylus/jsite/gui/MainWindow.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/net/pterodactylus/jsite/gui/MainWindow.java b/src/net/pterodactylus/jsite/gui/MainWindow.java index cd6b210..4e1b9aa 100644 --- a/src/net/pterodactylus/jsite/gui/MainWindow.java +++ b/src/net/pterodactylus/jsite/gui/MainWindow.java @@ -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); -- 2.7.4