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;
/**
*
* @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;
/**
* 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();
}
/* TODO. */
}
+ //
+ // INTERFACE I18nable
+ //
+
+ /**
+ * {@inheritDoc}
+ */
+ public void updateI18n() {
+ setTitle(I18n.get("fileManager.title", project.getName()));
+ }
+
}
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
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