From 65097e6336be5f761f5c50ed05b7ea12f33622a5 Mon Sep 17 00:00:00 2001 From: Stephan Schwär Date: Thu, 4 Feb 2021 13:00:09 +0900 Subject: [client] Add translations for ImageTypePageLayout --- .../dozmod/gui/wizard/layout/ImageTypePageLayout.java | 18 +++++++----------- .../src/main/properties/i18n/page_layout.properties | 11 +++++++++++ .../main/properties/i18n/page_layout_de_DE.properties | 12 ++++++++++++ 3 files changed, 30 insertions(+), 11 deletions(-) diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/layout/ImageTypePageLayout.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/layout/ImageTypePageLayout.java index 7dac1103..c9f3bf34 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/layout/ImageTypePageLayout.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/layout/ImageTypePageLayout.java @@ -1,6 +1,7 @@ package org.openslx.dozmod.gui.wizard.layout; import org.openslx.dozmod.gui.helper.GridManager; +import org.openslx.dozmod.gui.helper.I18n; import org.openslx.dozmod.gui.wizard.Wizard; import org.openslx.dozmod.gui.wizard.WizardPage; @@ -17,33 +18,28 @@ public abstract class ImageTypePageLayout extends WizardPage { */ public ImageTypePageLayout(Wizard wizard) { - super(wizard, "Wähle Image Type"); - setDescription("Möchten Sie eine VM oder ein Docker Image definieren?"); + super(wizard, I18n.PAGE_LAYOUT.getString("ImageTypePageLayout.WizardPage.title")); + setDescription(I18n.PAGE_LAYOUT.getString("ImageTypePageLayout.WizardPage.description")); GridManager grid = new GridManager(this, 4, false); // Choose between new vm or new docker-image txtInfoText = new JTextArea(); - txtInfoText.setBorder(BorderFactory.createTitledBorder("Hinweis")); + txtInfoText.setBorder(BorderFactory.createTitledBorder(I18n.PAGE_LAYOUT.getString("ImageTypePageLayout.newVmInformation.border"))); txtInfoText.setLineWrap(true); txtInfoText.setWrapStyleWord(true); txtInfoText.setEditable(false); txtInfoText.setFocusable(false); txtInfoText.setOpaque(false); - txtInfoText.setText("Hier haben Sie die Möglichkeit ein neues Image als VM oder Container (Docker) " - + "zu definieren.\n\n" - + "Sie besitzen derzeit eine Entwicklungsstand der bwLehrpool Suite, in der sämtliche " - + "Funktionalitäten zur Erstellung und Verwaltung von Container Images in Entwicklung sind. " - + "Diese Funktionen können sich in späteren Versionen ändern und somit ihre erstellten Images " - + "inkompatibel machen."); + txtInfoText.setText(I18n.PAGE_LAYOUT.getString("ImageTypePageLayout.newVmInformation.text")); grid.add(txtInfoText, 4).fill(true, false).expand(true, false); grid.nextRow(); grid.nextRow(); // -- New VM Pick-- - btnNewVmImage = new JButton("New VM"); + btnNewVmImage = new JButton(I18n.PAGE_LAYOUT.getString("ImageTypePageLayout.button.newVM")); grid.add(btnNewVmImage, 2, 2).fill(true, true).expand(true, true); // -- New Docker-Image Pick-- - btnNewDockerImage = new JButton("new Docker-Image"); + btnNewDockerImage = new JButton(I18n.PAGE_LAYOUT.getString("ImageTypePageLayout.button.newDocker")); grid.add(btnNewDockerImage, 2, 2).fill(true, true).expand(true, true); grid.finish(false); diff --git a/dozentenmodul/src/main/properties/i18n/page_layout.properties b/dozentenmodul/src/main/properties/i18n/page_layout.properties index ab5f74bd..ce8b6dc9 100644 --- a/dozentenmodul/src/main/properties/i18n/page_layout.properties +++ b/dozentenmodul/src/main/properties/i18n/page_layout.properties @@ -10,6 +10,17 @@ ImageCustomPermission.CheckBox.permissionRead.text=Download ImageCustomPermission.CheckBox.permissionEdit.text=Edit ImageCustomPermission.CheckBox.permissionAdmin.text=Admin +# ImageTypePageLayout +ImageTypePageLayout.WizardPage.title=Choose Image Type +ImageTypePageLayout.WizardPage.description=Do you want to create a Virtual Machine of Docker Image +ImageTypePageLayout.newVmInformation.border=Information +ImageTypePageLayout.newVmInformation.text=Here you can define and upload a new virtual machine or docker container.\n\n\ + The creation of docker images is still in a developing state. \ + The creation and management of docker containers may therefore change in the future and containers you upload now may \ + or may not work in the future. +ImageTypePageLayout.button.newVM=New Virtual Machine +ImageTypePageLayout.button.newDocker=New Docker Image + # ImageMetaDataPageLayout ImageMetaData.WizardPage.title=Metadata ImageMetaData.WizardPage.description=Please enter a meaningful name for the new VM. diff --git a/dozentenmodul/src/main/properties/i18n/page_layout_de_DE.properties b/dozentenmodul/src/main/properties/i18n/page_layout_de_DE.properties index 170436b8..c1aa6650 100644 --- a/dozentenmodul/src/main/properties/i18n/page_layout_de_DE.properties +++ b/dozentenmodul/src/main/properties/i18n/page_layout_de_DE.properties @@ -10,6 +10,18 @@ ImageCustomPermission.CheckBox.permissionRead.text=Download ImageCustomPermission.CheckBox.permissionEdit.text=Bearbeiten ImageCustomPermission.CheckBox.permissionAdmin.text=Admin +# ImageTypePageLayout +ImageTypePageLayout.WizardPage.title=Wähle Image Type +ImageTypePageLayout.WizardPage.description=Möchten Sie eine VM oder ein Docker Image definieren? +ImageTypePageLayout.newVmInformation.border=Hinweis +ImageTypePageLayout.newVmInformation.text=Hier haben Sie die Möglichkeit ein neues Image als VM oder Container (Docker) zu definieren.\n\n\ + Sie besitzen derzeit eine Entwicklungsstand der bwLehrpool Suite, in der sämtliche\ + Funktionalitäten zur Erstellung und Verwaltung von Container Images in Entwicklung sind.\ + Diese Funktionen können sich in späteren Versionen ändern und somit ihre erstellten Images\ + inkompatibel machen. +ImageTypePageLayout.button.newVM=Neue Virtuele Maschine +ImageTypePageLayout.button.newDocker=Neues Docker Image + # ImageMetaDataPageLayout ImageMetaData.WizardPage.title=Metadaten ImageMetaData.WizardPage.description=Geben Sie bitte einen aussagekräftigen Namen für die neue VM ein. -- cgit v1.2.3-55-g7522