From: cajus Date: Mon, 26 Apr 2010 19:12:14 +0000 (+0000) Subject: Updated strings X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c4c788372895e7bfdc6891038570abccf40117e5;p=gosa.git Updated strings git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17861 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/ldapmanager/addons/ldapmanager/class_csvimport.inc b/gosa-plugins/ldapmanager/addons/ldapmanager/class_csvimport.inc index 4fac56880..63c0c90e3 100644 --- a/gosa-plugins/ldapmanager/addons/ldapmanager/class_csvimport.inc +++ b/gosa-plugins/ldapmanager/addons/ldapmanager/class_csvimport.inc @@ -102,7 +102,7 @@ class csvimport extends plugin $acl = $this->ui->get_permissions($this->config->current['BASE'],"all/all"); if(!preg_match("/w/",$acl)){ if(isset($_POST['userfile']) || isset($_POST['sorted']) || isset($_POST['fileup'])){ - msg_dialog::display(_("Permission error"), _("You've no permission to import CSV files."), ERROR_DIALOG); + msg_dialog::display(_("Permission error"), _("You've no permission to import CSV files!"), ERROR_DIALOG); } return ($smarty->fetch (get_template_path('contentcsv.tpl', TRUE))); } @@ -162,7 +162,7 @@ class csvimport extends plugin (!isset($dat['sn']))||(!isset($dat['givenName']))||(!isset($dat['uid']))){ /* Output Error */ - msg_dialog::display(_("Error"), _("Need at least 'sn', 'givenName' and 'uid' to create users."), ERROR_DIALOG); + msg_dialog::display(_("Error"), sprintf(_("Need at least %s, %s and %s to create users!"), bold("sn"), bold("givenName"), bold("uid")), ERROR_DIALOG); } else { /* Register usertab to trigger edit dialog */ @@ -282,7 +282,7 @@ class csvimport extends plugin /* Error? */ if ($failing){ - msg_dialog::display(_("Error"), sprintf(_("Cannot insert entry '%s'!"), $failing), ERROR_DIALOG); + msg_dialog::display(_("Error"), sprintf(_("Cannot add entry %s!"), bold($failing)), ERROR_DIALOG); } $smarty->assign("error",$failing); diff --git a/gosa-plugins/ldapmanager/addons/ldapmanager/class_export.inc b/gosa-plugins/ldapmanager/addons/ldapmanager/class_export.inc index 5355a0933..da15d5775 100644 --- a/gosa-plugins/ldapmanager/addons/ldapmanager/class_export.inc +++ b/gosa-plugins/ldapmanager/addons/ldapmanager/class_export.inc @@ -66,8 +66,8 @@ class ldifexport extends plugin $acls = $this->ui->get_permissions($dn,"ldapmanager/ldif"); $name = "entryExport.ldif"; if(!$ldap->dn_exists($dn)){ - msg_dialog::display(_("Ldap error"), - sprintf(_("No such object '%s'!"),bold(LDAP::fix($dn))), + msg_dialog::display(_("LDAP error"), + sprintf(_("No such object %s!"),bold(LDAP::fix($dn))), ERROR_DIALOG); $dn =""; } @@ -83,7 +83,7 @@ class ldifexport extends plugin // Check permissions before sending the output if(!preg_match("/r/",$acls)){ msg_dialog::display(_("Permission error"), - sprintf(_("You have no permission to export '%s'!"),LDAP::fix($dn)), + sprintf(_("You have no permission to export %s!"), bold(LDAP::fix($dn))), ERROR_DIALOG); }else{ $data = $ldap->generateLdif(LDAP::fix($dn), 'objectClass=*',array(),$scope); diff --git a/gosa-plugins/ldapmanager/addons/ldapmanager/class_exportxls.inc b/gosa-plugins/ldapmanager/addons/ldapmanager/class_exportxls.inc index 99fceb984..7079845e1 100644 --- a/gosa-plugins/ldapmanager/addons/ldapmanager/class_exportxls.inc +++ b/gosa-plugins/ldapmanager/addons/ldapmanager/class_exportxls.inc @@ -103,7 +103,7 @@ class xlsexport extends plugin if(!preg_match("/r/",$acls) && (isset($_POST['sfrmgetsingle']) || isset($_POST['sfrmgetfull']) || isset($_POST['sfrmgetivbb']))){ /* Show error msg */ - msg_dialog::display(_("Permission error"), sprintf(_("You have no permission to export '%s'!"),LDAP::fix($dn)), ERROR_DIALOG); + msg_dialog::display(_("Permission error"), sprintf(_("You have no permission to export %s!"), bold(LDAP::fix($dn))), ERROR_DIALOG); /* Show main page */ $smarty->assign("LDIFError",TRUE); diff --git a/gosa-plugins/ldapmanager/addons/ldapmanager/class_import.inc b/gosa-plugins/ldapmanager/addons/ldapmanager/class_import.inc index ac2a81085..003f8028c 100644 --- a/gosa-plugins/ldapmanager/addons/ldapmanager/class_import.inc +++ b/gosa-plugins/ldapmanager/addons/ldapmanager/class_import.inc @@ -115,7 +115,7 @@ class ldifimport extends plugin break; default: - msg_dialog::display(_("Internal error"), sprintf(_("Undefined flag '%s'!"), $check), ERROR_DIALOG); + msg_dialog::display(_("Internal error"), sprintf(_("Undefined flag %s!"), bold($check)), ERROR_DIALOG); break; } } diff --git a/gosa-plugins/ldapmanager/addons/ldapmanager/class_ldif.inc b/gosa-plugins/ldapmanager/addons/ldapmanager/class_ldif.inc index 6256b7831..cec87e6e7 100644 --- a/gosa-plugins/ldapmanager/addons/ldapmanager/class_ldif.inc +++ b/gosa-plugins/ldapmanager/addons/ldapmanager/class_ldif.inc @@ -32,13 +32,13 @@ class ldif extends plugin static function plInfo() { return (array( - "plShortName" => _("Ldap manager"), - "plDescription" => _("Ldap manager")." ("._("import")."/"._("export").")", + "plShortName" => _("LDAP manager"), + "plDescription" => _("LDAP manager")." ("._("import")."/"._("export").")", "plSelfModify" => FALSE, "plDepends" => array(), "plPriority" => 1, "plSection" => array("addon"), - "plCategory" => array("ldapmanager" => array("objectClass" => "none", "description" => _("Ldap manager"))), + "plCategory" => array("ldapmanager" => array("objectClass" => "none", "description" => _("LDAP manager"))), "plProvidedAcls" => array() ));