Changeset 38254

Show
Ignore:
Timestamp:
04/04/08 13:25:36 (4 months ago)
Author:
GamerZ
Message:

Fixed htmlspecialchars_decode

Location:
wp-email/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • wp-email/trunk/wp-email.php

    r36851 r38254  
    467467      } 
    468468      return true; 
     469} 
     470 
     471 
     472### Function: There Are Still Many PHP 4.x Users 
     473if(!function_exists('htmlspecialchars_decode')) { 
     474      function htmlspecialchars_decode($string, $style = ENT_COMPAT) { 
     475            $translation = array_flip(get_html_translation_table(HTML_SPECIALCHARS,$style)); 
     476            if($style === ENT_QUOTES) { 
     477                  $translation['''] = '\''; 
     478            } 
     479            return strtr($string, $translation); 
     480      } 
    469481} 
    470482 
  • wp-email/trunk/wp-email.pot

    r36851 r38254  
    33"Project-Id-Version: WP-EMail 2.30\n" 
    44"POT-Creation-Date: \n" 
    5 "PO-Revision-Date: 2008-03-30 19:43+0800\n" 
     5"PO-Revision-Date: 2008-04-04 21:25+0800\n" 
    66"Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n" 
    77"Language-Team: Lester Chan <lesterchan@gmail.com>\n" 
     
    9292 
    9393#: email-manager.php:126 
    94 #: wp-email.php:511 
    95 #: wp-email.php:648 
    96 #: wp-email.php:941 
    97 #: wp-email.php:978 
    98 #: wp-email.php:1189 
     94#: wp-email.php:523 
     95#: wp-email.php:660 
     96#: wp-email.php:953 
     97#: wp-email.php:990 
     98#: wp-email.php:1201 
    9999msgid "Success" 
    100100msgstr "" 
    101101 
    102102#: email-manager.php:127 
    103 #: wp-email.php:662 
    104 #: wp-email.php:953 
    105 #: wp-email.php:1190 
     103#: wp-email.php:674 
     104#: wp-email.php:965 
     105#: wp-email.php:1202 
    106106msgid "Failed" 
    107107msgstr "" 
     
    306306 
    307307#: email-options.php:122 
    308 #: wp-email.php:1267 
     308#: wp-email.php:1279 
    309309msgid "E-Mail '%EMAIL_POST_TITLE%' To A Friend" 
    310310msgstr "" 
    311311 
    312312#: email-options.php:125 
    313 #: wp-email.php:1268 
     313#: wp-email.php:1280 
    314314msgid "Email a copy of <strong>'%EMAIL_POST_TITLE%'</strong> to a friend" 
    315315msgstr "" 
    316316 
    317317#: email-options.php:128 
    318 #: wp-email.php:1242 
     318#: wp-email.php:1254 
    319319msgid "Recommended Article By %EMAIL_YOUR_NAME%: %EMAIL_POST_TITLE%" 
    320320msgstr "" 
     
    344344 
    345345#: email-options.php:137 
    346 #: wp-email.php:1253 
     346#: wp-email.php:1265 
    347347msgid "Back to %EMAIL_POST_TITLE%" 
    348348msgstr "" 
    349349 
    350350#: email-options.php:140 
    351 #: wp-email.php:1254 
     351#: wp-email.php:1266 
    352352msgid "An error has occurred when trying to send this email: " 
    353353msgstr "" 
    354354 
    355355#: email-options.php:143 
    356 #: wp-email.php:1255 
     356#: wp-email.php:1267 
    357357msgid "An error has occurred: " 
    358358msgstr "" 
     
    883883msgstr "" 
    884884 
    885 #: wp-email.php:620 
     885#: wp-email.php:632 
    886886#, php-format 
    887887msgid "Separate multiple entries with a comma. Maximum %s entries." 
    888888msgstr "" 
    889889 
    890 #: wp-email.php:689 
    891 #: wp-email.php:695 
     890#: wp-email.php:701 
     891#: wp-email.php:707 
    892892msgid "emails" 
    893893msgstr "" 
    894894 
    895 #: wp-email.php:699 
    896 #: wp-email.php:870 
    897 #: wp-email.php:952 
     895#: wp-email.php:711 
     896#: wp-email.php:882 
     897#: wp-email.php:964 
    898898msgid "N/A" 
    899899msgstr "" 
    900900 
    901 #: wp-email.php:782 
     901#: wp-email.php:794 
    902902msgid "Your Name is empty" 
    903903msgstr "" 
    904904 
    905 #: wp-email.php:785 
     905#: wp-email.php:797 
    906906msgid "Your Name is invalid" 
    907907msgstr "" 
    908908 
    909 #: wp-email.php:791 
     909#: wp-email.php:803 
    910910msgid "Your Email is empty" 
    911911msgstr "" 
    912912 
    913 #: wp-email.php:794 
     913#: wp-email.php:806 
    914914msgid "Your Email is invalid" 
    915915msgstr "" 
    916916 
    917 #: wp-email.php:800 
     917#: wp-email.php:812 
    918918msgid "Your Remarks is invalid" 
    919919msgstr "" 
    920920 
    921 #: wp-email.php:806 
     921#: wp-email.php:818 
    922922msgid "Friend Name(s) is empty" 
    923923msgstr "" 
    924924 
    925 #: wp-email.php:812 
     925#: wp-email.php:824 
    926926#, php-format 
    927927msgid "Friend Name is empty: %s" 
    928928msgstr "" 
    929929 
    930 #: wp-email.php:814 
     930#: wp-email.php:826 
    931931#, php-format 
    932932msgid "Friend Name is invalid: %s" 
    933933msgstr "" 
    934934 
    935 #: wp-email.php:828 
     935#: wp-email.php:840 
    936936msgid "Friend Email(s) is empty" 
    937937msgstr "" 
    938938 
    939 #: wp-email.php:834 
     939#: wp-email.php:846 
    940940#, php-format 
    941941msgid "Friend Email is empty: %s" 
    942942msgstr "" 
    943943 
    944 #: wp-email.php:836 
     944#: wp-email.php:848 
    945945#, php-format 
    946946msgid "Friend Email is invalid: %s" 
    947947msgstr "" 
    948948 
    949 #: wp-email.php:849 
     949#: wp-email.php:861 
    950950#, php-format 
    951951msgid "Maximum %s Friend(s) allowed" 
    952952msgstr "" 
    953953 
    954 #: wp-email.php:853 
     954#: wp-email.php:865 
    955955msgid "Friend Name(s) count does not tally with Friend Email(s) count" 
    956956msgstr "" 
    957957 
    958 #: wp-email.php:860 
     958#: wp-email.php:872 
    959959msgid "Image Verification is empty" 
    960960msgstr "" 
    961961 
    962 #: wp-email.php:863 
     962#: wp-email.php:875 
    963963msgid "Image Verification failed" 
    964964msgstr "" 
    965965 
    966 #: wp-email.php:1045 
     966#: wp-email.php:1057 
    967967msgid "* Required Field" 
    968968msgstr "" 
    969969 
    970 #: wp-email.php:1048 
     970#: wp-email.php:1060 
    971971msgid "Your Name: *" 
    972972msgstr "" 
    973973 
    974 #: wp-email.php:1054 
     974#: wp-email.php:1066 
    975975msgid "Your E-Mail: *" 
    976976msgstr "" 
    977977 
    978 #: wp-email.php:1060 
     978#: wp-email.php:1072 
    979979msgid "Your Remark:" 
    980980msgstr "" 
    981981 
    982 #: wp-email.php:1066 
     982#: wp-email.php:1078 
    983983msgid "Friend's Name: *" 
    984984msgstr "" 
    985985 
    986 #: wp-email.php:1071 
     986#: wp-email.php:1083 
    987987msgid "Friend's E-Mail: *" 
    988988msgstr "" 
    989989 
    990 #: wp-email.php:1076 
     990#: wp-email.php:1088 
    991991msgid "Image Verification: *" 
    992992msgstr "" 
    993993 
    994 #: wp-email.php:1077 
     994#: wp-email.php:1089 
    995995msgid "E-Mail Image Verification" 
    996996msgstr "" 
    997997 
    998 #: wp-email.php:1080 
     998#: wp-email.php:1092 
    999999msgid "     Mail It!     " 
    10001000msgstr "" 
    10011001 
    1002 #: wp-email.php:1086 
     1002#: wp-email.php:1098 
    10031003#, php-format 
    10041004msgid "Please wait for <strong>%s Minutes</strong> before sending the next article." 
    10051005msgstr "" 
    10061006 
    1007 #: wp-email.php:1088 
     1007#: wp-email.php:1100 
    10081008msgid "Loading" 
    10091009msgstr "" 
    10101010 
    1011 #: wp-email.php:1151 
    1012 #: wp-email.php:1153 
    1013 #: wp-email.php:1186 
     1011#: wp-email.php:1163 
     1012#: wp-email.php:1165 
     1013#: wp-email.php:1198 
    10141014msgid "WP-EMail" 
    10151015msgstr "" 
    10161016 
    1017 #: wp-email.php:1164 
    1018 #: wp-email.php:1166 
     1017#: wp-email.php:1176 
     1018#: wp-email.php:1178 
    10191019msgid "Most Emailed Posts" 
    10201020msgstr "" 
    10211021 
    1022 #: wp-email.php:1188 
     1022#: wp-email.php:1200 
    10231023msgid "emails were sent." 
    10241024msgstr "" 
    10251025 
    1026 #: wp-email.php:1189 
     1026#: wp-email.php:1201 
    10271027msgid "emails were sent successfully." 
    10281028msgstr "" 
    10291029 
    1030 #: wp-email.php:1190 
     1030#: wp-email.php:1202 
    10311031msgid "emails failed to send." 
    10321032msgstr "" 
    10331033 
    1034 #: wp-email.php:1202 
     1034#: wp-email.php:1214 
    10351035msgid "Most Emailed Post" 
    10361036msgstr "" 
    10371037 
    1038 #: wp-email.php:1243 
     1038#: wp-email.php:1255 
    10391039msgid "<p>Hi <strong>%EMAIL_FRIEND_NAME%</strong>,<br />Your friend, <strong>%EMAIL_YOUR_NAME%</strong>, has recommended this article entitled '<strong>%EMAIL_POST_TITLE%</strong>' to you.</p><p><strong>Here is his/her remark:</strong><br />%EMAIL_YOUR_REMARKS%</p><p><strong>%EMAIL_POST_TITLE%</strong><br />Posted By %EMAIL_POST_AUTHOR% On %EMAIL_POST_DATE% In %EMAIL_POST_CATEGORY%</p>%EMAIL_POST_CONTENT%<p>Article taken from %EMAIL_BLOG_NAME% - <a href=\"%EMAIL_BLOG_URL%\">%EMAIL_BLOG_URL%</a><br />URL to article: <a href=\"%EMAIL_PERMALINK%\">%EMAIL_PERMALINK%</a></p>" 
    10401040msgstr "" 
    10411041 
    1042 #: wp-email.php:1244 
     1042#: wp-email.php:1256 
    10431043msgid "Hi %EMAIL_FRIEND_NAME%," 
    10441044msgstr "" 
    10451045 
    1046 #: wp-email.php:1244 
    1047 #: wp-email.php:1246 
    1048 #: wp-email.php:1248 
    1049 #: wp-email.php:1249 
    1050 #: wp-email.php:1250 
    1051 #: wp-email.php:1251 
     1046#: wp-email.php:1256 
     1047#: wp-email.php:1258 
     1048#: wp-email.php:1260 
     1049#: wp-email.php:1261 
     1050#: wp-email.php:1262 
     1051#: wp-email.php:1263 
    10521052msgid "\n" 
    10531053msgstr "" 
    10541054 
    1055 #: wp-email.php:1245 
     1055#: wp-email.php:1257 
    10561056msgid "Your friend, %EMAIL_YOUR_NAME%, has recommended this article entitled '%EMAIL_POST_TITLE%' to you." 
    10571057msgstr "" 
    10581058 
    1059 #: wp-email.php:1245 
    1060 #: wp-email.php:1247 
     1059#: wp-email.php:1257 
     1060#: wp-email.php:1259 
    10611061msgid "" 
    10621062"\n" 
     
    10641064msgstr "" 
    10651065 
    1066 #: wp-email.php:1246 
     1066#: wp-email.php:1258 
    10671067msgid "Here is his/her remarks:" 
    10681068msgstr "" 
    10691069 
    1070 #: wp-email.php:1247 
     1070#: wp-email.php:1259 
    10711071msgid "%EMAIL_YOUR_REMARKS%" 
    10721072msgstr "" 
    10731073 
    1074 #: wp-email.php:1248 
     1074#: wp-email.php:1260 
    10751075msgid "%EMAIL_POST_TITLE%" 
    10761076msgstr "" 
    10771077 
    1078 #: wp-email.php:1249 
     1078#: wp-email.php:1261 
    10791079msgid "Posted By %EMAIL_POST_AUTHOR% On %EMAIL_POST_DATE% In %EMAIL_POST_CATEGORY%" 
    10801080msgstr "" 
    10811081 
    1082 #: wp-email.php:1250 
     1082#: wp-email.php:1262 
    10831083msgid "%EMAIL_POST_CONTENT%" 
    10841084msgstr "" 
    10851085 
    1086 #: wp-email.php:1251 
     1086#: wp-email.php:1263 
    10871087msgid "Article taken from %EMAIL_BLOG_NAME% - %EMAIL_BLOG_URL%" 
    10881088msgstr "" 
    10891089 
    1090 #: wp-email.php:1252 
     1090#: wp-email.php:1264 
    10911091msgid "URL to article: %EMAIL_PERMALINK%" 
    10921092msgstr "" 
    10931093 
    1094 #: wp-email.php:1253 
     1094#: wp-email.php:1265 
    10951095msgid "Article: <strong>%EMAIL_POST_TITLE%</strong> has been sent to <strong>%EMAIL_FRIEND_NAME% (%EMAIL_FRIEND_EMAIL%)</strong></p><p>&laquo; <a href=\"%EMAIL_PERMALINK%\">" 
    10961096msgstr "" 
    10971097 
    1098 #: wp-email.php:1253 
     1098#: wp-email.php:1265 
    10991099msgid "</a></p>" 
    11001100msgstr "" 
    11011101 
    1102 #: wp-email.php:1262 
     1102#: wp-email.php:1274 
    11031103msgid "Email This Post" 
    11041104msgstr "" 
    11051105 
    1106 #: wp-email.php:1262 
     1106#: wp-email.php:1274 
    11071107msgid "Email This Page" 
    11081108msgstr ""