From 5534c6de28d64304dfd6da6ddfacfdecc85d1223 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 26 May 2008 09:07:35 +0200 Subject: [PATCH] add window title --- src/net/pterodactylus/jsite/gui/FileManager.java | 21 +++++++++++++++++++-- src/net/pterodactylus/jsite/i18n/jSite.properties | 5 +++++ .../pterodactylus/jsite/i18n/jSite_de.properties | 5 +++++ 3 files changed, 29 insertions(+), 2 deletions(-) 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 -- 2.7.4