diff options
author | Mürsel Türk | 2020-07-07 12:00:51 +0200 |
---|---|---|
committer | Mürsel Türk | 2020-07-07 12:00:51 +0200 |
commit | e68f899d378038253950a0f263fe538b5ac656c2 (patch) | |
tree | 54950ca36046153607f26a23e6d2bd46b079e828 /dozentenmodul/src/main/java/org/openslx/dozmod/gui/activity/UpdatePanel.java | |
parent | [client] increase min height of vm configurator (diff) | |
download | tutor-module-e68f899d378038253950a0f263fe538b5ac656c2.tar.gz tutor-module-e68f899d378038253950a0f263fe538b5ac656c2.tar.xz tutor-module-e68f899d378038253950a0f263fe538b5ac656c2.zip |
[client] Add resource bundle files for activity classes. Update the activity classes accordingly.
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/activity/UpdatePanel.java')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/activity/UpdatePanel.java | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/activity/UpdatePanel.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/activity/UpdatePanel.java index 41b53302..4c4c392b 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/activity/UpdatePanel.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/activity/UpdatePanel.java @@ -11,6 +11,7 @@ import javax.swing.SwingUtilities; import org.openslx.dozmod.gui.Gui; import org.openslx.dozmod.gui.control.QLabel; +import org.openslx.dozmod.gui.helper.I18n; import org.openslx.dozmod.gui.window.CheckUpdateWindow; import org.openslx.dozmod.util.DesktopEnvironment; import org.openslx.dozmod.util.DesktopEnvironment.Link; @@ -40,12 +41,16 @@ public class UpdatePanel extends ActivityPanel implements ActionListener { // Header: Neue Version verfügbar: <newVersion> [Button] header = new JPanel(); header.setLayout(new BoxLayout(header, BoxLayout.LINE_AXIS)); - lblInfo = new QLabel("Neue Version verfügbar: " + newVersion, Gui.getScaledIconResource("/img/upload-icon.png", "!", 32, this), QLabel.LEFT); + lblInfo = new QLabel(I18n.ACTIVITY.getString("UpdatePanel.Label.info.text", newVersion), + Gui.getScaledIconResource("/img/upload-icon.png", "!", 32, this), QLabel.LEFT); header.add(lblInfo); header.add(Box.createHorizontalGlue()); - btnLink = new JButton("Im Browser öffnen", Gui.getScaledIconResource("/img/download-icon.png", "!", 24, this)); - btnDetails = new JButton("Changelog", Gui.getScaledIconResource("/img/info-icon.png", "?", 24, this)); - btnClose = new JButton("Schließen", Gui.getScaledIconResource("/img/delete-icon.png", "X", 24, this)); + btnLink = new JButton(I18n.ACTIVITY.getString("UpdatePanel.Button.link.text"), + Gui.getScaledIconResource("/img/download-icon.png", "!", 24, this)); + btnDetails = new JButton(I18n.ACTIVITY.getString("UpdatePanel.Button.details.text"), + Gui.getScaledIconResource("/img/info-icon.png", "?", 24, this)); + btnClose = new JButton(I18n.ACTIVITY.getString("UpdatePanel.Button.close.text"), + Gui.getScaledIconResource("/img/delete-icon.png", "X", 24, this)); btnLink.addActionListener(this); btnClose.addActionListener(this); header.add(btnLink); |