Added German translation

This commit is contained in:
mmk2410 2015-02-15 23:01:03 +01:00
parent 60b56a5b25
commit 39c83a7a38
8 changed files with 269 additions and 102 deletions

View file

@ -32,8 +32,10 @@ import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JLabel;
import javax.swing.border.TitledBorder;
import java.util.ResourceBundle;
public class About extends JDialog {
private static final ResourceBundle BUNDLE = ResourceBundle.getBundle("de.marcel_kapfer.c.morseconverter.strings"); //$NON-NLS-1$
/**
*
@ -68,48 +70,48 @@ public class About extends JDialog {
contentPanel.setLayout(null);
JPanel panel = new JPanel();
panel.setBorder(new TitledBorder(null, "About", TitledBorder.LEADING, TitledBorder.TOP, null, null));
panel.setBorder(new TitledBorder(null, BUNDLE.getString("About.panel.borderTitle"), TitledBorder.LEADING, TitledBorder.TOP, null, null)); //$NON-NLS-1$
panel.setBounds(5, 17, 436, 148);
contentPanel.add(panel);
panel.setLayout(null);
JLabel lblDeveloper = new JLabel("Marcel Kapfer");
JLabel lblDeveloper = new JLabel(BUNDLE.getString("About.lblDeveloper.text")); //$NON-NLS-1$
lblDeveloper.setBounds(124, 17, 307, 15);
panel.add(lblDeveloper);
JLabel lblDev = new JLabel("Developer");
JLabel lblDev = new JLabel(BUNDLE.getString("About.lblDev.text")); //$NON-NLS-1$
lblDev.setBounds(12, 17, 100, 15);
panel.add(lblDev);
JLabel lblWeb = new JLabel("Website");
JLabel lblWeb = new JLabel(BUNDLE.getString("About.lblWeb.text")); //$NON-NLS-1$
lblWeb.setBounds(12, 44, 100, 15);
panel.add(lblWeb);
JLabel lblCont = new JLabel("Contact");
JLabel lblCont = new JLabel(BUNDLE.getString("About.lblCont.text")); //$NON-NLS-1$
lblCont.setBounds(12, 71, 100, 15);
panel.add(lblCont);
JLabel lblVer = new JLabel("Version");
JLabel lblVer = new JLabel(BUNDLE.getString("About.lblVer.text")); //$NON-NLS-1$
lblVer.setBounds(12, 98, 100, 15);
panel.add(lblVer);
JLabel lblLic = new JLabel("License");
JLabel lblLic = new JLabel(BUNDLE.getString("About.lblLic.text")); //$NON-NLS-1$
lblLic.setBounds(12, 125, 100, 15);
panel.add(lblLic);
JLabel lblWebsite = new JLabel("marcel-kapfer.de/projects/morse");
JLabel lblWebsite = new JLabel(BUNDLE.getString("About.lblWebsite.text")); //$NON-NLS-1$
lblWebsite.setBounds(124, 44, 307, 15);
panel.add(lblWebsite);
JLabel lblContact = new JLabel("marcelmichaelkapfer@yahoo.co.nz");
JLabel lblContact = new JLabel(BUNDLE.getString("About.lblContact.text")); //$NON-NLS-1$
lblContact.setBounds(124, 71, 307, 15);
panel.add(lblContact);
JLabel lblVersion = new JLabel("1.0.2");
JLabel lblVersion = new JLabel(BUNDLE.getString("About.lblVersion.text")); //$NON-NLS-1$
lblVersion.setBounds(124, 98, 307, 15);
panel.add(lblVersion);
JLabel lblLicense = new JLabel("GNU v3.0");
JLabel lblLicense = new JLabel(BUNDLE.getString("About.lblLicense.text")); //$NON-NLS-1$
lblLicense.setBounds(124, 125, 307, 15);
panel.add(lblLicense);
{
@ -117,14 +119,14 @@ public class About extends JDialog {
buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
getContentPane().add(buttonPane, BorderLayout.SOUTH);
{
JButton cancelButton = new JButton("Close");
JButton cancelButton = new JButton(BUNDLE.getString("About.cancelButton.text")); //$NON-NLS-1$
cancelButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
setVisible(false);
dispose();
}
});
cancelButton.setActionCommand("Cancel");
cancelButton.setActionCommand(BUNDLE.getString("About.cancelButton.actionCommand")); //$NON-NLS-1$
buttonPane.add(cancelButton);
}
}