Code

Unified strings
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 10 Jan 2008 16:04:29 +0000 (16:04 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 10 Jan 2008 16:04:29 +0000 (16:04 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8298 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/personal/connectivity/class_opengwAccount.inc
gosa-core/plugins/personal/connectivity/class_oxchangeAccount.inc

index f61846022a958253f6553f2e1dbb27d4d84a8cca..920c62e0ffb92478ce81d154acdfa2a5f7eb1881 100644 (file)
@@ -169,7 +169,7 @@ class opengwAccount extends plugin
 
                        /* Check if config exists */
                        if($this->config->search("opengwAccount", 'DATABASE',array('tabs'))){
-        msg_dialog::display(_("Configuration error"), _("Missing database configuration!"), ERROR_DIALOG);
+        msg_dialog::display(_("Configuration error"), sprintf(_("%s database configuration is missing!"), "Open Groupware"), 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"), _("Cannot connect to database!"), ERROR_DIALOG);
+          msg_dialog::display(_("Configuration error"), sprintf( _("Cannot connect to %s database!"), "Open Groupware"), ERROR_DIALOG);
                                }else{
 
                                        /* Assign LocationTeams */
index e5c8d5bbeb58096788704fa7fede56ff42b0e19f..410be0a50812f7c4eed188fe9e197fa2a339656f 100644 (file)
@@ -720,11 +720,11 @@ class oxchangeAccount extends plugin
          isset($this->oxconf["PGPASSWD"])){
         $pgcon = @pg_connect("host=".$this->oxconf["PGHOST"]." user=".$this->oxconf["PGUSER"]." password=".$this->oxconf["PGPASSWD"]." dbname=".$this->oxconf["PGDBNAME"]);
         if (! $pgcon){
-          msg_dialog::display(_("Error"), _("Cannot connect to database!"), ERROR_DIALOG);
+          msg_dialog::display(_("Error"), sprintf(_("Cannot connect to %s database!"), "Open-Xchange"), ERROR_DIALOG);
           return;
         }
       }else{
-        msg_dialog::display(_("Configuration error"), _("Database configuration missing!"), ERROR_DIALOG);
+        msg_dialog::display(_("Configuration error"), sprintf(_("%s database configuration is missing!"), "Open-Xchange"), ERROR_DIALOG);
         return;
       }
     }else{
@@ -825,11 +825,11 @@ class oxchangeAccount extends plugin
         if(isset($this->oxconf["PGUSER"]) and isset($this->oxconf["PGHOST"]) and isset($this->oxconf["PGDBNAME"]) and isset($this->oxconf["PGPASSWD"])){
           $pgcon =  @pg_connect("host=".$this->oxconf["PGHOST"]." user=".$this->oxconf["PGUSER"]." password=".$this->oxconf["PGPASSWD"]." dbname=".$this->oxconf["PGDBNAME"]);
           if (! $pgcon){
-            msg::display(_("Error"), _("Cannot connect to database!"), ERROR_DIALOG);
+            msg::display(_("Error"), sprintf(_("Cannot connect to %s database!"), "Open-Xchange"), ERROR_DIALOG);
             return;
           }
         }else{
-          msg_dialog::display(_("Configuration error"), _("Database configuration missing!"), ERROR_DIALOG);
+          msg_dialog::display(_("Configuration error"), sprintf(_("%s database configuration is missing!"), "Open-Xchange"), ERROR_DIALOG);
           return;
         }
       }else{