Changeset 902:5f31f1a09e21
- Timestamp:
- 10/24/12 13:20:43 (13 years ago)
- Branch:
- default
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
locales/fr/plugins.po
r893 r902 1611 1611 msgstr "Retirer le widget" 1612 1612 1613 msgid "boolean" 1614 msgstr "booléen" 1615 1616 msgid "listitem" 1617 msgstr "élément de liste" 1618 1619 msgid "string" 1620 msgstr "chaîne de caractères" 1621 1622 msgid "possible values:" 1623 msgstr "valeurs possibles :" 1624 1625 msgid "empty string" 1626 msgstr "chaîne vide" 1627 1613 1628 #~ msgid "Export a blog" 1614 1629 #~ msgstr "Exporter un blog" -
plugins/widgets/index.php
r864 r902 34 34 __('custom') => 'custom' 35 35 ); 36 37 function literalNullString($v) 38 { 39 if ($v == '') { 40 return '<'.__('empty string').'>'; 41 } 42 return $v; 43 } 36 44 37 45 # Adding widgets to sidebars … … 274 282 switch ($s['type']) { 275 283 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'; 277 286 break; 278 287 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']); 280 291 break; 281 292 case 'text': 282 293 case 'textarea': 283 294 default: 284 $s_type = 'text'; 295 $s_type = __('string'); 296 // $s_type = 'text'; 285 297 break; 286 298 }
Note: See TracChangeset
for help on using the changeset viewer.