From: David ‘Bombe’ Roden Date: Fri, 23 May 2008 12:31:15 +0000 (+0000) Subject: fix project panel translation X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=ad79ad7bb303e4ed0e58d37cbea6dd01ba559921;p=jSite2.git fix project panel translation git-svn-id: http://trooper/svn/projects/jSite/trunk@934 c3eda9e8-030b-0410-8277-bc7414b0a119 --- 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);