From 17d89280f01a307e2e6cdbb9c29acdbf08cec62a Mon Sep 17 00:00:00 2001 From: psc Date: Mon, 5 Oct 2009 12:14:40 +0000 Subject: [PATCH] Some changes to the FAI icon listing: - Use the 'title' attribute instead of 'alt' for the descriptions, because the latter are not shown. - Add missing descriptions - Add missing   in placeholder entries. - "Profiles" -> "Profile" git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14510 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/goto/class_workstationStartup.inc | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/trunk/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc b/trunk/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc index 436c0757d..0e372ddef 100644 --- a/trunk/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc +++ b/trunk/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc @@ -1243,14 +1243,14 @@ class workstartup extends plugin # everything looks fine if the type in this position # doesn't exist in that class for ($i=0; $i<6; $i++) { - $result[$i] = ""; + $result[$i] = " "; } } foreach($classes[$class_name] as $type) { $index = $type['index']; if ($image) { - $string = "".$type[ "; + $string = " "; } else { $string = $type['Abbr']; @@ -1285,53 +1285,54 @@ class workstartup extends plugin function analyse_fai_object($attr) { $result = array(); - $result['desc'] = 'Placeholder'; switch($attr['TYPE']){ case 'FAIpartitionTable': $result["Type"]= 'FAIpartitionTable'; $result["Abbr"]= 'Pt'; $result["img"]= 'plugins/fai/images/fai_partitionTable.png'; - $result["desc"] = "_('Partition table')"; + $result["desc"] = _('Partition table'); $result["index"]= 0; break; case 'FAIpackageList': $result["Type"]= 'FAIpackageList'; $result["Abbr"]= 'Pl'; $result["img"] = 'plugins/fai/images/fai_packages.png'; - $result["desc"] = "_('Package list')"; + $result["desc"] = _('Package list'); $result["index"] = 1; break; case 'FAIscript': $result["Type"]= 'FAIscript'; $result["Abbr"]= 'S'; $result["img"]= 'plugins/fai/images/fai_script.png'; - $result["desc"] = "_('Script')"; + $result["desc"] = _('Scripts'); $result["index"] = 2; break; case 'FAIvariable': $result["Type"]= 'FAIvariable'; $result["Abbr"]= 'V'; $result["img"]= 'plugins/fai/images/fai_variable.png'; - $result["desc"] = "_('Variables')"; + $result["desc"] = _('Variables'); $result["index"]= 3; break; case 'FAIhook': $result["Type"]= 'FAIhook'; $result["Abbr"]= 'H'; $result["img"]= 'plugins/fai/images/fai_hook.png'; - $result["desc"] = "_('Hooks')"; + $result["desc"] = _('Hooks'); $result["index"]= 4; break; case 'FAIprofile': $result["Type"]= 'FAIprofile'; $result["Abbr"]= 'P'; $result["img"]= 'plugins/fai/images/fai_profile.png'; + $result["desc"]= _('Profile'); $result["index"] = 5; break; case 'FAItemplate': $result["Type"]= 'FAItemplate'; $result["Abbr"]= 'T'; $result["img"] = 'plugins/fai/images/fai_template.png'; + $result["desc"]= _('Templates'); $result["index"] = 6; break; default: trigger_error("Unknown FAI object type!");; -- 2.30.2