~ubuntu-branches/ubuntu/trusty/ldap-account-manager/trusty

« back to all changes in this revision

Viewing changes to lib/modules/ldapPublicKey.inc

  • Committer: Package Import Robot
  • Author(s): Roland Gruber
  • Date: 2012-03-25 11:00:20 UTC
  • mfrom: (1.1.22) (4.1.18 sid)
  • Revision ID: package-import@ubuntu.com-20120325110020-bggr97wusvitsvqg
Tags: 3.7-1
* new upstream release
* Fix "[INTL:nl] Dutch translation of debconf templates" (Closes: #658463)
* Fix "[INTL:da] Danish translation of the debconf templates ldap-
  account-manager" (Closes: #661950)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
2
/*
3
 
$Id: ldapPublicKey.inc,v 1.20 2010/09/20 17:41:20 gruberroland Exp $
 
3
$Id: ldapPublicKey.inc,v 1.22 2012/02/05 19:15:50 gruberroland Exp $
4
4
 
5
5
  This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
6
 
  Copyright (C) 2005 - 2010  Roland Gruber
 
6
  Copyright (C) 2005 - 2012  Roland Gruber
7
7
 
8
8
  This program is free software; you can redistribute it and/or modify
9
9
  it under the terms of the GNU General Public License as published by
59
59
                // help Entries
60
60
                $return['help'] = array(
61
61
                        'key' => array(
62
 
                                "Headline" => _("SSH public key"),
 
62
                                "Headline" => _("SSH public key"), 'attr' => 'sshPublicKey',
63
63
                                "Text" => _("Please enter your public SSH key.")
64
64
                        ),
65
65
                        'keyList' => array(
66
 
                                "Headline" => _("SSH public key"),
 
66
                                "Headline" => _("SSH public key"), 'attr' => 'sshPublicKey',
67
67
                                "Text" => _("Please a comma separated list of your public SSH keys.")
68
68
                        )
69
69
                );
78
78
                );
79
79
                // available PDF fields
80
80
                $return['PDF_fields'] = array(
81
 
                        'sshPublicKey' => _('SSH public key(s)')
 
81
                        'sshPublicKey' => _('SSH public keys')
82
82
                );
83
83
                return $return;
84
84
        }
173
173
        function get_pdfEntries() {
174
174
                $return = array();
175
175
                if (sizeof($this->attributes['sshPublicKey']) > 0) {
176
 
                        $return['ldapPublicKey_sshPublicKey'][0] = '<block><key>' . _('SSH public key(s)') . '</key><tr><td align=\"L\">' . $this->attributes['sshPublicKey'][0] . '</td></tr></block>';
 
176
                        $return['ldapPublicKey_sshPublicKey'][0] = '<block><key>' . _('SSH public keys') . '</key><tr><td align=\"L\">' . $this->attributes['sshPublicKey'][0] . '</td></tr></block>';
177
177
                        for ($i = 1; $i < sizeof($this->attributes['sshPublicKey']); $i++) {
178
178
                                $return['ldapPublicKey_sshPublicKey'][] = '<block><tr><td align=\"L\">' . $this->attributes['sshPublicKey'][$i] . '</td></tr></block>';
179
179
                        }