From 4a8c43aa324beff5bebfa9a699b1dc4b29020731 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Wed, 16 Feb 2011 12:46:59 -0600 Subject: I18n update. Hard-coded messages through out the code have been replaced by i18n messages obtained from json_metadata and i18n_messages. --- install/ui/certificate.js | 732 ++++++++++++++++++++++++---------------------- 1 file changed, 379 insertions(+), 353 deletions(-) (limited to 'install/ui/certificate.js') diff --git a/install/ui/certificate.js b/install/ui/certificate.js index 56995282f..b91d2b9bc 100755 --- a/install/ui/certificate.js +++ b/install/ui/certificate.js @@ -20,379 +20,385 @@ * along with this program. If not, see . */ - -IPA.cert = { - BEGIN_CERTIFICATE : '-----BEGIN CERTIFICATE-----', - END_CERTIFICATE : '-----END CERTIFICATE-----', - BEGIN_CERTIFICATE_REQUEST : '-----BEGIN CERTIFICATE REQUEST-----', - END_CERTIFICATE_REQUEST : '-----END CERTIFICATE REQUEST-----', - CRL_REASON : [ - 'Unspecified', - 'Key Compromise', - 'CA Compromise', - 'Affiliation Changed', - 'Superseded', - 'Cessation of Operation', - 'Certificate Hold', - null, - 'Remove from CRL', - 'Privilege Withdrawn', - 'AA Compromise' - ], - CERTIFICATE_STATUS_MISSING : 0, - CERTIFICATE_STATUS_VALID : 1, - CERTIFICATE_STATUS_REVOKED : 2, - - parse_dn : function (dn) { - - var result = {}; - if (!dn) return result; - - // TODO: Use proper LDAP DN parser - var rdns = dn.split(','); - for (var i=0; i', { - 'title': that.title + var that = {}; + + that.title = spec.title || ''; + that.usercertificate = spec.usercertificate || ''; + + var dialog = $('
', { + 'title': that.title + }); + + var textarea = $('