From ec49901d9f4844acd69a51ebc0c7fa548be70ff3 Mon Sep 17 00:00:00 2001 From: Omair Majid <omajid@redhat.com> Date: Wed, 10 Nov 2010 16:24:53 -0500 Subject: move a number of translatable string from code into Messages.properties 2010-11-09 Omair Majid <omajid@redhat.com> * 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. --- .../jnlp/security/NotAllSignedWarningPane.java | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'netx/net/sourceforge/jnlp/security/NotAllSignedWarningPane.java') 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; -- cgit v1.2.3