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/NotAllSignedWarningPane.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/NotAllSignedWarningPane.java')
-rw-r--r-- | netx/net/sourceforge/jnlp/security/NotAllSignedWarningPane.java | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/netx/net/sourceforge/jnlp/security/NotAllSignedWarningPane.java b/netx/net/sourceforge/jnlp/security/NotAllSignedWarningPane.java index 7210a89..6e5b56f 100644 --- a/netx/net/sourceforge/jnlp/security/NotAllSignedWarningPane.java +++ b/netx/net/sourceforge/jnlp/security/NotAllSignedWarningPane.java @@ -37,6 +37,8 @@ exception statement from your version. package net.sourceforge.jnlp.security; +import static net.sourceforge.jnlp.runtime.Translator.R; + import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; @@ -67,13 +69,9 @@ public class NotAllSignedWarningPane extends SecurityDialogPanel { private void addComponents() { JNLPFile file = parent.getFile(); - String topLabelText = "Only parts of this application code are signed."; - String infoLabelText = "This application contains both signed and" + - " unsigned code. While signed code is safe if you trust the " + - "provider, unsigned code may imply code outside of the trusted " + - "provider's control."; - String questionLabelText = "Do you wish to proceed and run this " + - "application anyway?"; + String topLabelText = R("SNotAllSignedSummary"); + String infoLabelText = R("SNotAllSignedDetail"); + String questionLabelText = R("SNotAllSignedQuestion"); ImageIcon icon = new ImageIcon((new sun.misc.Launcher()).getClassLoader().getResource("net/sourceforge/jnlp/resources/warning.png")); JLabel topLabel = new JLabel(htmlWrap(topLabelText), icon, SwingConstants.LEFT); @@ -100,8 +98,8 @@ public class NotAllSignedWarningPane extends SecurityDialogPanel { //run and cancel buttons JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT)); - JButton run = new JButton("Proceed"); - JButton cancel = new JButton("Cancel"); + JButton run = new JButton(R("ButProceed")); + JButton cancel = new JButton(R("ButCancel")); run.addActionListener(createSetValueListener(parent,0)); cancel.addActionListener(createSetValueListener(parent, 1)); initialFocusComponent = cancel; |