Code

Silence error message when SNMP-support is missing (Trac #2006)
authorpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 22 Jun 2009 12:27:01 +0000 (12:27 +0000)
committerpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 22 Jun 2009 12:27:01 +0000 (12:27 +0000)
Do not show an error message if SNMP-support is missing,
instead indicate it in status view.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13756 594d385d-05f5-0310-b6e9-bd551577e9d8

trunk/gosa-plugins/goto/admin/systems/goto/class_terminalInfo.inc
trunk/gosa-plugins/goto/locale/de/LC_MESSAGES/messages.po
trunk/gosa-plugins/goto/locale/messages.po

index d92a958eb2651ef802d3ab8ed2e3fa02fb4b1511..a2586613b68e5f7760cc9356c4a594b94387e392 100644 (file)
@@ -74,13 +74,12 @@ class terminfo extends plugin
     if(!preg_match("/r/",$this->getacl(""))){
       $smarty->assign("ACL",FALSE);
     }elseif(!is_callable("snmpget")){
-      msg_dialog::display(_("Configuration error"), msgPool::missingext("snmp"), ERROR_DIALOG);
 
       $smarty->assign("load", progressbar(0,100,15,true));
       $smarty->assign("mem", progressbar(0,100,15,true));
       $smarty->assign("swap", progressbar(0,100,15,true));
       foreach(array("uptime", "sshd", "X", "saned", "artsd", "cupsd","status","ghNetNic", "ghIdeDev", "ghScsiDev","FloppyDevice", "CdromDevice","active") as $val){
-        $smarty->assign("$val", "<i>"._("unknown status")."</i>");
+        $smarty->assign("$val", "<i>"._("unknown status, SNMP support missing")."</i>");
       }
 
 
index 0ed2fdbb1d0428c6ee2918a670510e2c7a7aaf21..da04eac747900a2100e529fe15ebfc70daf94df8 100644 (file)
@@ -13,7 +13,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: messages\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-06-22 14:16+0200\n"
+"POT-Creation-Date: 2009-06-22 14:24+0200\n"
 "PO-Revision-Date: 2008-12-04 11:18+0100\n"
 "Last-Translator: Cajus Pollmeier <pollmeier@gonicus.de>\n"
 "Language-Team: deutsch <de@li.org>\n"
@@ -2716,7 +2716,7 @@ msgstr "Terminal"
 
 #: admin/systems/goto/class_terminalInfo.inc:82
 msgid "unknown status, SNMP support missing"
-msgstr ""
+msgstr "unbekannter Status; SNMP-Unterstützung fehlt"
 
 #: admin/systems/goto/class_terminalInfo.inc:91
 msgid "This is a virtual terminal which has no properties to show here."
index f798bb6579b5254464ab4015d43c5f56bd5174ce..be40fb55a089610d5337d301ea54992abe350390 100644 (file)
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-06-22 14:16+0200\n"
+"POT-Creation-Date: 2009-06-22 14:24+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"