Code

msgPool
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 10 Mar 2008 09:25:34 +0000 (09:25 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 10 Mar 2008 09:25:34 +0000 (09:25 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9482 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/opengroupware/personal/connectivity/opengroupware/class_opengwAccount.inc

index e2b4f5e03e40f9d10b9d49d80532d3ff1f9e954b..309a1fb01d93b722c82beed724aa39b115abe13d 100644 (file)
@@ -164,12 +164,12 @@ class opengwAccount extends plugin
 
                /* Check database extension */    
                if(!is_callable("pg_connect") && count($this->serverCon)){
-      msg_dialog::display(_("Configuration error"), sprintf(_("Missing %s PHP extension!"), "postgresql"), ERROR_DIALOG);
+      msg_dialog::display(_("Configuration error"), msgPool::missingext("postgresql"), ERROR_DIALOG);
                }elseif(count($this->serverCon)){
 
                        /* Check if config exists */
                        if($this->config->search("opengwAccount", 'DATABASE',array('tabs'))){
-        msg_dialog::display(_("Configuration error"), sprintf(_("%s database configuration is missing!"), "Open Groupware"), ERROR_DIALOG);
+        msg_dialog::display(_("Configuration error"), msgPool::noserver(_("Open Groupware database")), ERROR_DIALOG);
                        }else{
 
                                /* Create handle */
@@ -177,7 +177,7 @@ class opengwAccount extends plugin
 
                                /* Check if we are successfully connected to db */
                                if(!$this->handle->connected){
-          msg_dialog::display(_("Configuration error"), sprintf( _("Cannot connect to %s database!"), "Open Groupware"), ERROR_DIALOG);
+          msg_dialog::display(_("Configuration error"), msgPool::dbconnect(_("Open Groupware")), ERROR_DIALOG);
                                }else{
 
                                        /* Assign LocationTeams */