steffen: server/kolab-webadmin/kolab-webadmin/www/admin/service index.php, 1.3, 1.4

cvs at intevation.de cvs at intevation.de
Sun Jul 18 03:15:54 CEST 2004


Author: steffen

Update of /kolabrepository/server/kolab-webadmin/kolab-webadmin/www/admin/service
In directory doto:/tmp/cvs-serv9059/kolab-webadmin/www/admin/service

Modified Files:
	index.php 
Log Message:
more gettext

Index: index.php
===================================================================
RCS file: /kolabrepository/server/kolab-webadmin/kolab-webadmin/www/admin/service/index.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- index.php	15 Jun 2004 01:51:31 -0000	1.3
+++ index.php	18 Jul 2004 01:15:51 -0000	1.4
@@ -9,7 +9,7 @@
 $sidx = 'service';
 
 if( $auth->group() != 'admin') {
-   array_push($errors, "Error: You don't have Permissions to access this Menu");
+   array_push($errors, _("Error: You don't have Permissions to access this Menu"));
 }
 
 require_once('admin/include/menu.php');
@@ -77,7 +77,8 @@
   if( postvalue( 'amavis' ) != $amavis )  $attrs['postfix-enable-virus-scan'] = postvalue( 'amavis' );
   
   if( !($result = ldap_modify($ldap->connection, "k=kolab,".$_SESSION['base_dn'], $attrs)) ) {
-	$errors[] = "LDAP Error: failed to modify kolab configuration object ".ldap_error($ldap->connection);
+	$errors[] = _("LDAP Error: failed to modify kolab configuration object: ")
+	  .ldap_error($ldap->connection);
   }
 }
 
@@ -85,8 +86,9 @@
   $attrs = array();
   $attrs['cyrus-quotawarn'] = trim( $_REQUEST['quotawarn'] );
   if( !($result = ldap_modify($ldap->connection, "k=kolab,".$_SESSION['base_dn'], $attrs)) ) {
-	$errors[] = "LDAP Error: failed to modify kolab configuration object ".ldap_error($ldap->connection);
-  }  
+	$errors[] = _("LDAP Error: failed to modify kolab configuration object: ")
+	  .ldap_error($ldap->connection);
+  }
 }
 
 if( $_REQUEST['deletekolabhost'] ) {
@@ -98,7 +100,8 @@
   $attrs = array();
   $attrs['kolabhost'] = $kolabhost;
   if( !($result = ldap_modify($ldap->connection, "k=kolab,".$_SESSION['base_dn'], $attrs)) ) {
-	$errors[] = "LDAP Error: failed to modify kolab configuration object ".ldap_error($ldap->connection);
+	$errors[] = _("LDAP Error: failed to modify kolab configuration object: ")
+	  .ldap_error($ldap->connection);
   }
 }
 if( $_REQUEST['addkolabhost'] ) {
@@ -108,21 +111,21 @@
 	$attrs = array();
 	$attrs['kolabhost'] = $kolabhost;
 	if( !($result = ldap_modify($ldap->connection, "k=kolab,".$_SESSION['base_dn'], $attrs)) ) {
-	  $errors[] = "LDAP Error: failed to modify kolab configuration object ".ldap_error($ldap->connection);
+	  $errors[] = _("LDAP Error: failed to modify kolab configuration object: ").ldap_error($ldap->connection);
 	}
   }
 }
 
 // Fill in output form
 extract_ldap_values();
-$entries = array( array( 'service' => 'pop3', 'name'  => 'POP3 Service', 'enabled' => toboolstr( $pop3 ) ),
-				  array( 'service' => 'pop3s', 'name' => 'POP3/SSL service (TCP port 995)', 'enabled' => toboolstr( $pop3s ) ),
-				  array( 'service' => 'imap', 'name'  => 'IMAP Service', 'enabled' => toboolstr( $imap ) ),
-				  array( 'service' => 'imaps', 'name' => 'IMAP/SSL Service (TCP port 993)', 'enabled' => toboolstr( $imaps ) ),
-				  array( 'service' => 'sieve', 'name' => 'Sieve service (TCP port 2000)', 'enabled' => toboolstr( $sieve ) ),
-				  array( 'service' => 'ftp', 'name'   => 'FTP FreeBusy Service', 'enabled' => toboolstr( $ftp ) ),
-				  array( 'service' => 'http', 'name'  => 'HTTP FreeBusy Service', 'enabled' => toboolstr( $http ) ),
-				  array( 'service' => 'amavis', 'name' => 'Amavis Virus Scanning', 'enabled' => toboolstr( $amavis ) ) );
+$entries = array( array( 'service' => 'pop3', 'name'  => _('POP3 Service'), 'enabled' => toboolstr( $pop3 ) ),
+				  array( 'service' => 'pop3s', 'name' => _('POP3/SSL service (TCP port 995)'), 'enabled' => toboolstr( $pop3s ) ),
+				  array( 'service' => 'imap', 'name'  => _('IMAP Service'), 'enabled' => toboolstr( $imap ) ),
+				  array( 'service' => 'imaps', 'name' => _('IMAP/SSL Service (TCP port 993)'), 'enabled' => toboolstr( $imaps ) ),
+				  array( 'service' => 'sieve', 'name' => _('Sieve service (TCP port 2000)'), 'enabled' => toboolstr( $sieve ) ),
+				  array( 'service' => 'ftp', 'name'   => _('FTP FreeBusy Service'), 'enabled' => toboolstr( $ftp ) ),
+				  array( 'service' => 'http', 'name'  => _('HTTP FreeBusy Service'), 'enabled' => toboolstr( $http ) ),
+				  array( 'service' => 'amavis', 'name' => _('Amavis Virus Scanning'), 'enabled' => toboolstr( $amavis ) ) );
 
 /**** Insert into template and output ***/
 $smarty = new MySmarty();





More information about the commits mailing list