Changeset 435 for trunk/Common/Types/Enumeration.php
- Timestamp:
- Oct 12, 2012, 9:56:35 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Types/Enumeration.php
r428 r435 8 8 { 9 9 $Type = $this->System->Type->GetTypeDefinition($Item['Type']); 10 if(array_key_exists($Item['Value'], $Type['Parameters'] ))11 $Output = $ this->System->Localization->Translate($Type['Parameters'][$Item['Value']]);12 else $Output = $ this->System->Localization->Translate($Item['Value']);10 if(array_key_exists($Item['Value'], $Type['Parameters']['States'])) 11 $Output = $Type['Parameters']['States'][$Item['Value']]; 12 else $Output = $Item['Value']; 13 13 return($Output); 14 14 } … … 21 21 { 22 22 if($Item['Value'] == $Index) $Selected = ' selected="1"'; else $Selected = ''; 23 $Output .= '<option value="'.$Index.'"'.$Selected.'>'.$ this->System->Localization->Translate($StateName).'</option>';23 $Output .= '<option value="'.$Index.'"'.$Selected.'>'.$StateName.'</option>'; 24 24 } 25 25 $Output .= '</select>';
Note:
See TracChangeset
for help on using the changeset viewer.