Missed one i18n string.

fix-message-formatting
Markus Kilås 11 years ago
parent 8317166f2f
commit dfa09c310f

@ -720,6 +720,7 @@ identity cannot<br> be automatically verified. \
Do you want to continue connecting?<br><br> \
For more information, click "Show Certificate".</html>
service.gui.CONTINUE_ANYWAY=Continue anyway
service.gui.CERT_INFO_CHAIN=Certificate Chain:
service.gui.CERT_INFO_ISSUED_TO=Issued To
service.gui.CERT_INFO_CN=Common Name:
service.gui.CERT_INFO_O=Organization:

@ -33,6 +33,9 @@ public class X509CertificatePanel
private final JEditorPane infoTextPane = new JEditorPane();
private final ResourceManagementService R
= DesktopUtilActivator.getResources();
/**
* Constructs a X509 certificate panel from a single certificate.
* If a chain is available instead use the second constructor.
@ -57,9 +60,9 @@ public X509CertificatePanel(java.util.List<X509Certificate> certificates)
// Certificate chain list
TransparentPanel topPanel = new TransparentPanel(new BorderLayout());
topPanel.add(new JLabel(
"<html><body><b>Certificate chain:</b></body></html>"),
BorderLayout.NORTH);
topPanel.add(new JLabel("<html><body><b>"
+ R.getI18NString("service.gui.CERT_INFO_CHAIN")
+ "</b></body></html>"), BorderLayout.NORTH);
DefaultMutableTreeNode top = new DefaultMutableTreeNode();
DefaultMutableTreeNode previous = top;
@ -139,7 +142,6 @@ public void valueChanged(TreeSelectionEvent e) {
private String toString(X509Certificate certificate)
{
final StringBuilder sb = new StringBuilder();
ResourceManagementService R = DesktopUtilActivator.getResources();
X500Principal issuer = certificate.getIssuerX500Principal();
X500Principal subject = certificate.getSubjectX500Principal();

Loading…
Cancel
Save