diff --git a/plugins/admin/fai/class_faiPartitionTableEntry.inc b/plugins/admin/fai/class_faiPartitionTableEntry.inc
index 83e7a179cfbb2b268ed40386e985ef3c76cd8af5..cc2c0619c966a059d67f13eb06aaa35dfa0fda1a 100644 (file)
function generateParts()
{
/* Define Arrays with allowed syntax */
- $PartitionTypes = array("primary","logical");
+ $PartitionTypes = array("primary"=>_("primary"),"logical"=>_("logical"));
$FAIfsTypes = array("ext2","ext3","xfs","swap","reiserfs","dosfat16","winfat32");
/* Display Header */
/* Generate Partition select box
*/
$PartitionType = "<select name='FAIpartitionType_".$key."' id='FAIpartitionType_".$key."' ".$disableALL.">";
- foreach($PartitionTypes as $type){
+ foreach($PartitionTypes as $type => $PTname){
if($part['FAIpartitionType'] == $type){
- $PartitionType .="<option value='".$type."' selected >".$type."</option>";
+ $PartitionType .="<option value='".$type."' selected >".$PTname."</option>";
}else{
- $PartitionType .="<option value='".$type."'>".$type."</option>";
+ $PartitionType .="<option value='".$type."'>".$PTname."</option>";
}
}
$PartitionType.="</select>";
/* Check supplied data */
function check()
{
- $message= array();
+ /* Call common method to give check the hook */
+ $message= plugin::check();
/* check every partition.
* if there is an invalid value defined, append an errorstr to message