Changeset 14641
- Timestamp:
- 06/28/07 08:04:28 (1 year ago)
- Files:
-
- wp-polls/trunk/polls/polls.php (modified) (1 diff)
- wp-polls/trunk/polls/wp-polls.mo (modified) (previous)
- wp-polls/trunk/polls/wp-polls.pot (modified) (7 diffs)
- wp-polls/trunk/readme.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wp-polls/trunk/polls/polls.php
r14411 r14641 1144 1144 1145 1145 1146 ### Function: Plug Into WP-Stats 1147 if(strpos(get_option('stats_url'), $_SERVER['REQUEST_URI']) || strpos($_SERVER['REQUEST_URI'], 'stats-options.php')) { 1148 add_filter('wp_stats_page_admin_plugins', 'polls_page_admin_general_stats'); 1149 add_filter('wp_stats_page_plugins', 'polls_page_general_stats'); 1150 } 1151 1152 1153 ### Function: Add WP-Polls General Stats To WP-Stats Page Options 1154 function polls_page_admin_general_stats($content) { 1155 $stats_display = get_option('stats_display'); 1156 if($stats_display['polls'] == 1) { 1157 $content .= '<input type="checkbox" name="stats_display[]" value="polls" checked="checked" /> '.__('WP-Polls', 'wp-polls').'<br />'."\n"; 1158 } else { 1159 $content .= '<input type="checkbox" name="stats_display[]" value="polls" /> '.__('WP-Polls', 'wp-polls').'<br />'."\n"; 1160 } 1161 return $content; 1162 } 1163 1164 1165 ### Function: Add WP-Polls General Stats To WP-Stats Page 1166 function polls_page_general_stats($content) { 1167 $stats_display = get_option('stats_display'); 1168 if($stats_display['polls'] == 1) { 1169 $content .= '<p><strong>'.__('WP-Polls', 'wp-polls').'</strong></p>'."\n"; 1170 $content .= '<ul>'."\n"; 1171 $content .= '<li><strong>'.get_pollquestions(false).'</strong> '.__('Polls Were Created.', 'wp-polls').'</li>'."\n"; 1172 $content .= '<li><strong>'.get_pollanswers(false).'</strong> '.__('Polls\' Answers Were Given.', 'wp-polls').'</li>'."\n"; 1173 $content .= '<li><strong>'.get_pollvotes(false).'</strong> '.__('Votes Were Casted.', 'wp-polls').'</li>'."\n"; 1174 $content .= '</ul>'."\n"; 1175 } 1176 return $content; 1177 } 1178 1179 1146 1180 ### Function: Create Poll Tables 1147 1181 add_action('activate_polls/polls.php', 'create_poll_table'); wp-polls/trunk/polls/wp-polls.pot
r14478 r14641 3 3 "Project-Id-Version: WP-Polls 2.21\n" 4 4 "POT-Creation-Date: \n" 5 "PO-Revision-Date: 2007-06-2 5 00:11+0800\n"5 "PO-Revision-Date: 2007-06-28 16:04+0800\n" 6 6 "Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n" 7 7 "Language-Team: Ravan <ravanhagen@gmail.com>\n" … … 556 556 #: polls-templates.php:116 557 557 #: polls-templates.php:119 558 #: polls.php:12 12559 #: polls.php:12 15558 #: polls.php:1246 559 #: polls.php:1249 560 560 msgid "Total Voters" 561 561 msgstr "" … … 793 793 #: polls-templates.php:110 794 794 #: polls-templates.php:113 795 #: polls.php:12 09796 #: polls.php:12 10795 #: polls.php:1243 796 #: polls.php:1244 797 797 msgid "Votes" 798 798 msgstr "" … … 982 982 #: polls-templates.php:104 983 983 #: polls-templates.php:119 984 #: polls.php:12 03985 #: polls.php:12 16984 #: polls.php:1237 985 #: polls.php:1250 986 986 msgid "Vote" 987 987 msgstr "" 988 988 989 989 #: polls-templates.php:104 990 #: polls.php:12 04990 #: polls.php:1238 991 991 msgid "View Results Of This Poll" 992 992 msgstr "" 993 993 994 994 #: polls-templates.php:104 995 #: polls.php:12 04995 #: polls.php:1238 996 996 msgid "View Results" 997 997 msgstr "" 998 998 999 999 #: polls-templates.php:113 1000 #: polls.php:12 101000 #: polls.php:1244 1001 1001 msgid "You Have Voted For This Choice" 1002 1002 msgstr "" 1003 1003 1004 1004 #: polls-templates.php:119 1005 #: polls.php:12 161005 #: polls.php:1250 1006 1006 msgid "Vote For This Poll" 1007 1007 msgstr "" … … 1009 1009 #: polls-templates.php:122 1010 1010 #: polls-usage.php:80 1011 #: polls.php:12 431011 #: polls.php:1277 1012 1012 msgid "Polls Archive" 1013 1013 msgstr "" … … 1022 1022 1023 1023 #: polls-templates.php:131 1024 #: polls.php:12 181024 #: polls.php:1252 1025 1025 msgid "Sorry, there are no polls available at the moment." 1026 1026 msgstr "" 1027 1027 1028 1028 #: polls-templates.php:134 1029 #: polls.php:12 191029 #: polls.php:1253 1030 1030 msgid "An error has occurred when processing your poll." 1031 1031 msgstr "" … … 1540 1540 msgstr "" 1541 1541 1542 #: polls.php:1187 1542 #: polls.php:1157 1543 #: polls.php:1159 1544 #: polls.php:1169 1545 msgid "WP-Polls" 1546 msgstr "" 1547 1548 #: polls.php:1171 1549 msgid "Polls Were Created." 1550 msgstr "" 1551 1552 #: polls.php:1172 1553 msgid "Polls' Answers Were Given." 1554 msgstr "" 1555 1556 #: polls.php:1173 1557 msgid "Votes Were Casted." 1558 msgstr "" 1559 1560 #: polls.php:1221 1543 1561 msgid "How Is My Site?" 1544 1562 msgstr "" 1545 1563 1546 #: polls.php:1 1901564 #: polls.php:1224 1547 1565 msgid "Good" 1548 1566 msgstr "" 1549 1567 1550 #: polls.php:1 1911568 #: polls.php:1225 1551 1569 msgid "Excellent" 1552 1570 msgstr "" 1553 1571 1554 #: polls.php:1 1921572 #: polls.php:1226 1555 1573 msgid "Bad" 1556 1574 msgstr "" 1557 1575 1558 #: polls.php:1 1931576 #: polls.php:1227 1559 1577 msgid "Can Be Improved" 1560 1578 msgstr "" 1561 1579 1562 #: polls.php:1 1941580 #: polls.php:1228 1563 1581 msgid "No Comments" 1564 1582 msgstr "" wp-polls/trunk/readme.html
r14411 r14641 295 295 <strong>Version 2.21 (01-10-2007)</strong> 296 296 <ul> 297 <li>NEW: Uses WP-Stats Filter To Add Stats Into WP-Stats Page</li> 297 298 <li>FIXED: Some Text Not Translated In Polls Widget</li> 298 299 <li>FIXED: 2 Wrong Options Name In Polls Uninstall</li>
