From: David ‘Bombe’ Roden Date: Mon, 26 May 2008 07:07:35 +0000 (+0200) Subject: add window title X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=5534c6de28d64304dfd6da6ddfacfdecc85d1223;p=jSite2.git add window title --- diff --git a/src/net/pterodactylus/jsite/gui/FileManager.java b/src/net/pterodactylus/jsite/gui/FileManager.java index 49d4241..78c24a7 100644 --- a/src/net/pterodactylus/jsite/gui/FileManager.java +++ b/src/net/pterodactylus/jsite/gui/FileManager.java @@ -20,7 +20,10 @@ package net.pterodactylus.jsite.gui; import javax.swing.JDialog; +import javax.swing.JFrame; +import net.pterodactylus.jsite.i18n.I18n; +import net.pterodactylus.jsite.i18n.I18nable; import net.pterodactylus.jsite.project.Project; /** @@ -28,7 +31,7 @@ import net.pterodactylus.jsite.project.Project; * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ -public class FileManager extends JDialog { +public class FileManager extends JDialog implements I18nable { /** The project whose files to manage. */ private final Project project; @@ -36,10 +39,13 @@ public class FileManager extends JDialog { /** * Creates a new file manager. * + * @param parent + * The parent frame * @param project * The project whose files to manage */ - public FileManager(Project project) { + public FileManager(JFrame parent, Project project) { + super(parent, I18n.get("fileManager.title", project.getName())); this.project = project; initComponents(); } @@ -55,4 +61,15 @@ public class FileManager extends JDialog { /* TODO. */ } + // + // INTERFACE I18nable + // + + /** + * {@inheritDoc} + */ + public void updateI18n() { + setTitle(I18n.get("fileManager.title", project.getName())); + } + } diff --git a/src/net/pterodactylus/jsite/i18n/jSite.properties b/src/net/pterodactylus/jsite/i18n/jSite.properties index e8d25b3..603fb0a 100644 --- a/src/net/pterodactylus/jsite/i18n/jSite.properties +++ b/src/net/pterodactylus/jsite/i18n/jSite.properties @@ -307,3 +307,8 @@ logWindow.label.logLevel.mnemonic: VK_S logWindow.table.column.time.name: Time logWindow.table.column.level.name: Level logWindow.table.column.message.name: Message + +# +# the file manager +# +fileManager.title: File Manager for Project \u201c{0}\u201d diff --git a/src/net/pterodactylus/jsite/i18n/jSite_de.properties b/src/net/pterodactylus/jsite/i18n/jSite_de.properties index 6a648ff..54dc877 100644 --- a/src/net/pterodactylus/jsite/i18n/jSite_de.properties +++ b/src/net/pterodactylus/jsite/i18n/jSite_de.properties @@ -307,3 +307,8 @@ logWindow.label.logLevel.mnemonic: VK_Z logWindow.table.column.time.name: Zeit logWindow.table.column.level.name: Level logWindow.table.column.message.name: Meldung + +# +# the file manager +# +fileManager.title: Dateiverwaltung für Projekt \u201e{0}\u201c