From b75d232fd4b6977d40adeddb3b56891526ed78a7 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 17 Mar 2008 13:10:37 +0000 Subject: [PATCH] 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 --- .../goto/addons/goto/class_gotomasses.inc | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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" => "" , -- 2.30.2