summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMürsel Türk2020-07-07 12:03:34 +0200
committerMürsel Türk2020-07-07 12:03:34 +0200
commitcfaeb9beb9041208d8cc1657d3d22eea77ea43a7 (patch)
tree63c1c5a8779ff8aa27c9e9c501971d6caeda56aa
parent[client] Add resource bundle files for configurator classes. Update the confi... (diff)
downloadtutor-module-cfaeb9beb9041208d8cc1657d3d22eea77ea43a7.tar.gz
tutor-module-cfaeb9beb9041208d8cc1657d3d22eea77ea43a7.tar.xz
tutor-module-cfaeb9beb9041208d8cc1657d3d22eea77ea43a7.zip
[client] Add resource bundle files for control classes. Update the control classes accordingly.
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/ImageListViewer.java16
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/PersonLabel.java3
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/ImagePermissionTable.java16
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/ImagePublishedTable.java17
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/ImageTable.java34
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/ImageVersionTable.java19
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/LectureLdapFilterTable.java10
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/LecturePermissionTable.java10
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/LectureTable.java19
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/NetshareTable.java20
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/UserTable.java7
-rw-r--r--dozentenmodul/src/main/properties/i18n/control.properties76
-rw-r--r--dozentenmodul/src/main/properties/i18n/control_en_US.properties76
13 files changed, 267 insertions, 56 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/ImageListViewer.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/ImageListViewer.java
index 7ef4a800..7de9459f 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/ImageListViewer.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/ImageListViewer.java
@@ -25,6 +25,7 @@ import org.openslx.dozmod.gui.control.table.ImageTable;
import org.openslx.dozmod.gui.control.table.ListTable.ListModel;
import org.openslx.dozmod.gui.control.table.QScrollPane;
import org.openslx.dozmod.gui.helper.GridManager;
+import org.openslx.dozmod.gui.helper.I18n;
import org.openslx.dozmod.gui.helper.TextChangeListener;
import org.openslx.dozmod.permissions.ImagePerms;
import org.openslx.dozmod.thrift.Session;
@@ -95,11 +96,11 @@ public class ImageListViewer extends QLabel {
};
public static enum FilterType {
- ALL("Alle anzeigen"),
- OWN("Nur eigene/zugewiesene anzeigen"),
- USABLE("Nur verwendbare/linkbare anzeigen"),
- EDITABLE("Nur editierbare anzeigen"),
- TEMPLATES("Nur Vorlagen zeigen");
+ ALL(I18n.CONTROL.getString("ImageListViewer.FilterType.all")),
+ OWN(I18n.CONTROL.getString("ImageListViewer.FilterType.own")),
+ USABLE(I18n.CONTROL.getString("ImageListViewer.FilterType.usable")),
+ EDITABLE(I18n.CONTROL.getString("ImageListViewer.FilterType.editable")),
+ TEMPLATES(I18n.CONTROL.getString("ImageListViewer.FilterType.templates"));
private final String name;
@@ -121,7 +122,8 @@ public class ImageListViewer extends QLabel {
// the panel for the table and search field
// the search field and filter combo box
JPanel filterPanel = new JPanel();
- filterPanel.setBorder(new TitledBorder("Suchen"));
+ filterPanel.setBorder(new TitledBorder(
+ I18n.CONTROL.getString("ImageListViewer.TitledBorder.filterPanel.title")));
filterPanel.setLayout(new BoxLayout(filterPanel, BoxLayout.LINE_AXIS));
txtSearch = new JTextField();
cboFilter = new JComboBox<FilterType>();
@@ -134,7 +136,7 @@ public class ImageListViewer extends QLabel {
// Panel for itemCount
JPanel imageCountPanel = new JPanel();
imageCountLabel = new JLabel();
- imageCountPanel.add(new JLabel("Sichtbar:"));
+ imageCountPanel.add(new JLabel(I18n.CONTROL.getString("ImageListViewer.Label.imageCount.text")));
imageCountPanel.add(imageCountLabel);
filterPanel.add(imageCountPanel);
grid.add(filterPanel).fill(true, false).expand(true, false);
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/PersonLabel.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/PersonLabel.java
index 7c53bf96..9148ea4b 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/PersonLabel.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/PersonLabel.java
@@ -10,6 +10,7 @@ import javax.swing.UIManager;
import org.openslx.bwlp.thrift.iface.UserInfo;
import org.openslx.dozmod.gui.helper.ColorUtil;
+import org.openslx.dozmod.gui.helper.I18n;
import org.openslx.dozmod.util.FormatHelper;
import org.openslx.dozmod.util.DesktopEnvironment;
@@ -73,7 +74,7 @@ public class PersonLabel extends QLabel {
setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
setForeground(UIManager.getColor("Label.foreground"));
} else {
- setToolTipText("Klicken, um eine Mail an diese Person zu senden");
+ setToolTipText(I18n.CONTROL.getString("PersonLabel.Label.toolTipText"));
setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
setForeground(linkColor);
}
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/ImagePermissionTable.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/ImagePermissionTable.java
index a2d99355..c539c751 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/ImagePermissionTable.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/ImagePermissionTable.java
@@ -2,17 +2,23 @@ package org.openslx.dozmod.gui.control.table;
import org.openslx.bwlp.thrift.iface.ImagePermissions;
import org.openslx.dozmod.gui.control.table.ImagePermissionTable.UserImagePermissions;
+import org.openslx.dozmod.gui.helper.I18n;
import org.openslx.dozmod.thrift.cache.UserCache;
import org.openslx.dozmod.util.FormatHelper;
@SuppressWarnings("serial")
public class ImagePermissionTable extends ListTable<UserImagePermissions> {
- public static final ListTableColumn COL_USER = new ListTableColumn("Benutzer");
- public static final ListTableColumn COL_LINK = new ListTableColumn("Verlinken", Boolean.class);
- public static final ListTableColumn COL_DOWNLOAD = new ListTableColumn("Download", Boolean.class);
- public static final ListTableColumn COL_EDIT = new ListTableColumn("Bearbeiten", Boolean.class);
- public static final ListTableColumn COL_ADMIN = new ListTableColumn("Admin", Boolean.class);
+ public static final ListTableColumn COL_USER = new ListTableColumn(
+ I18n.CONTROL.getString("ImagePermissionTable.ListTableColumn.user.colName"));
+ public static final ListTableColumn COL_LINK = new ListTableColumn(
+ I18n.CONTROL.getString("ImagePermissionTable.ListTableColumn.link.colName"), Boolean.class);
+ public static final ListTableColumn COL_DOWNLOAD = new ListTableColumn(
+ I18n.CONTROL.getString("ImagePermissionTable.ListTableColumn.download.colName"), Boolean.class);
+ public static final ListTableColumn COL_EDIT = new ListTableColumn(
+ I18n.CONTROL.getString("ImagePermissionTable.ListTableColumn.edit.colName"), Boolean.class);
+ public static final ListTableColumn COL_ADMIN = new ListTableColumn(
+ I18n.CONTROL.getString("ImagePermissionTable.ListTableColumn.admin.colName"), Boolean.class);
public ImagePermissionTable() {
super(COL_USER, COL_LINK, COL_DOWNLOAD, COL_EDIT, COL_ADMIN);
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/ImagePublishedTable.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/ImagePublishedTable.java
index c25748c1..49b125b8 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/ImagePublishedTable.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/ImagePublishedTable.java
@@ -4,6 +4,7 @@ import java.util.Comparator;
import org.openslx.bwlp.thrift.iface.ImageSummaryRead;
import org.openslx.bwlp.thrift.iface.UserInfo;
+import org.openslx.dozmod.gui.helper.I18n;
import org.openslx.dozmod.thrift.Sorters;
import org.openslx.dozmod.thrift.cache.MetaDataCache;
import org.openslx.dozmod.thrift.cache.OrganizationCache;
@@ -17,11 +18,17 @@ public class ImagePublishedTable extends ListTable<ImageSummaryRead> {
// public static final ListTableColumn COL_USABLE = new ListTableColumn("Verwendbar", Boolean.class);
// public static final ListTableColumn COL_SIZE = new ListTableColumn("Größe", Long.class);
// public static final ListTableColumn COL_LASTCHANGE = new ListTableColumn("Geändert", Long.class);
- public static final ListTableColumn COL_NAME = new ListTableColumn("Name");
- public static final ListTableColumn COL_OS = new ListTableColumn("OS", Integer.class, Sorters.osNameById);
- public static final ListTableColumn COL_OWNER = new ListTableColumn("Besitzer", Sorters.userNameById);
- public static final ListTableColumn COL_UPLOADER = new ListTableColumn("Hochgeladen von", Sorters.userNameById);
- public static final ListTableColumn COL_ORG = new ListTableColumn("Organisation");
+ public static final ListTableColumn COL_NAME = new ListTableColumn(
+ I18n.CONTROL.getString("ImagePublishedTable.ListTableColumn.name.colName"));
+ public static final ListTableColumn COL_OS = new ListTableColumn(
+ I18n.CONTROL.getString("ImagePublishedTable.ListTableColumn.OS.colName"),
+ Integer.class, Sorters.osNameById);
+ public static final ListTableColumn COL_OWNER = new ListTableColumn(
+ I18n.CONTROL.getString("ImagePublishedTable.ListTableColumn.owner.colName"), Sorters.userNameById);
+ public static final ListTableColumn COL_UPLOADER = new ListTableColumn(
+ I18n.CONTROL.getString("ImagePublishedTable.ListTableColumn.uploader.colName"), Sorters.userNameById);
+ public static final ListTableColumn COL_ORG = new ListTableColumn(
+ I18n.CONTROL.getString("ImagePublishedTable.ListTableColumn.organization.colName"));
public ImagePublishedTable() {
super(new Comparator<ImageSummaryRead>() {
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/ImageTable.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/ImageTable.java
index 8829876c..9bf9b59e 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/ImageTable.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/ImageTable.java
@@ -6,6 +6,7 @@ import javax.swing.Icon;
import org.openslx.bwlp.thrift.iface.ImageSummaryRead;
import org.openslx.dozmod.gui.Gui;
+import org.openslx.dozmod.gui.helper.I18n;
import org.openslx.dozmod.thrift.Sorters;
import org.openslx.dozmod.thrift.cache.MetaDataCache;
import org.openslx.dozmod.thrift.cache.UserCache;
@@ -14,17 +15,28 @@ import org.openslx.dozmod.util.FormatHelper;
@SuppressWarnings("serial")
public class ImageTable extends ListTable<ImageSummaryRead> {
- public static final ListTableColumn COL_TEMPLATE = new ListTableColumn("Vorlage", Boolean.class);
- public static final ListTableColumn COL_USABLE = new ListTableColumn("Verwendbar", Boolean.class);
- public static final ListTableColumn COL_SIZE = new ListTableColumn("Größe", Long.class);
- public static final ListTableColumn COL_LASTCHANGE = new ListTableColumn("Geändert", Long.class);
- public static final ListTableColumn COL_EXPIRING = new ListTableColumn("Ablaufdatum", Long.class);
- public static final ListTableColumn COL_OWNER = new ListTableColumn("Besitzer", Sorters.userNameById);
- public static final ListTableColumn COL_OS = new ListTableColumn("OS", Integer.class, Sorters.osNameById);
- public static final ListTableColumn COL_NAME = new ListTableColumn("Name");
- public static final ListTableColumn COL_HYPERVISOR = new ListTableColumn("", Icon.class);
- public static final ListTableColumn COL_VERSIONCOUNT = new ListTableColumn("Versionen", Integer.class);
- public static final ListTableColumn COL_TOTALSIZE = new ListTableColumn("Gesamtgröße", Long.class);
+ public static final ListTableColumn COL_TEMPLATE = new ListTableColumn(
+ I18n.CONTROL.getString("ImageTable.ListTableColumn.template.colName"), Boolean.class);
+ public static final ListTableColumn COL_USABLE = new ListTableColumn(
+ I18n.CONTROL.getString("ImageTable.ListTableColumn.usable.colName"), Boolean.class);
+ public static final ListTableColumn COL_SIZE = new ListTableColumn(
+ I18n.CONTROL.getString("ImageTable.ListTableColumn.size.colName"), Long.class);
+ public static final ListTableColumn COL_LASTCHANGE = new ListTableColumn(
+ I18n.CONTROL.getString("ImageTable.ListTableColumn.lastChange.colName"), Long.class);
+ public static final ListTableColumn COL_EXPIRING = new ListTableColumn(
+ I18n.CONTROL.getString("ImageTable.ListTableColumn.expiring.colName"), Long.class);
+ public static final ListTableColumn COL_OWNER = new ListTableColumn(
+ I18n.CONTROL.getString("ImageTable.ListTableColumn.owner.colName"), Sorters.userNameById);
+ public static final ListTableColumn COL_OS = new ListTableColumn(
+ I18n.CONTROL.getString("ImageTable.ListTableColumn.OS.colName"), Integer.class, Sorters.osNameById);
+ public static final ListTableColumn COL_NAME = new ListTableColumn(
+ I18n.CONTROL.getString("ImageTable.ListTableColumn.name.colName"));
+ public static final ListTableColumn COL_HYPERVISOR = new ListTableColumn(
+ I18n.CONTROL.getString("ImageTable.ListTableColumn.hypervisor.colName"), Icon.class);
+ public static final ListTableColumn COL_VERSIONCOUNT = new ListTableColumn(
+ I18n.CONTROL.getString("ImageTable.ListTableColumn.versionCount.colName"), Integer.class);
+ public static final ListTableColumn COL_TOTALSIZE = new ListTableColumn(
+ I18n.CONTROL.getString("ImageTable.ListTableColumn.totalSize.colName"), Long.class);
public ImageTable() {
super(new Comparator<ImageSummaryRead>() {
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/ImageVersionTable.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/ImageVersionTable.java
index f69d3c47..ff783370 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/ImageVersionTable.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/ImageVersionTable.java
@@ -1,18 +1,25 @@
package org.openslx.dozmod.gui.control.table;
import org.openslx.bwlp.thrift.iface.ImageVersionDetails;
+import org.openslx.dozmod.gui.helper.I18n;
import org.openslx.dozmod.thrift.cache.UserCache;
import org.openslx.dozmod.util.FormatHelper;
@SuppressWarnings("serial")
public class ImageVersionTable extends ListTable<ImageVersionDetails> {
- public static final ListTableColumn COL_CREATED = new ListTableColumn("Erstellungszeitpunkt", Long.class);
- public static final ListTableColumn COL_EXPIRING = new ListTableColumn("Ablaufszeitpunkt", Long.class);
- public static final ListTableColumn COL_UPLOADER = new ListTableColumn("Ersteller");
- public static final ListTableColumn COL_VALID = new ListTableColumn("Verwendbar", Boolean.class);
- public static final ListTableColumn COL_SIZE = new ListTableColumn("Größe", Long.class);
- public static final ListTableColumn COL_ID = new ListTableColumn("Interne ID");
+ public static final ListTableColumn COL_CREATED = new ListTableColumn(
+ I18n.CONTROL.getString("ImageVersionTable.ListTableColumn.created.colName"), Long.class);
+ public static final ListTableColumn COL_EXPIRING = new ListTableColumn(
+ I18n.CONTROL.getString("ImageVersionTable.ListTableColumn.expiring.colName"), Long.class);
+ public static final ListTableColumn COL_UPLOADER = new ListTableColumn(
+ I18n.CONTROL.getString("ImageVersionTable.ListTableColumn.uploader.colName"));
+ public static final ListTableColumn COL_VALID = new ListTableColumn(
+ I18n.CONTROL.getString("ImageVersionTable.ListTableColumn.valid.colName"), Boolean.class);
+ public static final ListTableColumn COL_SIZE = new ListTableColumn(
+ I18n.CONTROL.getString("ImageVersionTable.ListTableColumn.size.colName"), Long.class);
+ public static final ListTableColumn COL_ID = new ListTableColumn(
+ I18n.CONTROL.getString("ImageVersionTable.ListTableColumn.ID.colName"));
public ImageVersionTable() {
super(COL_CREATED, COL_EXPIRING, COL_UPLOADER, COL_VALID, COL_SIZE, COL_ID);
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/LectureLdapFilterTable.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/LectureLdapFilterTable.java
index eb7b71dc..f037263e 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/LectureLdapFilterTable.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/LectureLdapFilterTable.java
@@ -1,13 +1,17 @@
package org.openslx.dozmod.gui.control.table;
import org.openslx.bwlp.thrift.iface.LdapFilter;
+import org.openslx.dozmod.gui.helper.I18n;
@SuppressWarnings("serial")
public class LectureLdapFilterTable extends CheckListTable<LdapFilter> {
- public static final ListTableColumn COL_TITLE = new ListTableColumn("Name");
- public static final ListTableColumn COL_ATTRIBUTE = new ListTableColumn("Attribut");
- public static final ListTableColumn COL_VALUE = new ListTableColumn("Wert");
+ public static final ListTableColumn COL_TITLE = new ListTableColumn(
+ I18n.CONTROL.getString("LectureLdapFilterTable.ListTableColumn.title.colName"));
+ public static final ListTableColumn COL_ATTRIBUTE = new ListTableColumn(
+ I18n.CONTROL.getString("LectureLdapFilterTable.ListTableColumn.attribute.colName"));
+ public static final ListTableColumn COL_VALUE = new ListTableColumn(
+ I18n.CONTROL.getString("LectureLdapFilterTable.ListTableColumn.value.colName"));
public LectureLdapFilterTable() {
super(COL_TITLE, COL_ATTRIBUTE, COL_VALUE);
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/LecturePermissionTable.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/LecturePermissionTable.java
index 9d8bd2a3..294123f8 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/LecturePermissionTable.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/LecturePermissionTable.java
@@ -2,15 +2,19 @@ package org.openslx.dozmod.gui.control.table;
import org.openslx.bwlp.thrift.iface.LecturePermissions;
import org.openslx.dozmod.gui.control.table.LecturePermissionTable.UserLecturePermissions;
+import org.openslx.dozmod.gui.helper.I18n;
import org.openslx.dozmod.thrift.cache.UserCache;
import org.openslx.dozmod.util.FormatHelper;
@SuppressWarnings("serial")
public class LecturePermissionTable extends ListTable<UserLecturePermissions> {
- public static final ListTableColumn COL_USER = new ListTableColumn("Benutzer");
- public static final ListTableColumn COL_EDIT = new ListTableColumn("Bearbeiten", Boolean.class);
- public static final ListTableColumn COL_ADMIN = new ListTableColumn("Admin", Boolean.class);
+ public static final ListTableColumn COL_USER = new ListTableColumn(
+ I18n.CONTROL.getString("LecturePermissionTable.ListTableColumn.user.colName"));
+ public static final ListTableColumn COL_EDIT = new ListTableColumn(
+ I18n.CONTROL.getString("LecturePermissionTable.ListTableColumn.edit.colName"), Boolean.class);
+ public static final ListTableColumn COL_ADMIN = new ListTableColumn(
+ I18n.CONTROL.getString("LecturePermissionTable.ListTableColumn.admin.colName"), Boolean.class);
public LecturePermissionTable() {
super(COL_USER, COL_EDIT, COL_ADMIN);
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/LectureTable.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/LectureTable.java
index 054e94fc..46cf9552 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/LectureTable.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/LectureTable.java
@@ -8,6 +8,7 @@ import javax.swing.UIManager;
import org.openslx.bwlp.thrift.iface.LectureSummary;
import org.openslx.dozmod.gui.helper.ColorUtil;
+import org.openslx.dozmod.gui.helper.I18n;
import org.openslx.dozmod.thrift.Session;
import org.openslx.dozmod.thrift.Sorters;
import org.openslx.dozmod.thrift.cache.UserCache;
@@ -16,12 +17,18 @@ import org.openslx.dozmod.util.FormatHelper;
@SuppressWarnings("serial")
public class LectureTable extends ListTable<LectureSummary> {
- public static final ListTableColumn COL_NAME = new ListTableColumn("Name");
- public static final ListTableColumn COL_OWNER = new ListTableColumn("Besitzer", Sorters.userNameById);
- public static final ListTableColumn COL_STARTTIME = new ListTableColumn("Startdatum", Long.class);
- public static final ListTableColumn COL_ENDTIME = new ListTableColumn("Ablaufdatum", Long.class);
- public static final ListTableColumn COL_ENABLED = new ListTableColumn("Aktiviert", Boolean.class);
- public static final ListTableColumn COL_VALID = new ListTableColumn("VM gültig", Boolean.class);
+ public static final ListTableColumn COL_NAME = new ListTableColumn(
+ I18n.CONTROL.getString("LectureTable.ListTableColumn.name.colName"));
+ public static final ListTableColumn COL_OWNER = new ListTableColumn(
+ I18n.CONTROL.getString("LectureTable.ListTableColumn.owner.colName"), Sorters.userNameById);
+ public static final ListTableColumn COL_STARTTIME = new ListTableColumn(
+ I18n.CONTROL.getString("LectureTable.ListTableColumn.startTime.colName"), Long.class);
+ public static final ListTableColumn COL_ENDTIME = new ListTableColumn(
+ I18n.CONTROL.getString("LectureTable.ListTableColumn.endTime.colName"), Long.class);
+ public static final ListTableColumn COL_ENABLED = new ListTableColumn(
+ I18n.CONTROL.getString("LectureTable.ListTableColumn.enabled.colName"), Boolean.class);
+ public static final ListTableColumn COL_VALID = new ListTableColumn(
+ I18n.CONTROL.getString("LectureTable.ListTableColumn.valid.colName"), Boolean.class);
private final Font boldFont;
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/NetshareTable.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/NetshareTable.java
index 30994eae..3eb56748 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/NetshareTable.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/NetshareTable.java
@@ -3,19 +3,25 @@ package org.openslx.dozmod.gui.control.table;
import org.openslx.bwlp.thrift.iface.NetShare;
import org.openslx.bwlp.thrift.iface.NetShareAuth;
import org.openslx.dozmod.gui.configurator.NetshareConfigurator;
+import org.openslx.dozmod.gui.helper.I18n;
import org.openslx.dozmod.thrift.Sorters;
import org.openslx.dozmod.util.FormatHelper;
@SuppressWarnings("serial")
public class NetshareTable extends CheckListTable<NetShare> {
- public static final ListTableColumn COL_NAME = new ListTableColumn("Name");
- public static final ListTableColumn COL_MOUNT = new ListTableColumn("Ziel");
- public static final ListTableColumn COL_PATH = new ListTableColumn("Pfad");
- public static final ListTableColumn COL_AUTH = new ListTableColumn("Authentifizierung",
- Sorters.netShareAuth);
- public static final ListTableColumn COL_USER = new ListTableColumn("Username");
- public static final ListTableColumn COL_PASSWORD = new ListTableColumn("Passwort");
+ public static final ListTableColumn COL_NAME = new ListTableColumn(
+ I18n.CONTROL.getString("NetShareTable.ListTableColumn.name.colName"));
+ public static final ListTableColumn COL_MOUNT = new ListTableColumn(
+ I18n.CONTROL.getString("NetShareTable.ListTableColumn.mount.colName"));
+ public static final ListTableColumn COL_PATH = new ListTableColumn(
+ I18n.CONTROL.getString("NetShareTable.ListTableColumn.path.colName"));
+ public static final ListTableColumn COL_AUTH = new ListTableColumn(
+ I18n.CONTROL.getString("NetShareTable.ListTableColumn.auth.colName"), Sorters.netShareAuth);
+ public static final ListTableColumn COL_USER = new ListTableColumn(
+ I18n.CONTROL.getString("NetShareTable.ListTableColumn.user.colName"));
+ public static final ListTableColumn COL_PASSWORD = new ListTableColumn(
+ I18n.CONTROL.getString("NetShareTable.ListTableColumn.password.colName"));
public NetshareTable() {
super(COL_NAME, COL_PATH, COL_MOUNT, COL_AUTH, COL_USER, COL_PASSWORD);
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/UserTable.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/UserTable.java
index b227916e..000384fa 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/UserTable.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/UserTable.java
@@ -1,13 +1,16 @@
package org.openslx.dozmod.gui.control.table;
import org.openslx.bwlp.thrift.iface.UserInfo;
+import org.openslx.dozmod.gui.helper.I18n;
import org.openslx.dozmod.util.FormatHelper;
@SuppressWarnings("serial")
public class UserTable extends ListTable<UserInfo> {
- public static final ListTableColumn COL_NAME = new ListTableColumn("Name");
- public static final ListTableColumn COL_MAIL = new ListTableColumn("Mail");
+ public static final ListTableColumn COL_NAME = new ListTableColumn(
+ I18n.CONTROL.getString("UserTable.ListTableColumn.name.colName"));
+ public static final ListTableColumn COL_MAIL = new ListTableColumn(
+ I18n.CONTROL.getString("UserTable.ListTableColumn.mail.colName"));
public UserTable() {
super(COL_NAME, COL_MAIL);
diff --git a/dozentenmodul/src/main/properties/i18n/control.properties b/dozentenmodul/src/main/properties/i18n/control.properties
new file mode 100644
index 00000000..bbb24041
--- /dev/null
+++ b/dozentenmodul/src/main/properties/i18n/control.properties
@@ -0,0 +1,76 @@
+# ImagePermissionTable
+ImagePermissionTable.ListTableColumn.user.colName=Benutzer
+ImagePermissionTable.ListTableColumn.link.colName=Verlinken
+ImagePermissionTable.ListTableColumn.download.colName=Download
+ImagePermissionTable.ListTableColumn.edit.colName=Bearbeiten
+ImagePermissionTable.ListTableColumn.admin.colName=Admin
+
+# ImagePublishedTable
+ImagePublishedTable.ListTableColumn.name.colName=Name
+ImagePublishedTable.ListTableColumn.OS.colName=OS
+ImagePublishedTable.ListTableColumn.owner.colName=Besitzer
+ImagePublishedTable.ListTableColumn.uploader.colName=Hochgeladen von
+ImagePublishedTable.ListTableColumn.organization.colName=Organisation
+
+# ImageTable
+ImageTable.ListTableColumn.template.colName=Vorlage
+ImageTable.ListTableColumn.usable.colName=Verwendbar
+ImageTable.ListTableColumn.size.colName=Größe
+ImageTable.ListTableColumn.lastChange.colName=Geändert
+ImageTable.ListTableColumn.expiring.colName=Ablaufdatum
+ImageTable.ListTableColumn.owner.colName=Besitzer
+ImageTable.ListTableColumn.OS.colName=OS
+ImageTable.ListTableColumn.name.colName=Name
+ImageTable.ListTableColumn.hypervisor.colName=
+ImageTable.ListTableColumn.versionCount.colName=Versionen
+ImageTable.ListTableColumn.totalSize.colName=Gesamtgröße
+
+# ImageVersionTable
+ImageVersionTable.ListTableColumn.created.colName=Erstellungszeitpunkt
+ImageVersionTable.ListTableColumn.expiring.colName=Ablaufszeitpunkt
+ImageVersionTable.ListTableColumn.uploader.colName=Ersteller
+ImageVersionTable.ListTableColumn.valid.colName=Verwendbar
+ImageVersionTable.ListTableColumn.size.colName=Größe
+ImageVersionTable.ListTableColumn.ID.colName=Interne ID
+
+# LectureLdapFilterTable
+LectureLdapFilterTable.ListTableColumn.title.colName=Name
+LectureLdapFilterTable.ListTableColumn.attribute.colName=Attribut
+LectureLdapFilterTable.ListTableColumn.value.colName=Wert
+
+# LecturePermissionTable
+LecturePermissionTable.ListTableColumn.user.colName=Benutzer
+LecturePermissionTable.ListTableColumn.edit.colName=Bearbeiten
+LecturePermissionTable.ListTableColumn.admin.colName=Admin
+
+# LectureTable
+LectureTable.ListTableColumn.name.colName=Name
+LectureTable.ListTableColumn.owner.colName=Besitzer
+LectureTable.ListTableColumn.startTime.colName=Startdatum
+LectureTable.ListTableColumn.endTime.colName=Ablaufdatum
+LectureTable.ListTableColumn.enabled.colName=Aktiviert
+LectureTable.ListTableColumn.valid.colName=VM gültig
+
+# NetShareTable
+NetShareTable.ListTableColumn.name.colName=Name
+NetShareTable.ListTableColumn.mount.colName=Ziel
+NetShareTable.ListTableColumn.path.colName=Pfad
+NetShareTable.ListTableColumn.auth.colName=Authentifizierung
+NetShareTable.ListTableColumn.user.colName=Username
+NetShareTable.ListTableColumn.password.colName=Passwort
+
+# UserTable
+UserTable.ListTableColumn.name.colName=Name
+UserTable.ListTableColumn.mail.colName=Mail
+
+# ImageListViewer
+ImageListViewer.FilterType.all=Alle anzeigen
+ImageListViewer.FilterType.own=Nur eigene/zugewiesene anzeigen
+ImageListViewer.FilterType.usable=Nur verwendbare/linkbare anzeigen
+ImageListViewer.FilterType.editable=Nur editierbare anzeigen
+ImageListViewer.FilterType.templates=Nur Vorlagen zeigen
+ImageListViewer.TitledBorder.filterPanel.title=Suchen
+ImageListViewer.Label.imageCount.text=Sichtbar:
+
+# PersonLabel
+PersonLabel.Label.toolTipText=Klicken, um eine Mail an diese Person zu senden \ No newline at end of file
diff --git a/dozentenmodul/src/main/properties/i18n/control_en_US.properties b/dozentenmodul/src/main/properties/i18n/control_en_US.properties
new file mode 100644
index 00000000..674bf6d7
--- /dev/null
+++ b/dozentenmodul/src/main/properties/i18n/control_en_US.properties
@@ -0,0 +1,76 @@
+# ImagePermissionTable
+ImagePermissionTable.ListTableColumn.user.colName=User
+ImagePermissionTable.ListTableColumn.link.colName=Link
+ImagePermissionTable.ListTableColumn.download.colName=Download
+ImagePermissionTable.ListTableColumn.edit.colName=Edit
+ImagePermissionTable.ListTableColumn.admin.colName=Admin
+
+# ImagePublishedTable
+ImagePublishedTable.ListTableColumn.name.colName=Name
+ImagePublishedTable.ListTableColumn.OS.colName=OS
+ImagePublishedTable.ListTableColumn.owner.colName=Owner
+ImagePublishedTable.ListTableColumn.uploader.colName=Uploaded by
+ImagePublishedTable.ListTableColumn.organization.colName=Organization
+
+# ImageTable
+ImageTable.ListTableColumn.template.colName=Template
+ImageTable.ListTableColumn.usable.colName=Usable
+ImageTable.ListTableColumn.size.colName=Size
+ImageTable.ListTableColumn.lastChange.colName=Last change
+ImageTable.ListTableColumn.expiring.colName=Expiring
+ImageTable.ListTableColumn.owner.colName=Owner
+ImageTable.ListTableColumn.OS.colName=OS
+ImageTable.ListTableColumn.name.colName=Name
+ImageTable.ListTableColumn.hypervisor.colName=
+ImageTable.ListTableColumn.versionCount.colName=Version count
+ImageTable.ListTableColumn.totalSize.colName=Total size
+
+# ImageVersionTable
+ImageVersionTable.ListTableColumn.created.colName=Creation date
+ImageVersionTable.ListTableColumn.expiring.colName=Expiry date
+ImageVersionTable.ListTableColumn.uploader.colName=Created by
+ImageVersionTable.ListTableColumn.valid.colName=Usable
+ImageVersionTable.ListTableColumn.size.colName=Size
+ImageVersionTable.ListTableColumn.ID.colName=Internal ID
+
+# LectureLdapFilterTable
+LectureLdapFilterTable.ListTableColumn.title.colName=Name
+LectureLdapFilterTable.ListTableColumn.attribute.colName=Attribute
+LectureLdapFilterTable.ListTableColumn.value.colName=Value
+
+# LecturePermissionTable
+LecturePermissionTable.ListTableColumn.user.colName=User
+LecturePermissionTable.ListTableColumn.edit.colName=Edit
+LecturePermissionTable.ListTableColumn.admin.colName=Admin
+
+# LectureTable
+LectureTable.ListTableColumn.name.colName=Name
+LectureTable.ListTableColumn.owner.colName=Owner
+LectureTable.ListTableColumn.startTime.colName=Start date
+LectureTable.ListTableColumn.endTime.colName=Expiry date
+LectureTable.ListTableColumn.enabled.colName=Activated
+LectureTable.ListTableColumn.valid.colName=VM valid
+
+# NetShareTable
+NetShareTable.ListTableColumn.name.colName=Name
+NetShareTable.ListTableColumn.mount.colName=Target
+NetShareTable.ListTableColumn.path.colName=Path
+NetShareTable.ListTableColumn.auth.colName=Authentication
+NetShareTable.ListTableColumn.user.colName=Username
+NetShareTable.ListTableColumn.password.colName=Password
+
+# UserTable
+UserTable.ListTableColumn.name.colName=Name
+UserTable.ListTableColumn.mail.colName=Mail
+
+# ImageListViewer
+ImageListViewer.FilterType.all=Show all
+ImageListViewer.FilterType.own=Show only own/assigned ones
+ImageListViewer.FilterType.usable=Show usable/linkable only
+ImageListViewer.FilterType.editable=Show editable only
+ImageListViewer.FilterType.templates=Show templates only
+ImageListViewer.TitledBorder.filterPanel.title=Search
+ImageListViewer.Label.imageCount.text=Visible:
+
+# PersonLabel
+PersonLabel.Label.toolTipText=Click to send a mail to this person \ No newline at end of file