From: cajus Date: Sat, 29 Oct 2005 07:31:57 +0000 (+0000) Subject: * Started to add translated strings X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2c3164c7165468f6732a9193d21b79e7d33c84da;p=gosa.git * Started to add translated strings * Added unlink to remove temporary files git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1752 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/getxls.php b/html/getxls.php index c8506ff11..042b6488a 100644 --- a/html/getxls.php +++ b/html/getxls.php @@ -50,7 +50,7 @@ function dump_ldap ($mode= 0) switch ($d){ case "ou=people," : $user= $ldap->gen_xls($dn,"(objectClass=*)",array("uid","dateOfBirth","gender","givenName","preferredLanguage")); - $intitul=array("Date de naissance:","Sexe:","Nom/prénom","Langue"); + $intitul=array(_("Birthday").":", _("Sexe").":", _("Name")."/"._("Firstname").":",_("Language").":"); $worksheet=& $workbook->addworksheet('Users'); $worksheet->set_column('A:B', 32); @@ -98,8 +98,8 @@ function dump_ldap ($mode= 0) break; case "ou=computers,": $computers= $ldap->gen_xls($dn,"(objectClass=*)",array("cn","description","uid")); - $intitul=array("Description:","Uid:"); - $worksheet =& $workbook->addworksheet('Computers'); + $intitul=array(_("Description").":",_("User ID").":"); + $worksheet =& $workbook->addworksheet(_("Computers")); $worksheet->set_column('A:B', 32); //count number of computers @@ -144,7 +144,7 @@ function dump_ldap ($mode= 0) case "dc=addressbook,": //data about addressbook $address= $ldap->gen_xls($dn,"(objectClass=*)",array("cn","displayName","facsimileTelephoneNumber","givenName","homePhone","homePostalAddress","initials","l","mail","mobile","o","ou","pager","telephoneNumber","postalAddress","postalCode","sn","st","title")); - $intitul=array("cn","DisplayName:","Fax:","Nom/prénom:","Numero de telelphone:","Adresse du domicile:","Initiales:","Ville:","Adresse email:","GSM:","Societe:","Poste:","Pager:","Numero de telelphone:","Adresse:","Code postal:","Sn:","Pays:","Fonction:"); + $intitul=array(_("Common name").":",_("Display Name").":",_("Fax").":",_("Name")."/"._("Firstname").":","Numero de telelphone:","Adresse du domicile:","Initiales:","Ville:","Adresse email:","GSM:","Societe:","Poste:","Pager:","Numero de telelphone:","Adresse:","Code postal:","Sn:","Pays:","Fonction:"); $worksheet =& $workbook->addworksheet('Servers'); $worksheet->set_column('A:B', 32); @@ -182,7 +182,7 @@ function dump_ldap ($mode= 0) // The source is in original.xls readfile($fname); - + unlink ($fname); } elseif($mode == 3){ // Full Export ! $dn = base64_decode($_GET['dn']); @@ -320,6 +320,7 @@ function dump_ldap ($mode= 0) // The PDF source is in original.xl readfile($fname); + unlink ($fname); } elseif($mode == 4){ // IVBB LDIF Export $dn = base64_decode($_GET['dn']);