From: David ‘Bombe’ Roden Date: Mon, 7 Apr 2008 10:02:37 +0000 (+0000) Subject: add about dialog X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=c74ea301cd9c71a434685bb75de2b7a2bb2440e4;p=jSite2.git add about dialog git-svn-id: http://trooper/svn/projects/jSite/trunk@640 c3eda9e8-030b-0410-8277-bc7414b0a119 --- diff --git a/src/net/pterodactylus/jsite/gui/MainWindow.java b/src/net/pterodactylus/jsite/gui/MainWindow.java index 227d48f..30a9eea 100644 --- a/src/net/pterodactylus/jsite/gui/MainWindow.java +++ b/src/net/pterodactylus/jsite/gui/MainWindow.java @@ -139,8 +139,8 @@ public class MainWindow extends JFrame implements I18nable { languageMenu.add(languageAction); } - aboutMenu = new I18nMenu("mainWindow.menu.about"); - menuBar.add(aboutMenu, BorderLayout.LINE_END); + aboutMenu = new I18nMenu("mainWindow.menu.help"); + menuBar.add(aboutMenu); aboutMenu.add(new FixedJMenuItem(swingInterface.getHelpAboutAction())); diff --git a/src/net/pterodactylus/jsite/gui/SwingInterface.java b/src/net/pterodactylus/jsite/gui/SwingInterface.java index 54dec0d..e98fa80 100644 --- a/src/net/pterodactylus/jsite/gui/SwingInterface.java +++ b/src/net/pterodactylus/jsite/gui/SwingInterface.java @@ -76,6 +76,9 @@ public class SwingInterface implements CoreListener { /** The “add project” action. */ private I18nAction addProjectAction; + /** The “about” dialog. */ + private AboutDialog aboutDialog; + /** The list of all defined nodes. */ private List nodeList; @@ -88,6 +91,9 @@ public class SwingInterface implements CoreListener { public SwingInterface(Core core) { this.core = core; I18n.setLocale(Locale.ENGLISH); /* TODO - load config */ + System.setProperty("swing.aatext", "true"); + System.setProperty("swing.plaf.metal.controlFont", "Tahoma"); + System.setProperty("swing.plaf.metal.userFont", "Tahoma"); initActions(); initDialogs(); } @@ -318,6 +324,7 @@ public class SwingInterface implements CoreListener { */ private void initDialogs() { manageNodesDialog = new ManageNodesDialog(this); + aboutDialog = new AboutDialog(this); } // @@ -384,6 +391,7 @@ public class SwingInterface implements CoreListener { * Shows the “about” dialog. */ private void helpAbout() { + aboutDialog.setVisible(true); } /** diff --git a/src/net/pterodactylus/jsite/i18n/jSite.properties b/src/net/pterodactylus/jsite/i18n/jSite.properties index aa85a6c..c4b39d6 100644 --- a/src/net/pterodactylus/jsite/i18n/jSite.properties +++ b/src/net/pterodactylus/jsite/i18n/jSite.properties @@ -3,7 +3,7 @@ # this file should be in US-ASCII format, with unicode characters outside # US-ASCII range encoded with the java-typical \u notation. -# maintainer of the translation +# maintainer of the translation; translators, put your own name here! i18n.maintainer.name: David \u2018Bombe\u2019 Roden i18n.maintainer.email: bombe@freenetproject.org @@ -46,6 +46,15 @@ mainWindow.menu.node.mnemonic: VK_N mainWindow.menu.language.name: Languages mainWindow.menu.language.mnemonic: VK_L +mainWindow.menu.help.name: Help +mainWindow.menu.help.mnemonic: VK_H + +mainWindow.menu.help.item.about.name: About +mainWindow.menu.help.item.about.mnemonic: VK_A +mainWindow.menu.help.item.about.accelerator: Ctrl-VK_A +mainWindow.menu.help.item.about.shortDescription: Shows information about jSite +mainWindow.menu.help.item.about.longDescription: Shows information about jSite + # # the jSite menu # @@ -159,8 +168,20 @@ editNodeDialog.error.port.message: The port number is invalid. # # the "about" dialog +aboutDialog.title: About + aboutDialog.page.about.title: About aboutDialog.page.about.shortDescription: Shows the \u201cAbout\u201d page +aboutDialog.page.about.label.contributor.name: Contributors +aboutDialog.page.about.label.contributor.mnemonic: VK_UNDEFINED + +# translators: replace "English" with your language! +aboutDialog.page.about.label.i18nMaintainer.name: i18n Maintainer (English) +aboutDialog.page.about.label.i18nMaintainer.mnemonic: VK_UNDEFINED + aboutDialog.page.license.title: License aboutDialog.page.license.shortDescription: Shows the \u201cLicense\u201d page + +aboutDialog.page.license.header.name: jSite {0} is released unter the following license: +aboutDialog.page.license.header.mnemonic: VK_UNDEFINED