Changeset 26538
- Timestamp:
- 12/14/07 16:10:52 (7 months ago)
- Location:
- wp-polls/trunk
- Files:
-
- 4 added
- 2 removed
- 5 modified
-
polls-admin-js-packed.js (added)
-
polls-admin-js.js (added)
-
polls-admin-js.php (deleted)
-
polls-js-packed.js (added)
-
polls-js.js (added)
-
polls-js.php (deleted)
-
polls-manager.php (modified) (2 diffs)
-
readme.html (modified) (1 diff)
-
wp-polls.mo (modified) (previous)
-
wp-polls.php (modified) (2 diffs)
-
wp-polls.pot (modified) (18 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-polls/trunk/polls-manager.php
r22648 r26538 342 342 echo '<td width="20%"><strong>'.sprintf(__('Answer %s:', 'wp-polls'), $i).'</strong></td>'."\n"; 343 343 echo "<td width=\"60%\"><input type=\"text\" size=\"50\" maxlength=\"200\" name=\"polla_aid-$polla_aid\" value=\"".htmlspecialchars($polla_answers)."\" /> "; 344 echo "<input type=\"button\" value=\"".__('Delete', 'wp-polls')."\" onclick=\"delete_poll_ans($poll_id, $polla_aid, $polla_votes, '".sprintf(js_escape(__('You are about to delete this poll\'s answer \'%s\'.', 'wp-polls')), htmlspecialchars($polla_answers))."');\" class=\"button\" /></td>\n";344 echo "<input type=\"button\" value=\"".__('Delete', 'wp-polls')."\" onclick=\"delete_poll_ans($poll_id, $polla_aid, $polla_votes, '".sprintf(js_escape(__('You are about to delete this poll\'s answer \'%s\'.', 'wp-polls')), js_escape(htmlspecialchars($polla_answers)))."');\" class=\"button\" /></td>\n"; 345 345 echo "<td width=\"20%\" align=\"right\">$polla_votes <input type=\"text\" size=\"4\" id=\"polla_votes-$polla_aid\" name=\"polla_votes-$polla_aid\" value=\"$polla_votes\" onblur=\"check_totalvotes();\" /></td>\n</tr>\n"; 346 346 $poll_actual_totalvotes += $polla_votes; … … 542 542 echo "<td><a href=\"$base_page&mode=logs&id=$poll_id\" class=\"edit\">".__('Logs', 'wp-polls')."</a></td>\n"; 543 543 echo "<td><a href=\"$base_page&mode=edit&id=$poll_id\" class=\"edit\">".__('Edit', 'wp-polls')."</a></td>\n"; 544 echo "<td><a href=\"#DeletePoll\" onclick=\"delete_poll($poll_id, '".sprintf(js_escape(__('You are about to delete this poll, \'%s\'.', 'wp-polls')), $poll_question)."')\" class=\"delete\">".__('Delete', 'wp-polls')."</a></td>\n";544 echo "<td><a href=\"#DeletePoll\" onclick=\"delete_poll($poll_id, '".sprintf(js_escape(__('You are about to delete this poll, \'%s\'.', 'wp-polls')), js_escape($poll_question))."')\" class=\"delete\">".__('Delete', 'wp-polls')."</a></td>\n"; 545 545 echo '</tr>'; 546 546 $i++; -
wp-polls/trunk/readme.html
r25647 r26538 291 291 <li>NEW: Uses wp-polls-widget.php Instead Of polls-widget.php</li> 292 292 <li>NEW: Use number_format_i18n() Instead</li> 293 <li>NEW: Renamed polls-admin-js.php To polls-admin-js.js and Move The Dynamic Javascript Variables To The PHP Pages</li> 294 <li>NEW: Renamed polls-js.php To polls-js.js and Move The Dynamic Javascript Variables To The PHP Pages</li> 295 <li>NEW: Uses polls-js-packed.js And polls-admin-js-packed.js</li> 296 <li>FIXED: Unable To Delete Poll Or Poll Answers If There Is Quotes Within The Poll Or Poll Answer</li> 293 297 <li>FIXED: number_format() Not Used In Polls Archive</li> 294 298 <li>FIXED: Unable To Schedule Future Poll If The Year Is Different From Current Year</li> -
wp-polls/trunk/wp-polls.php
r25647 r26538 153 153 add_action('wp_head', 'poll_header'); 154 154 function poll_header() { 155 $poll_ajax_style = get_option('poll_ajax_style'); 156 $pollbar = get_option('poll_bar'); 157 wp_register_script('wp-polls', '/wp-content/plugins/wp-polls/polls-js-packed.js', false, '2.30'); 155 158 echo "\n".'<!-- Start Of Script Generated By WP-Polls 2.30 -->'."\n"; 156 wp_register_script('wp-polls', '/wp-content/plugins/wp-polls/polls-js.php', false, '2.30'); 159 echo '<script type="text/javascript">'."\n"; 160 echo '/* <![CDATA[ */'."\n"; 161 echo "\t".'var polls_ajax_url = \''.get_option('siteurl').'/wp-content/plugins/wp-polls/wp-polls.php'."';\n"; 162 echo "\t".'var polls_text_wait = \''. __('Your last request is still being processed. Please wait a while ...', 'wp-polls').'\';'."\n"; 163 echo "\t".'var polls_text_valid = \''.__('Please choose a valid poll answer.', 'wp-polls').'\';'."\n"; 164 echo "\t".'var polls_text_multiple = \''.__('Maximum number of choices allowed:', 'wp-polls').'\';'."\n"; 165 echo "\t".'var poll_show_loading = \''.intval($poll_ajax_style['loading']).'\';'."\n"; 166 echo "\t".'var poll_show_fading = \''.intval($poll_ajax_style['fading']).'\';'."\n"; 167 echo '/* ]]> */'."\n"; 168 echo '</script>'."\n"; 157 169 wp_print_scripts(array('sack', 'wp-polls')); 158 170 echo '<link rel="stylesheet" href="'.get_option('siteurl').'/wp-content/plugins/wp-polls/polls-css.css" type="text/css" media="screen" />'."\n"; 159 echo '<style type="text/css">'."\n"; 160 $pollbar = get_option('poll_bar'); 171 echo '<style type="text/css">'."\n"; 161 172 if($pollbar['style'] == 'use_css') { 162 173 echo '.wp-polls .pollbar {'."\n"; … … 186 197 add_action('admin_head', 'poll_header_admin'); 187 198 function poll_header_admin() { 188 wp_register_script('wp-polls-admin', '/wp-content/plugins/wp-polls/polls-admin-js.php', false, '2.30'); 199 wp_register_script('wp-polls-admin', '/wp-content/plugins/wp-polls/polls-admin-js-packed.js', false, '2.30'); 200 echo "\n".'<!-- Start Of Script Generated By WP-Polls 2.30 -->'."\n"; 201 echo '<script type="text/javascript">'."\n"; 202 echo '/* <![CDATA[ */'."\n"; 203 echo "\t".'var polls_admin_ajax_url = \''.get_option('siteurl').'/wp-content/plugins/wp-polls/polls-admin-ajax.php'."';\n"; 204 echo "\t".'var polls_admin_text_delete_poll = \''.__('Delete Poll', 'wp-polls').'\';'."\n"; 205 echo "\t".'var polls_admin_text_no_poll_logs = \''.__('No poll logs available.', 'wp-polls').'\';'."\n"; 206 echo "\t".'var polls_admin_text_delete_all_logs = \''.__('Delete All Logs', 'wp-polls').'\';'."\n"; 207 echo "\t".'var polls_admin_text_checkbox_delete_all_logs = \''.__('Please check the \\\'Yes\\\' checkbox if you want to delete all logs.', 'wp-polls').'\';'."\n"; 208 echo "\t".'var polls_admin_text_delete_poll_logs = \''.__('Delete Logs For This Poll Only', 'wp-polls').'\';'."\n"; 209 echo "\t".'var polls_admin_text_checkbox_delete_poll_logs = \''.__('Please check the \\\'Yes\\\' checkbox if you want to delete all logs for this poll ONLY.', 'wp-polls').'\';'."\n"; 210 echo "\t".'var polls_admin_text_delete_poll_ans = \''.__('Delete Poll Answer', 'wp-polls').'\';'."\n"; 211 echo "\t".'var polls_admin_text_open_poll = \''.__('Open Poll', 'wp-polls').'\';'."\n"; 212 echo "\t".'var polls_admin_text_close_poll = \''.__('Close Poll', 'wp-polls').'\';'."\n"; 213 echo "\t".'var polls_admin_text_enter_poll_id = \''.__('Enter Poll ID', 'wp-polls').'\';'."\n"; 214 echo "\t".'var polls_admin_text_enter_poll_id_again = \''.__('Error: Poll ID must be numeric', 'wp-polls').'\n\n'.__('Please enter Poll ID again', 'wp-polls').'\';'."\n"; 215 echo '/* ]]> */'."\n"; 216 echo '</script>'."\n"; 189 217 wp_print_scripts(array('sack', 'wp-polls-admin')); 190 218 echo '<link rel="stylesheet" href="'.get_option('siteurl').'/wp-content/plugins/wp-polls/polls-css.css" type="text/css" media="screen" />'."\n"; 219 echo '<!-- End Of Script Generated By WP-Polls 2.30 -->'."\n"; 191 220 } 192 221 -
wp-polls/trunk/wp-polls.pot
r25647 r26538 3 3 "Project-Id-Version: WP-Polls 2.30\n" 4 4 "POT-Creation-Date: \n" 5 "PO-Revision-Date: 2007-1 1-29 22:50+0800\n"5 "PO-Revision-Date: 2007-12-15 00:06+0800\n" 6 6 "Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n" 7 7 "Language-Team: Lester Chan <gamerz84@hotmail.com>\n" … … 139 139 140 140 #: polls-admin-ajax.php:38 141 #: polls-admin-js.php:78142 141 #: polls-manager.php:590 142 #: wp-polls.php:206 143 143 msgid "Delete All Logs" 144 144 msgstr "" … … 153 153 154 154 #: polls-admin-ajax.php:49 155 #: polls-admin-js.php:106156 155 #: polls-logs.php:382 156 #: wp-polls.php:208 157 157 msgid "Delete Logs For This Poll Only" 158 158 msgstr "" … … 169 169 170 170 #: polls-admin-ajax.php:62 171 #: polls-admin-js.php:148171 #: wp-polls.php:210 172 172 msgid "Delete Poll Answer" 173 173 msgstr "" … … 184 184 185 185 #: polls-admin-ajax.php:78 186 #: polls-admin-js.php:172187 186 #: polls-manager.php:442 187 #: wp-polls.php:211 188 188 msgid "Open Poll" 189 189 msgstr "" … … 200 200 201 201 #: polls-admin-ajax.php:89 202 #: polls-admin-js.php:195203 202 #: polls-manager.php:441 203 #: wp-polls.php:212 204 204 msgid "Close Poll" 205 205 msgstr "" … … 216 216 217 217 #: polls-admin-ajax.php:100 218 #: polls-admin-js.php:56218 #: wp-polls.php:204 219 219 msgid "Delete Poll" 220 220 msgstr "" … … 228 228 #, php-format 229 229 msgid "Poll '%s' Deleted Successfully" 230 msgstr ""231 232 #: polls-admin-js.php:69233 #: polls-manager.php:593234 msgid "No poll logs available."235 msgstr ""236 237 #: polls-admin-js.php:85238 msgid "Please check the 'Yes' checkbox if you want to delete all logs."239 msgstr ""240 241 #: polls-admin-js.php:94242 #: polls-logs.php:371243 #: polls-logs.php:385244 msgid "No poll logs available for this poll."245 msgstr ""246 247 #: polls-admin-js.php:114248 msgid "Please check the 'Yes' checkbox if you want to delete all logs for this poll ONLY."249 msgstr ""250 251 #: polls-admin-js.php:206252 msgid "Enter Poll ID"253 msgstr ""254 255 #: polls-admin-js.php:208256 msgid "Error: Poll ID must be numeric"257 msgstr ""258 259 #: polls-admin-js.php:208260 msgid "Please enter Poll ID again"261 msgstr ""262 263 #: polls-js.php:36264 msgid "Your last request is still being processed. Please wait a while ..."265 msgstr ""266 267 #: polls-js.php:37268 msgid "Please choose a valid poll answer."269 msgstr ""270 271 #: polls-js.php:38272 msgid "Maximum number of choices allowed:"273 230 msgstr "" 274 231 … … 413 370 #: polls-manager.php:489 414 371 #: polls-manager.php:497 415 #: wp-polls.php:3 50416 #: wp-polls.php:3 55417 #: wp-polls.php:4 66418 #: wp-polls.php: 471419 #: wp-polls.php:8 46420 #: wp-polls.php:8 50372 #: wp-polls.php:379 373 #: wp-polls.php:384 374 #: wp-polls.php:495 375 #: wp-polls.php:500 376 #: wp-polls.php:875 377 #: wp-polls.php:879 421 378 #, php-format 422 379 msgid "%s @ %s" … … 443 400 #: polls-logs.php:369 444 401 msgid "No poll logs matches the filter." 402 msgstr "" 403 404 #: polls-logs.php:371 405 #: polls-logs.php:385 406 msgid "No poll logs available for this poll." 445 407 msgstr "" 446 408 … … 582 544 #: polls-templates.php:116 583 545 #: polls-templates.php:119 584 #: wp-polls.php:13 14585 #: wp-polls.php:13 17546 #: wp-polls.php:1343 547 #: wp-polls.php:1346 586 548 msgid "Total Voters" 587 549 msgstr "" … … 596 558 597 559 #: polls-manager.php:495 598 #: wp-polls.php:3 53599 #: wp-polls.php:4 69600 #: wp-polls.php:8 48560 #: wp-polls.php:382 561 #: wp-polls.php:498 562 #: wp-polls.php:877 601 563 msgid "No Expiry" 602 564 msgstr "" … … 666 628 msgstr "" 667 629 630 #: polls-manager.php:593 631 #: wp-polls.php:205 632 msgid "No poll logs available." 633 msgstr "" 634 668 635 #: polls-manager.php:597 669 636 msgid "Note:<br />If your logging method is by IP and Cookie or by Cookie, users may still be unable to vote if they have voted before as the cookie is still stored in their computer." … … 829 796 #: polls-templates.php:110 830 797 #: polls-templates.php:113 831 #: wp-polls.php:13 11832 #: wp-polls.php:13 12798 #: wp-polls.php:1340 799 #: wp-polls.php:1341 833 800 msgid "Votes" 834 801 msgstr "" … … 1014 981 #: polls-templates.php:104 1015 982 #: polls-templates.php:119 1016 #: wp-polls.php:13 051017 #: wp-polls.php:13 18983 #: wp-polls.php:1334 984 #: wp-polls.php:1347 1018 985 msgid "Vote" 1019 986 msgstr "" 1020 987 1021 988 #: polls-templates.php:104 1022 #: wp-polls.php:13 06989 #: wp-polls.php:1335 1023 990 msgid "View Results Of This Poll" 1024 991 msgstr "" 1025 992 1026 993 #: polls-templates.php:104 1027 #: wp-polls.php:13 06994 #: wp-polls.php:1335 1028 995 msgid "View Results" 1029 996 msgstr "" 1030 997 1031 998 #: polls-templates.php:113 1032 #: wp-polls.php:13 12999 #: wp-polls.php:1341 1033 1000 msgid "You Have Voted For This Choice" 1034 1001 msgstr "" 1035 1002 1036 1003 #: polls-templates.php:119 1037 #: wp-polls.php:13 181004 #: wp-polls.php:1347 1038 1005 msgid "Vote For This Poll" 1039 1006 msgstr "" … … 1041 1008 #: polls-templates.php:122 1042 1009 #: polls-usage.php:80 1043 #: wp-polls.php:13 451010 #: wp-polls.php:1374 1044 1011 msgid "Polls Archive" 1045 1012 msgstr "" … … 1054 1021 1055 1022 #: polls-templates.php:131 1056 #: wp-polls.php:13 201023 #: wp-polls.php:1349 1057 1024 msgid "Sorry, there are no polls available at the moment." 1058 1025 msgstr "" 1059 1026 1060 1027 #: polls-templates.php:134 1061 #: wp-polls.php:13 211028 #: wp-polls.php:1350 1062 1029 msgid "An error has occurred when processing your poll." 1063 1030 msgstr "" … … 1513 1480 msgstr "" 1514 1481 1515 #: wp-polls.php:201 1482 #: wp-polls.php:162 1483 msgid "Your last request is still being processed. Please wait a while ..." 1484 msgstr "" 1485 1486 #: wp-polls.php:163 1487 msgid "Please choose a valid poll answer." 1488 msgstr "" 1489 1490 #: wp-polls.php:164 1491 msgid "Maximum number of choices allowed:" 1492 msgstr "" 1493 1516 1494 #: wp-polls.php:207 1495 msgid "Please check the \\'Yes\\' checkbox if you want to delete all logs." 1496 msgstr "" 1497 1498 #: wp-polls.php:209 1499 msgid "Please check the \\'Yes\\' checkbox if you want to delete all logs for this poll ONLY." 1500 msgstr "" 1501 1502 #: wp-polls.php:213 1503 msgid "Enter Poll ID" 1504 msgstr "" 1505 1506 #: wp-polls.php:214 1507 msgid "Error: Poll ID must be numeric" 1508 msgstr "" 1509 1510 #: wp-polls.php:214 1511 msgid "Please enter Poll ID again" 1512 msgstr "" 1513 1514 #: wp-polls.php:230 1515 #: wp-polls.php:236 1517 1516 msgid "Poll" 1518 1517 msgstr "" 1519 1518 1520 #: wp-polls.php:2 081519 #: wp-polls.php:237 1521 1520 msgid "Insert Poll" 1522 1521 msgstr "" 1523 1522 1524 #: wp-polls.php:4 311525 #: wp-polls.php: 5911523 #: wp-polls.php:460 1524 #: wp-polls.php:620 1526 1525 msgid "Loading" 1527 1526 msgstr "" 1528 1527 1529 #: wp-polls.php:6 341528 #: wp-polls.php:663 1530 1529 msgid "Note: There is a poll embedded within this post, please visit the site to participate in this post's poll." 1531 1530 msgstr "" 1532 1531 1533 #: wp-polls.php: 9751532 #: wp-polls.php:1004 1534 1533 msgid "Previous Page" 1535 1534 msgstr "" 1536 1535 1537 #: wp-polls.php: 9831536 #: wp-polls.php:1012 1538 1537 msgid "Next Page" 1539 1538 msgstr "" 1540 1539 1541 #: wp-polls.php: 9921540 #: wp-polls.php:1021 1542 1541 msgid "Pages" 1543 1542 msgstr "" 1544 1543 1545 #: wp-polls.php: 9941544 #: wp-polls.php:1023 1546 1545 msgid "Go to First Page" 1547 1546 msgstr "" 1548 1547 1549 #: wp-polls.php: 9941548 #: wp-polls.php:1023 1550 1549 msgid "First" 1551 1550 msgstr "" 1552 1551 1553 #: wp-polls.php: 9971554 #: wp-polls.php:10 091552 #: wp-polls.php:1026 1553 #: wp-polls.php:1038 1555 1554 msgid "Go to Page" 1556 1555 msgstr "" 1557 1556 1558 #: wp-polls.php:10 041557 #: wp-polls.php:1033 1559 1558 msgid "Page" 1560 1559 msgstr "" 1561 1560 1562 #: wp-polls.php:10 121561 #: wp-polls.php:1041 1563 1562 msgid "Go to Last Page" 1564 1563 msgstr "" 1565 1564 1566 #: wp-polls.php:10 121565 #: wp-polls.php:1041 1567 1566 msgid "Last" 1568 1567 msgstr "" 1569 1568 1570 #: wp-polls.php:1 1851569 #: wp-polls.php:1214 1571 1570 #, php-format 1572 1571 msgid "Unable To Update Poll Total Votes And Poll Total Voters. Poll ID #%s" 1573 1572 msgstr "" 1574 1573 1575 #: wp-polls.php:1 1891574 #: wp-polls.php:1218 1576 1575 #, php-format 1577 1576 msgid "You Had Already Voted For This Poll. Poll ID #%s" 1578 1577 msgstr "" 1579 1578 1580 #: wp-polls.php:1 1931579 #: wp-polls.php:1222 1581 1580 #, php-format 1582 1581 msgid "Invalid Poll ID. Poll ID #%s" 1583 1582 msgstr "" 1584 1583 1585 #: wp-polls.php:12 191586 #: wp-polls.php:12 211587 #: wp-polls.php:12 311584 #: wp-polls.php:1248 1585 #: wp-polls.php:1250 1586 #: wp-polls.php:1260 1588 1587 msgid "WP-Polls" 1589 1588 msgstr "" 1590 1589 1591 #: wp-polls.php:12 331590 #: wp-polls.php:1262 1592 1591 msgid "polls were created." 1593 1592 msgstr "" 1594 1593 1595 #: wp-polls.php:12 341594 #: wp-polls.php:1263 1596 1595 msgid "polls' answers were given." 1597 1596 msgstr "" 1598 1597 1599 #: wp-polls.php:12 351598 #: wp-polls.php:1264 1600 1599 msgid "votes were casted." 1601 1600 msgstr "" 1602 1601 1603 #: wp-polls.php:1 2891602 #: wp-polls.php:1318 1604 1603 msgid "How Is My Site?" 1605 1604 msgstr "" 1606 1605 1607 #: wp-polls.php:1 2921606 #: wp-polls.php:1321 1608 1607 msgid "Good" 1609 1608 msgstr "" 1610 1609 1611 #: wp-polls.php:1 2931610 #: wp-polls.php:1322 1612 1611 msgid "Excellent" 1613 1612 msgstr "" 1614 1613 1615 #: wp-polls.php:1 2941614 #: wp-polls.php:1323 1616 1615 msgid "Bad" 1617 1616 msgstr "" 1618 1617 1619 #: wp-polls.php:1 2951618 #: wp-polls.php:1324 1620 1619 msgid "Can Be Improved" 1621 1620 msgstr "" 1622 1621 1623 #: wp-polls.php:1 2961622 #: wp-polls.php:1325 1624 1623 msgid "No Comments" 1625 1624 msgstr ""
