Dotclear

Changeset 902:5f31f1a09e21


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

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • locales/fr/plugins.po

    r893 r902  
    16111611msgstr "Retirer le widget" 
    16121612 
     1613msgid "boolean" 
     1614msgstr "booléen" 
     1615 
     1616msgid "listitem" 
     1617msgstr "élément de liste" 
     1618 
     1619msgid "string" 
     1620msgstr "chaîne de caractères" 
     1621 
     1622msgid "possible values:" 
     1623msgstr "valeurs possibles :" 
     1624 
     1625msgid "empty string" 
     1626msgstr "chaîne vide" 
     1627 
    16131628#~ msgid "Export a blog" 
    16141629#~ msgstr "Exporter un blog" 
  • 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