diff options
author | Omair Majid <[email protected]> | 2010-11-10 16:24:53 -0500 |
---|---|---|
committer | Omair Majid <[email protected]> | 2010-11-10 16:24:53 -0500 |
commit | ec49901d9f4844acd69a51ebc0c7fa548be70ff3 (patch) | |
tree | 52bfaffa7e5b9b6184f218c48a0e87fc6231b425 /netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java | |
parent | 1f3bdce4f5d05c89f7f7a8ee53f0bbbc0098c963 (diff) |
move a number of translatable string from code into Messages.properties
2010-11-09 Omair Majid <[email protected]>
* netx/net/sourceforge/jnlp/resources/Messages.properties: Add
ButAllow, ButClose, ButCopy, ButMoreInformation, ButProceed,
ButRun, AlwaysAllowAction, Continue, Field, From, Name, Publisher,
Value, Version, SNoAssociatedCertificate, SAlwaysTrustPublisher,
SHttpsUnverified, SNotAllSignedSummary, SNotAllSignedDetail,
SNotAllSignedQuestion, SCertificateDetails, SIssuer, SSerial,
SMD5Fingerprint, SSHA1Fingerprint, SSignature, SSignatureAlgorithm,
SSubject, SValidity, CVCertificateViewer, CVDetails, CVIssuedTo,
CVExport, CVImport, CVIssuedBy, IssuedTo, CVRemove,
CVRemoveConfirmMessage,CVRemoveConfirmTitle, CVUser, CVSystem,
KS, KSCerts, KSJsseCerts, KSCaCerts, KSJsseCaCerts, and
KSClientCerts.
* netx/net/sourceforge/jnlp/security/AccessWarningPane.java
(addComponents): Use localized strings.
* netx/net/sourceforge/jnlp/security/CertWarningPane.java
(addComponents): Likewise.
* netx/net/sourceforge/jnlp/security/CertsInfoPane.java
(parseCert): Likewise.
(addComponents): Likewise.
* netx/net/sourceforge/jnlp/security/MoreInfoPane.java
(addComponents): Likewise.
* netx/net/sourceforge/jnlp/security/NotAllSignedWarningPane.java
(addComponents): Likewise.
* netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java:
Likewise.
(addComponents): Likewise.
(CertificateType.toString): Likewise.
(RemoveButtonListener.actionPerformed): Likewise.
Diffstat (limited to 'netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java')
-rw-r--r-- | netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java b/netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java index 0bb01f4..d0ac050 100644 --- a/netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java +++ b/netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java @@ -37,6 +37,8 @@ exception statement from your version. package net.sourceforge.jnlp.security.viewer; +import static net.sourceforge.jnlp.runtime.Translator.R; + import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.FlowLayout; @@ -88,7 +90,7 @@ public class CertificatePane extends JPanel { * "Issued To" and "Issued By" string pairs for certs. */ private String[][] issuedToAndBy = null; - private final String[] columnNames = { "Issued To", "Issued By" }; + private final String[] columnNames = { R("CVIssuedTo"), R("CVIssuedBy") }; private final CertificateType[] certificateTypes = new CertificateType[] { new CertificateType(KeyStores.Type.CA_CERTS), @@ -187,13 +189,13 @@ public class CertificatePane extends JPanel { systemTablePane.setBorder(BorderFactory.createEmptyBorder(10,10,10,10)); tabbedPane = new JTabbedPane(); - tabbedPane.addTab("User", userTablePane); - tabbedPane.addTab("System", systemTablePane); + tabbedPane.addTab(R("CVUser"), userTablePane); + tabbedPane.addTab(R("CVSystem"), systemTablePane); tabbedPane.addChangeListener(new TabChangeListener()); JPanel buttonPanel = new JPanel(new FlowLayout()); - String[] buttonNames = {"Import", "Export", "Remove", "Details"}; + String[] buttonNames = {R("CVImport"), R("CVExport"), R("CVRemove"), R("CVDetails")}; char[] buttonMnemonics = { KeyEvent.VK_I, KeyEvent.VK_E, KeyEvent.VK_M, @@ -228,7 +230,7 @@ public class CertificatePane extends JPanel { JPanel closePanel = new JPanel(new BorderLayout()); closePanel.setBorder(BorderFactory.createEmptyBorder(7,7,7,7)); - JButton closeButton = new JButton("Close"); + JButton closeButton = new JButton(R("ButClose")); closeButton.addActionListener(new CloseButtonListener()); defaultFocusComponent = closeButton; closePanel.add(closeButton, BorderLayout.EAST); @@ -308,7 +310,7 @@ public class CertificatePane extends JPanel { } public String toString() { - return KeyStores.toTranslatableString(null, type); + return KeyStores.toDisplayableString(null, type); } } @@ -430,8 +432,8 @@ public class CertificatePane extends JPanel { if (alias != null) { int i = JOptionPane.showConfirmDialog(parent, - "Are you sure you want to remove the selected certificate?", - "Confirmation - Remove Certificate?", + R("CVRemoveConfirmMessage"), + R("CVRemoveConfirmTitle"), JOptionPane.YES_NO_OPTION); if (i == 0) { keyStore.deleteEntry(alias); |