Code

reverted strings
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 30 Nov 2005 08:40:18 +0000 (08:40 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 30 Nov 2005 08:40:18 +0000 (08:40 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2145 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/gofon/fonreports/class_fonreport.inc

index 4979edcc1ab4a4385869116ac2409d9eee65478a..893112c574b0cfd326d3ed06d16a7606552ae428 100644 (file)
@@ -85,21 +85,21 @@ class fonreport extends plugin
        
        /* Connecting, selecting database */
        if (!isset($this->config->data['SERVERS']['FON'])){
-               print_red("There is no asterisk database defined. Can't query anything.");
+               print_red(_("Can't connect to phone database, no reports can be shown!"));
                return($smarty->fetch(get_template_path('contents.tpl', TRUE)));
        }elseif(!is_callable("mysql_connect")){
-               print_red("There is no mysql extension available. Can't establish database connection.");
+               print_red(_("There is no mysql extension available, please check your php setup."));
                return($smarty->fetch(get_template_path('contents.tpl', TRUE)));
        }else{
 
                $cfg= $this->config->data['SERVERS']['FON'];
                $link = @mysql_pconnect($cfg['SERVER'], $cfg['LOGIN'], $cfg['PASSWORD']);
                if ($link === FALSE){
-                       print_red(_("Can't connect to phone database, no reports can be shown!. Check server,username and password combination."));
+                       print_red(_("Can't connect to phone database, no reports can be shown!"));
                        return($smarty->fetch(get_template_path('contents.tpl', TRUE)));
                }
                if (! @mysql_select_db("gophone")){
-                       print_red(_("Can't select phone (gophone) database for report generation!"));
+                       print_red(_("Can't select phone database for report generation!"));
                        return($smarty->fetch(get_template_path('contents.tpl', TRUE)));
                }
        }