From: cajus Date: Mon, 17 Mar 2008 13:10:37 +0000 (+0000) Subject: Added special states like "Waiting for activation" and "Hardware detection" X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b75d232fd4b6977d40adeddb3b56891526ed78a7;p=gosa.git Added special states like "Waiting for activation" and "Hardware detection" git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9897 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/addons/goto/class_gotomasses.inc b/gosa-plugins/goto/addons/goto/class_gotomasses.inc index 1edf44b4d..bc0668db9 100644 --- a/gosa-plugins/goto/addons/goto/class_gotomasses.inc +++ b/gosa-plugins/goto/addons/goto/class_gotomasses.inc @@ -436,9 +436,20 @@ class gotomasses extends plugin */ if($status == "processing" && isset($task['PROGRESS'])){ $percent = $task['PROGRESS']; - $status = "".$percent." %"; - } + /* Show activation? */ + if ($percent == "goto-activation"){ + $status = " "._("Activation"); + + /* Show hardware detect? */ + } elseif ($percent == "goto-hardware-detection") { + $status = " "._("Detection"); + + /* Real percent */ + } else { + $status = "".$percent." %"; + } + } /* Create each field */ $field0 = array("string" => "" ,