Dotclear


Ignore:
Timestamp:
10/24/12 13:20:43 (13 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Clarify widgets help, (should) fixes #1256

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/widgets/index.php

    r864 r902  
    3434     __('custom') => 'custom' 
    3535); 
     36 
     37function literalNullString($v) 
     38{ 
     39     if ($v == '') { 
     40          return '&lt;'.__('empty string').'&gt;'; 
     41     } 
     42     return $v; 
     43} 
    3644 
    3745# Adding widgets to sidebars 
     
    274282               switch ($s['type']) { 
    275283                    case 'check': 
    276                          $s_type = '0|1'; 
     284                         $s_type = __('boolean').", ".__('possible values:')." <code>0</code> ".__('or')." <code>1</code>"; 
     285//                       $s_type = '0|1'; 
    277286                         break; 
    278287                    case 'combo': 
    279                          $s_type = implode('|',$s['options']); 
     288                         $s['options'] = array_map("literalNullString", $s['options']); 
     289                         $s_type = __('listitem').", ".__('possible values:')." <code>".implode('</code>, <code>',$s['options'])."</code>"; 
     290//                       $s_type = implode('|',$s['options']); 
    280291                         break; 
    281292                    case 'text': 
    282293                    case 'textarea': 
    283294                    default: 
    284                          $s_type = 'text'; 
     295                         $s_type = __('string'); 
     296//                       $s_type = 'text'; 
    285297                         break; 
    286298               } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map