steffen: server/kolab-webadmin/kolab-webadmin/www/admin/service index.php, 1.22.2.2, 1.22.2.3

cvs at intevation.de cvs at intevation.de
Thu Oct 13 03:50:27 CEST 2005


Author: steffen

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

Modified Files:
      Tag: kolab_2_0_branch
	index.php 
Log Message:
Fix for issue886 (i18n problem)

Index: index.php
===================================================================
RCS file: /kolabrepository/server/kolab-webadmin/kolab-webadmin/www/admin/service/index.php,v
retrieving revision 1.22.2.2
retrieving revision 1.22.2.3
diff -u -d -r1.22.2.2 -r1.22.2.3
--- index.php	12 Oct 2005 11:04:16 -0000	1.22.2.2
+++ index.php	13 Oct 2005 01:50:25 -0000	1.22.2.3
@@ -92,7 +92,7 @@
   $mail = trim($_REQUEST['systemaliasmail']);
   $dn = $ldap->dnForMailOrAlias( $mail );
   if( !$dn ) {
-	$errors[] = _("No account found for email address $mail");
+	$errors[] = sprintf( _("No account found for email address %s"), $mail );
   } else {
 	foreach( array( 'postmaster', 'hostmaster', 'abuse', 'virusalert', 'MAILER-DAEMON' ) as $group ) {
 	  $attrs = array( 'objectClass' => array( 'top', 'kolabGroupOfNames' ),
@@ -100,9 +100,9 @@
 					  'mail' => $group.'@'.$postfixmydomain,
 					  'member' => $dn );
 	  if( !ldap_add( $ldap->connection, "cn=$group,".$_SESSION['base_dn'], $attrs ) ) {
-		$errors[] = _("LDAP Error: Failed to add distribution list $group: ").$ldap->error();
+		$errors[] = sprintf( _("LDAP Error: Failed to add distribution list %s: %s"), $group, $ldap->error() );
 	  } else {
-		$messages[] = "Successfully created distribution list $group";
+		$messages[] = sprintf( _("Successfully created distribution list %s"), $group );
 	  }
 	}
   }





More information about the commits mailing list