Dotclear

Changeset 2369:461cfb68d9c7


Ignore:
Timestamp:
10/15/13 10:13:02 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.6
Message:

Revamp contextual help for widgets plugin

Files:
7 edited

Legend:

Unmodified
Added
Removed
  • locales/_pot/main.pot

    r2356 r2369  
    88"Project-Id-Version: Dotclear 2\n" 
    99"Report-Msgid-Bugs-To: \n" 
    10 "POT-Creation-Date: 2013-10-14 13:18+0200\n" 
     10"POT-Creation-Date: 2013-10-15 10:10+0200\n" 
    1111"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 
    1212"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 
  • locales/_pot/plugins.pot

    r2356 r2369  
    88"Project-Id-Version: Dotclear 2\n" 
    99"Report-Msgid-Bugs-To: \n" 
    10 "POT-Creation-Date: 2013-10-14 13:18+0200\n" 
     10"POT-Creation-Date: 2013-10-15 10:10+0200\n" 
    1111"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 
    1212"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 
     
    495495msgstr "" 
    496496 
    497 #: plugins/attachments/_admin.php:35 
     497#: plugins/attachments/_admin.php:50 
    498498msgid "Attachments" 
    499499msgstr "" 
    500500 
    501 #: plugins/attachments/_admin.php:35 
     501#: plugins/attachments/_admin.php:50 
    502502#, php-format 
    503503msgid "Attachments (%d)" 
    504504msgstr "" 
    505505 
    506 #: plugins/attachments/_admin.php:56 
     506#: plugins/attachments/_admin.php:71 
    507507msgid "remove" 
    508508msgstr "" 
    509509 
    510 #: plugins/attachments/_admin.php:65 
     510#: plugins/attachments/_admin.php:80 
    511511msgid "No attachment." 
    512512msgstr "" 
    513513 
    514 #: plugins/attachments/_admin.php:67 
     514#: plugins/attachments/_admin.php:82 
    515515msgid "Add files to this entry" 
    516516msgstr "" 
     
    12611261 
    12621262#: plugins/importExport/inc/class.dc.ieModule.php:77 
    1263 #: plugins/widgets/index.php:289 
     1263#: plugins/widgets/index.php:270 
    12641264msgid "or" 
    12651265msgstr "" 
     
    18911891#: plugins/maintenance/index.php:225 
    18921892msgid "This may take a very long time." 
     1893msgstr "" 
     1894 
     1895#: plugins/maintenance/index.php:257 
     1896#, php-format 
     1897msgid "You can configure common options through the <a href=\"%s\">plugins manager</a>." 
    18931898msgstr "" 
    18941899 
     
    26602665msgstr "" 
    26612666 
    2662 #: plugins/widgets/index.php:207 plugins/widgets/index.php:336 
     2667#: plugins/widgets/index.php:207 plugins/widgets/index.php:317 
    26632668msgid "order" 
    26642669msgstr "" 
     
    26922697msgstr "" 
    26932698 
    2694 #: plugins/widgets/index.php:250 
    2695 msgid "Use of widgets" 
    2696 msgstr "" 
    2697  
    2698 #: plugins/widgets/index.php:251 
    2699 msgid "Widgets may be used to add various blocks of content to be displayed on your public pages. To add a widget, drag it from the Available widgets list on the left to one of the sidebars on the right of this page. You can order your widgets in a sidebar by dragging them up or down. You must update sidebars to apply your changes." 
    2700 msgstr "" 
    2701  
    27022699#: plugins/widgets/index.php:254 
    2703 msgid "Once included in a sidebar, widgets have configuration options that you can reach by clicking on the arrow next to their name." 
    2704 msgstr "" 
    2705  
    2706 #: plugins/widgets/index.php:256 
    2707 msgid "Reset sidebars to get back to default widgets installation." 
    2708 msgstr "" 
    2709  
    2710 #: plugins/widgets/index.php:257 
    2711 msgid "Widget templates tags" 
    2712 msgstr "" 
    2713  
    2714 #: plugins/widgets/index.php:259 
    2715 msgid "If you are allowed to edit your theme templates, you can directly add widgets as templates tags, with their own configuration." 
     2700msgid "Widget ID:" 
    27162701msgstr "" 
    27172702 
    27182703#: plugins/widgets/index.php:261 
    2719 msgid "To add a widget in your template, you need to write code like this:" 
    2720 msgstr "" 
    2721  
    2722 #: plugins/widgets/index.php:262 
    2723 msgid "Widget ID" 
    2724 msgstr "" 
    2725  
    2726 #: plugins/widgets/index.php:263 
    2727 msgid "Setting name" 
    2728 msgstr "" 
    2729  
    2730 #: plugins/widgets/index.php:263 
    2731 msgid "Setting value" 
    2732 msgstr "" 
    2733  
    2734 #: plugins/widgets/index.php:266 
    2735 msgid "Here are the following available widgets for your blog:" 
    2736 msgstr "" 
    2737  
    2738 #: plugins/widgets/index.php:273 
    2739 msgid "Widget ID:" 
    2740 msgstr "" 
    2741  
    2742 #: plugins/widgets/index.php:280 
    27432704msgid "No setting for this widget" 
    27442705msgstr "" 
    27452706 
    2746 #: plugins/widgets/index.php:289 
     2707#: plugins/widgets/index.php:270 
    27472708msgid "boolean" 
    27482709msgstr "" 
    27492710 
    2750 #: plugins/widgets/index.php:289 plugins/widgets/index.php:293 
     2711#: plugins/widgets/index.php:270 plugins/widgets/index.php:274 
    27512712msgid "possible values:" 
    27522713msgstr "" 
    27532714 
    2754 #: plugins/widgets/index.php:293 
     2715#: plugins/widgets/index.php:274 
    27552716msgid "listitem" 
    27562717msgstr "" 
    27572718 
    2758 #: plugins/widgets/index.php:298 
     2719#: plugins/widgets/index.php:279 
    27592720msgid "string" 
    27602721msgstr "" 
    27612722 
    2762 #: plugins/widgets/index.php:304 
     2723#: plugins/widgets/index.php:285 
    27632724msgid "Setting name:" 
    27642725msgstr "" 
    27652726 
    2766 #: plugins/widgets/index.php:325 
     2727#: plugins/widgets/index.php:306 
    27672728msgid "No widget." 
    27682729msgstr "" 
    27692730 
    2770 #: plugins/widgets/index.php:339 
     2731#: plugins/widgets/index.php:320 
    27712732msgid "Remove widget" 
    27722733msgstr "" 
    27732734 
    2774 #: plugins/widgets/index.php:352 
     2735#: plugins/widgets/index.php:333 
    27752736msgid "Drag widgets here to remove them from this sidebar." 
    27762737msgstr "" 
  • locales/en/main.po

    r2356 r2369  
    88"Project-Id-Version: Dotclear 2\n" 
    99"Report-Msgid-Bugs-To: \n" 
    10 "POT-Creation-Date: 2013-10-14 13:18+0200\n" 
     10"POT-Creation-Date: 2013-10-15 10:10+0200\n" 
    1111"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 
    1212"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 
  • locales/en/plugins.po

    r2356 r2369  
    88"Project-Id-Version: Dotclear 2\n" 
    99"Report-Msgid-Bugs-To: \n" 
    10 "POT-Creation-Date: 2013-10-14 13:18+0200\n" 
     10"POT-Creation-Date: 2013-10-15 10:10+0200\n" 
    1111"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 
    1212"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 
     
    13411341msgstr "" 
    13421342 
     1343#, php-format 
     1344msgid "You can configure common options through the <a href=\"%s\">plugins manager</a>." 
     1345msgstr "" 
     1346 
    13431347msgid "New page" 
    13441348msgstr "" 
     
    19301934msgstr "" 
    19311935 
    1932 msgid "Use of widgets" 
    1933 msgstr "" 
    1934  
    1935 msgid "Widgets may be used to add various blocks of content to be displayed on your public pages. To add a widget, drag it from the Available widgets list on the left to one of the sidebars on the right of this page. You can order your widgets in a sidebar by dragging them up or down. You must update sidebars to apply your changes." 
    1936 msgstr "" 
    1937  
    1938 msgid "Once included in a sidebar, widgets have configuration options that you can reach by clicking on the arrow next to their name." 
    1939 msgstr "" 
    1940  
    1941 msgid "Reset sidebars to get back to default widgets installation." 
    1942 msgstr "" 
    1943  
    1944 msgid "Widget templates tags" 
    1945 msgstr "" 
    1946  
    1947 msgid "If you are allowed to edit your theme templates, you can directly add widgets as templates tags, with their own configuration." 
    1948 msgstr "" 
    1949  
    1950 msgid "To add a widget in your template, you need to write code like this:" 
    1951 msgstr "" 
    1952  
    1953 msgid "Widget ID" 
    1954 msgstr "" 
    1955  
    1956 msgid "Setting name" 
    1957 msgstr "" 
    1958  
    1959 msgid "Setting value" 
    1960 msgstr "" 
    1961  
    1962 msgid "Here are the following available widgets for your blog:" 
    1963 msgstr "" 
    1964  
    19651936msgid "Widget ID:" 
    19661937msgstr "" 
  • locales/fr/main.po

    r2356 r2369  
    1111"Project-Id-Version: Dotclear\n" 
    1212"Report-Msgid-Bugs-To: \n" 
    13 "POT-Creation-Date: 2013-10-14 13:18+0200\n" 
     13"POT-Creation-Date: 2013-10-15 10:10+0200\n" 
    1414"PO-Revision-Date: 2012-08-13 07:13+0000\n" 
    1515"Last-Translator: xave <xave@dotclear.net>\n" 
  • locales/fr/plugins.po

    r2356 r2369  
    1111"Project-Id-Version: Dotclear\n" 
    1212"Report-Msgid-Bugs-To: \n" 
    13 "POT-Creation-Date: 2013-10-14 13:18+0200\n" 
     13"POT-Creation-Date: 2013-10-15 10:10+0200\n" 
    1414"PO-Revision-Date: 2012-11-06 10:04+0100\n" 
    1515"Last-Translator: Franck Paul <carnet.franck.paul@gmail.com>\n" 
     
    13451345msgstr "Cela peut prendre un certain temps." 
    13461346 
     1347#, php-format 
     1348msgid "You can configure common options through the <a href=\"%s\">plugins manager</a>." 
     1349msgstr "Vous pouvez configurer les options communes via le <a href=\"%s\">gestionnaire de plugins</a>." 
     1350 
    13471351msgid "New page" 
    13481352msgstr "Nouvelle page" 
     
    19341938msgstr "Réinitialiser les volets" 
    19351939 
    1936 msgid "Use of widgets" 
    1937 msgstr "Utilisation des widgets" 
    1938  
    1939 msgid "Widgets may be used to add various blocks of content to be displayed on your public pages. To add a widget, drag it from the Available widgets list on the left to one of the sidebars on the right of this page. You can order your widgets in a sidebar by dragging them up or down. You must update sidebars to apply your changes." 
    1940 msgstr "Les widgets sont utilisés pour ajouter des blocs de contenus divers dans vos pages publiques. Pour ajouter un widget, faites-le glisser depuis la liste des Widgets disponibles à gauche jusqu'à l'un des bandeaux sur la droite de la page. Vous pouvez ré-ordonner vos widgets dans un bandeau en le faisant glisser vers le haut ou vers le bas. Vous devez mettre à jour les bandeaux pour enregistrer vos modifications." 
    1941  
    1942 msgid "Once included in a sidebar, widgets have configuration options that you can reach by clicking on the arrow next to their name." 
    1943 msgstr "Une fois inclus dans un bandeau, les widgets ont généralement des options que vous pouvez configurer. Cliquez sur la flèche à côté de leur nom pour y accéder." 
    1944  
    1945 msgid "Reset sidebars to get back to default widgets installation." 
    1946 msgstr "Réinitialisez les bandeaux pour retrouver les widgets par défaut de votre installation." 
    1947  
    1948 msgid "Widget templates tags" 
    1949 msgstr "Balises de widget" 
    1950  
    1951 msgid "If you are allowed to edit your theme templates, you can directly add widgets as templates tags, with their own configuration." 
    1952 msgstr "Si vous êtes autorisé à modifier vos fichiers de thème, vous pouvez ajouter des widgets sous forme de balise, avec leur propre configuration." 
    1953  
    1954 msgid "To add a widget in your template, you need to write code like this:" 
    1955 msgstr "Pour ajouter un widget à votre thème, vous devez insérer un code similaire à :" 
    1956  
    1957 msgid "Widget ID" 
    1958 msgstr "ID du widget" 
    1959  
    1960 msgid "Setting name" 
    1961 msgstr "Nom de l'élément de réglage" 
    1962  
    1963 msgid "Setting value" 
    1964 msgstr "Valeur de l'élément de réglage" 
    1965  
    1966 msgid "Here are the following available widgets for your blog:" 
    1967 msgstr "Voici les widgets disponibles pour votre blog :" 
    1968  
    19691940msgid "Widget ID:" 
    19701941msgstr "Identifiant du widget :" 
     
    19971968msgstr "Glisser les widgets ici pour les retirer du volet." 
    19981969 
     1970#~ msgid "Use of widgets" 
     1971#~ msgstr "Utilisation des widgets" 
     1972 
     1973#~ msgid "Widgets may be used to add various blocks of content to be displayed on your public pages. To add a widget, drag it from the Available widgets list on the left to one of the sidebars on the right of this page. You can order your widgets in a sidebar by dragging them up or down. You must update sidebars to apply your changes." 
     1974#~ msgstr "Les widgets sont utilisés pour ajouter des blocs de contenus divers dans vos pages publiques. Pour ajouter un widget, faites-le glisser depuis la liste des Widgets disponibles à gauche jusqu'à l'un des bandeaux sur la droite de la page. Vous pouvez ré-ordonner vos widgets dans un bandeau en le faisant glisser vers le haut ou vers le bas. Vous devez mettre à jour les bandeaux pour enregistrer vos modifications." 
     1975 
     1976#~ msgid "Once included in a sidebar, widgets have configuration options that you can reach by clicking on the arrow next to their name." 
     1977#~ msgstr "Une fois inclus dans un bandeau, les widgets ont généralement des options que vous pouvez configurer. Cliquez sur la flèche à côté de leur nom pour y accéder." 
     1978 
     1979#~ msgid "Reset sidebars to get back to default widgets installation." 
     1980#~ msgstr "Réinitialisez les bandeaux pour retrouver les widgets par défaut de votre installation." 
     1981 
     1982#~ msgid "Widget templates tags" 
     1983#~ msgstr "Balises de widget" 
     1984 
     1985#~ msgid "If you are allowed to edit your theme templates, you can directly add widgets as templates tags, with their own configuration." 
     1986#~ msgstr "Si vous êtes autorisé à modifier vos fichiers de thème, vous pouvez ajouter des widgets sous forme de balise, avec leur propre configuration." 
     1987 
     1988#~ msgid "To add a widget in your template, you need to write code like this:" 
     1989#~ msgstr "Pour ajouter un widget à votre thème, vous devez insérer un code similaire à :" 
     1990 
     1991#~ msgid "Widget ID" 
     1992#~ msgstr "ID du widget" 
     1993 
     1994#~ msgid "Setting name" 
     1995#~ msgstr "Nom de l'élément de réglage" 
     1996 
     1997#~ msgid "Setting value" 
     1998#~ msgstr "Valeur de l'élément de réglage" 
     1999 
     2000#~ msgid "Here are the following available widgets for your blog:" 
     2001#~ msgstr "Voici les widgets disponibles pour votre blog :" 
     2002 
    19992003#~ msgid "Updates are available" 
    20002004#~ msgstr "Des mises à jour sont disponibles" 
  • plugins/widgets/index.php

    r2256 r2369  
    247247 
    248248$widget_elements = new stdClass; 
    249 $widget_elements->content = 
    250 '<h4>'.__('Use of widgets').'</h4>'. 
    251 '<p>'.__('Widgets may be used to add various blocks of content to be displayed on your public pages. To add a widget, '. 
    252 'drag it from the Available widgets list on the left to one of the sidebars on the right of this page. You can order '. 
    253 'your widgets in a sidebar by dragging them up or down. You must update sidebars to apply your changes.').'</p>'. 
    254 '<p>'.__('Once included in a sidebar, widgets have configuration options that you can reach by clicking on the arrow next '. 
    255 'to their name.').'</p>'. 
    256 '<p>'.__('Reset sidebars to get back to default widgets installation.').'</p>'. 
    257 '<h4>'.__('Widget templates tags').'</h4>'. 
    258 '<div id="widgets-tpl">'. 
    259 '<p>'.__('If you are allowed to edit your theme templates, you can directly add widgets as '. 
    260 'templates tags, with their own configuration.').'</p>'. 
    261 '<p>'.__('To add a widget in your template, you need to write code like this:').'</p>'. 
    262 '<pre>&lt;tpl:Widget id="<strong>'.__('Widget ID').'</strong>"&gt; 
    263   &lt;setting name="<strong>'.__('Setting name').'</strong>"&gt;<strong>'.__('Setting value').'</strong>&lt;/setting&gt; 
    264   ... 
    265 &lt;/tpl:Widget&gt;</pre>'. 
    266 '<p>'.__('Here are the following available widgets for your blog:').'</p>'; 
    267  
    268 $widget_elements->content .= '<dl>'; 
     249$widget_elements->content = '<dl>'; 
    269250foreach ($__widgets->elements() as $w) 
    270251{ 
     
    312293$widget_elements->content .= '</dl></div>'; 
    313294 
    314 dcPage::helpBlock($widget_elements); 
     295dcPage::helpBlock('widgets',$widget_elements); 
    315296 
    316297function sidebarWidgets($id,$title,$widgets,$pr,$default_widgets,&$j) 
Note: See TracChangeset for help on using the changeset viewer.

Sites map