Changeset 2509:5ab9027dee05
- Timestamp:
- 11/01/13 14:26:00 (10 years ago)
- Branch:
- 2.6
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
locales/_pot/main.pot
r2508 r2509 8 8 "Project-Id-Version: Dotclear 2\n" 9 9 "Report-Msgid-Bugs-To: \n" 10 "POT-Creation-Date: 2013-11-01 08:06+0100\n"10 "POT-Creation-Date: 2013-11-01 14:23+0100\n" 11 11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 12 12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" -
locales/_pot/plugins.pot
r2508 r2509 8 8 "Project-Id-Version: Dotclear 2\n" 9 9 "Report-Msgid-Bugs-To: \n" 10 "POT-Creation-Date: 2013-11-01 08:06+0100\n"10 "POT-Creation-Date: 2013-11-01 14:23+0100\n" 11 11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 12 12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 275 275 #: plugins/antispam/filters/class.dc.filter.ip.php:131 276 276 #: plugins/antispam/filters/class.dc.filter.words.php:122 277 #: plugins/widgets/index.php:2 59277 #: plugins/widgets/index.php:261 278 278 msgid "Add" 279 279 msgstr "" … … 1279 1279 1280 1280 #: plugins/importExport/inc/class.dc.ieModule.php:77 1281 #: plugins/widgets/index.php:3 191281 #: plugins/widgets/index.php:321 1282 1282 msgid "or" 1283 1283 msgstr "" … … 2665 2665 msgstr "" 2666 2666 2667 #: plugins/widgets/index.php:213 plugins/widgets/index.php:240 2667 #: plugins/widgets/index.php:186 2668 msgid "Sidebars and their widgets have been saved." 2669 msgstr "" 2670 2671 #: plugins/widgets/index.php:204 2672 msgid "Sidebars have been resetting." 2673 msgstr "" 2674 2675 #: plugins/widgets/index.php:215 plugins/widgets/index.php:242 2668 2676 msgid "Widgets" 2669 2677 msgstr "" 2670 2678 2671 #: plugins/widgets/index.php:23 02679 #: plugins/widgets/index.php:232 2672 2680 msgid "Are you sure you want to reset sidebars?" 2673 2681 msgstr "" 2674 2682 2675 #: plugins/widgets/index.php:24 72683 #: plugins/widgets/index.php:249 2676 2684 msgid "Available widgets" 2677 2685 msgstr "" 2678 2686 2679 #: plugins/widgets/index.php:2 482687 #: plugins/widgets/index.php:250 2680 2688 msgid "Drag widgets from this list to one of the sidebars, for add." 2681 2689 msgstr "" 2682 2690 2683 #: plugins/widgets/index.php:25 5 plugins/widgets/index.php:3712691 #: plugins/widgets/index.php:257 plugins/widgets/index.php:373 2684 2692 msgid "order" 2685 2693 msgstr "" 2686 2694 2687 #: plugins/widgets/index.php:25 72695 #: plugins/widgets/index.php:259 2688 2696 msgid "Append to:" 2689 2697 msgstr "" 2690 2698 2691 #: plugins/widgets/index.php:2 682699 #: plugins/widgets/index.php:270 2692 2700 msgid "Add widgets to sidebars" 2693 2701 msgstr "" 2694 2702 2695 #: plugins/widgets/index.php:27 52703 #: plugins/widgets/index.php:277 2696 2704 msgid "Navigation sidebar" 2697 2705 msgstr "" 2698 2706 2699 #: plugins/widgets/index.php:28 12707 #: plugins/widgets/index.php:283 2700 2708 msgid "Extra sidebar" 2701 2709 msgstr "" 2702 2710 2703 #: plugins/widgets/index.php:28 72711 #: plugins/widgets/index.php:289 2704 2712 msgid "Custom sidebar" 2705 2713 msgstr "" 2706 2714 2707 #: plugins/widgets/index.php:29 32715 #: plugins/widgets/index.php:295 2708 2716 msgid "Update sidebars" 2709 2717 msgstr "" 2710 2718 2711 #: plugins/widgets/index.php:29 42719 #: plugins/widgets/index.php:296 2712 2720 msgid "Reset sidebars" 2713 2721 msgstr "" 2714 2722 2715 #: plugins/widgets/index.php:30 32723 #: plugins/widgets/index.php:305 2716 2724 msgid "Widget ID:" 2717 2725 msgstr "" 2718 2726 2719 #: plugins/widgets/index.php:31 02727 #: plugins/widgets/index.php:312 2720 2728 msgid "No setting for this widget" 2721 2729 msgstr "" 2722 2730 2723 #: plugins/widgets/index.php:3 192731 #: plugins/widgets/index.php:321 2724 2732 msgid "boolean" 2725 2733 msgstr "" 2726 2734 2727 #: plugins/widgets/index.php:3 19 plugins/widgets/index.php:3232735 #: plugins/widgets/index.php:321 plugins/widgets/index.php:325 2728 2736 msgid "possible values:" 2729 2737 msgstr "" 2730 2738 2731 #: plugins/widgets/index.php:32 32739 #: plugins/widgets/index.php:325 2732 2740 msgid "listitem" 2733 2741 msgstr "" 2734 2742 2735 #: plugins/widgets/index.php:3 282743 #: plugins/widgets/index.php:330 2736 2744 msgid "string" 2737 2745 msgstr "" 2738 2746 2739 #: plugins/widgets/index.php:33 42747 #: plugins/widgets/index.php:336 2740 2748 msgid "Setting name:" 2741 2749 msgstr "" 2742 2750 2743 #: plugins/widgets/index.php:35 72751 #: plugins/widgets/index.php:359 2744 2752 msgid "No widget as far." 2745 2753 msgstr "" 2746 2754 2747 #: plugins/widgets/index.php:36 4 plugins/widgets/index.php:3752755 #: plugins/widgets/index.php:366 plugins/widgets/index.php:377 2748 2756 msgid "Up the widget" 2749 2757 msgstr "" 2750 2758 2751 #: plugins/widgets/index.php:36 5 plugins/widgets/index.php:3762759 #: plugins/widgets/index.php:367 plugins/widgets/index.php:378 2752 2760 msgid "Down the widget" 2753 2761 msgstr "" 2754 2762 2755 #: plugins/widgets/index.php:37 72763 #: plugins/widgets/index.php:379 2756 2764 msgid "Remove the widget" 2757 2765 msgstr "" 2758 2766 2759 #: plugins/widgets/index.php:37 72767 #: plugins/widgets/index.php:379 2760 2768 msgid "Remove widget" 2761 2769 msgstr "" 2762 2770 2763 #: plugins/widgets/index.php:39 02771 #: plugins/widgets/index.php:392 2764 2772 msgid "Drag widgets here to remove." 2765 2773 msgstr "" -
locales/fr/main.po
r2508 r2509 11 11 "Project-Id-Version: Dotclear\n" 12 12 "Report-Msgid-Bugs-To: \n" 13 "POT-Creation-Date: 2013-11-01 08:06+0100\n"13 "POT-Creation-Date: 2013-11-01 14:23+0100\n" 14 14 "PO-Revision-Date: 2012-08-13 07:13+0000\n" 15 15 "Last-Translator: xave <xave@dotclear.net>\n" -
locales/fr/plugins.po
r2508 r2509 11 11 "Project-Id-Version: Dotclear\n" 12 12 "Report-Msgid-Bugs-To: \n" 13 "POT-Creation-Date: 2013-11-01 08:06+0100\n"13 "POT-Creation-Date: 2013-11-01 14:23+0100\n" 14 14 "PO-Revision-Date: 2012-11-06 10:04+0100\n" 15 15 "Last-Translator: Franck Paul <carnet.franck.paul@gmail.com>\n" … … 1902 1902 msgstr "chaîne vide" 1903 1903 1904 msgid "Sidebars and their widgets have been saved." 1905 msgstr "Les volets et leurs widgets ont été enregistrés." 1906 1907 msgid "Sidebars have been resetting." 1908 msgstr "Les volets ont été réinitialisés." 1909 1904 1910 msgid "Widgets" 1905 1911 msgstr "Widgets" -
plugins/widgets/index.php
r2448 r2509 53 53 } 54 54 } 55 55 56 56 # Append 1 widget 57 57 $wid = false; … … 60 60 $wid = $wid[0]; 61 61 } 62 62 63 63 # Append widgets 64 64 if (!empty($addw)) … … 73 73 $widgets_custom = new dcWidgets(); 74 74 } 75 75 76 76 foreach ($addw as $k => $v) 77 77 { … … 91 91 } 92 92 } 93 93 94 94 try { 95 95 $core->blog->settings->addNamespace('widgets'); … … 151 151 $_POST['w'] = array(); 152 152 } 153 153 154 154 try 155 155 { … … 163 163 } 164 164 } 165 165 166 166 if (!isset($_POST['w']['nav'])) { 167 167 $_POST['w']['nav'] = array(); … … 173 173 $_POST['w']['custom'] = array(); 174 174 } 175 175 176 176 $widgets_nav = dcWidgets::loadArray($_POST['w']['nav'],$__widgets); 177 177 $widgets_extra = dcWidgets::loadArray($_POST['w']['extra'],$__widgets); 178 178 $widgets_custom = dcWidgets::loadArray($_POST['w']['custom'],$__widgets); 179 179 180 180 $core->blog->settings->addNamespace('widgets'); 181 181 $core->blog->settings->widgets->put('widgets_nav',$widgets_nav->store()); … … 183 183 $core->blog->settings->widgets->put('widgets_custom',$widgets_custom->store()); 184 184 $core->blog->triggerBlog(); 185 185 186 dcPage::addSuccessNotice(__('Sidebars and their widgets have been saved.')); 186 187 http::redirect($p_url); 187 188 } … … 200 201 $core->blog->settings->widgets->put('widgets_custom',''); 201 202 $core->blog->triggerBlog(); 202 203 204 dcPage::addSuccessNotice(__('Sidebars have been resetting.')); 203 205 http::redirect($p_url); 204 206 } … … 218 220 dcPage::jsLoad('index.php?pf=widgets/widgets.js'); 219 221 ?> 220 <?php 221 $core->auth->user_prefs->addWorkspace('accessibility'); 222 <?php 223 $core->auth->user_prefs->addWorkspace('accessibility'); 222 224 $user_dm_nodragdrop = $core->auth->user_prefs->accessibility->nodragdrop; 223 225 ?> … … 304 306 ($w->desc() != '' ? ' <span class="form-note">'.__($w->desc()).'</span>' : '').'</dt>'. 305 307 '<dd>'; 306 308 307 309 $w_settings = $w->settings(); 308 310 if (empty($w_settings)) … … 329 331 break; 330 332 } 331 333 332 334 $widget_elements->content .= 333 335 '<li>'. … … 347 349 { 348 350 $res = '<h3>'.$title.'</h3>'; 349 351 350 352 if (!($widgets instanceof dcWidgets)) 351 353 { 352 354 $widgets = $default_widgets; 353 355 } 354 356 355 357 $res .= '<ul id="'.$id.'" class="connected">'; 356 358 357 359 $res .= '<li class="empty-widgets" '.(!$widgets->isEmpty() ? 'style="display: none;"' : '').'>'.__('No widget as far.').'</li>'; 358 360 359 361 $i = 0; 360 362 foreach ($widgets->elements() as $w) … … 364 366 $altUp = $i == 0 ? ' alt=""' : ' alt="'.__('Up the widget').'"'; 365 367 $altDown = $i == count($widgets->elements())-1 ? ' alt=""' : ' alt="'.__('Down the widget').'"'; 366 368 367 369 $iname = 'w['.$pr.']['.$i.']'; 368 370 369 371 $res .= 370 372 '<li>'.form::hidden(array($iname.'[id]'),html::escapeHTML($w->id())). … … 380 382 '<div class="widgetSettings hidden-if-drag">'.$w->formSettings($iname,$j).'</div>'. 381 383 '</li>'; 382 384 383 385 $i++; 384 386 $j++; 385 387 } 386 388 387 389 $res .= '</ul>'; 388 390 389 391 $res .= '<ul class="sortable-delete"'.($i > 0 ? '':' style="display: none;"').'><li class="sortable-delete-placeholder">'. 390 392 __('Drag widgets here to remove.').'</li></ul>'; 391 393 392 394 return $res; 393 395 }
Note: See TracChangeset
for help on using the changeset viewer.