Changeset 17964
- Timestamp:
- 09/06/07 14:45:53 (10 months ago)
- Files:
-
- wp-email/trunk/email/email.php (modified) (4 diffs)
- wp-email/trunk/email/wp-email.mo (modified) (previous)
- wp-email/trunk/email/wp-email.pot (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wp-email/trunk/email/email.php
r17536 r17964 61 61 function email_rewrite($wp_rewrite) { 62 62 $email_link = get_permalink(); 63 if(substr($email_link, -1, 1) != '/' ) {63 if(substr($email_link, -1, 1) != '/' && substr($wp_rewrite->permalink_structure, -1, 1) != '/') { 64 64 $email_link_text = '/email'; 65 65 $email_popup_text = '/emailpopup'; … … 291 291 292 292 293 ### Function: Get E-Mail Title 294 function email_get_title() { 295 global $post; 296 $post_title = $post->post_title; 297 if(!empty($post->post_password)) { 298 $post_title = sprintf(__('Protected: %s', 'wp-email'), $post_title); 299 } elseif($post->post_status == 'private') { 300 $post_title = sprintf(__('Private: %s', 'wp-email'), $post_title); 301 } 302 return $post_title; 303 } 304 305 293 306 ### Function: E-Mail Title 294 307 function email_title($page_title) { 308 global $post; 295 309 if(in_the_loop()) { 296 $post_title = get_the_title();310 $post_title = email_get_title(); 297 311 $post_author = the_author('', false); 298 312 $post_date = get_the_time(get_option('date_format').' ('.get_option('time_format').')', '', '', false); … … 677 691 while(have_posts()) { 678 692 the_post(); 679 $post_title = get_the_title();693 $post_title = email_get_title(); 680 694 $post_author = get_the_author(); 681 695 $post_date = get_the_time(get_option('date_format').' ('.get_option('time_format').')', '', '', false); … … 929 943 // Variables 930 944 $multipage = false; 931 $post_title = get_the_title();945 $post_title = email_get_title(); 932 946 $post_author = the_author('', false); 933 947 $post_date = get_the_time(get_option('date_format').' ('.get_option('time_format').')', '', '', false); wp-email/trunk/email/wp-email.pot
r17536 r17964 3 3 "Project-Id-Version: WP-EMail 2.20\n" 4 4 "POT-Creation-Date: \n" 5 "PO-Revision-Date: 2007-0 8-29 00:47+0800\n"5 "PO-Revision-Date: 2007-09-06 22:45+0800\n" 6 6 "Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n" 7 7 "Language-Team: Lester Chan <gamerz84@hotmail.com>\n" … … 158 158 159 159 #: email-manager.php:126 160 #: email.php:4 37161 #: email.php:5 74162 #: email.php:8 61163 #: email.php: 898164 #: email.php:11 10160 #: email.php:451 161 #: email.php:588 162 #: email.php:875 163 #: email.php:912 164 #: email.php:1124 165 165 msgid "Success" 166 166 msgstr "" 167 167 168 168 #: email-manager.php:127 169 #: email.php: 588170 #: email.php:8 73171 #: email.php:11 11169 #: email.php:602 170 #: email.php:887 171 #: email.php:1125 172 172 msgid "Failed" 173 173 msgstr "" … … 372 372 373 373 #: email-options.php:122 374 #: email.php:1 188374 #: email.php:1202 375 375 msgid "E-Mail '%EMAIL_POST_TITLE%' To A Friend" 376 376 msgstr "" 377 377 378 378 #: email-options.php:125 379 #: email.php:1 189379 #: email.php:1203 380 380 msgid "Email a copy of <strong>'%EMAIL_POST_TITLE%'</strong> to a friend" 381 381 msgstr "" 382 382 383 383 #: email-options.php:128 384 #: email.php:11 63384 #: email.php:1177 385 385 msgid "Recommended Article By %EMAIL_YOUR_NAME%: %EMAIL_POST_TITLE%" 386 386 msgstr "" … … 410 410 411 411 #: email-options.php:137 412 #: email.php:11 74412 #: email.php:1188 413 413 msgid "Back to %EMAIL_POST_TITLE%" 414 414 msgstr "" 415 415 416 416 #: email-options.php:140 417 #: email.php:11 75417 #: email.php:1189 418 418 msgid "An error has occurred when trying to send this email: " 419 419 msgstr "" 420 420 421 421 #: email-options.php:143 422 #: email.php:11 76422 #: email.php:1190 423 423 msgid "An error has occurred: " 424 424 msgstr "" … … 881 881 msgstr "" 882 882 883 #: email.php:354 883 #: email.php:298 884 #, php-format 885 msgid "Protected: %s" 886 msgstr "" 887 888 #: email.php:300 889 #, php-format 890 msgid "Private: %s" 891 msgstr "" 892 893 #: email.php:368 884 894 msgid "Password Protected Post" 885 895 msgstr "" 886 896 887 #: email.php:5 46897 #: email.php:560 888 898 #, php-format 889 899 msgid "Separate multiple entries with a comma. Maximum %s entries." 890 900 msgstr "" 891 901 892 #: email.php:6 15893 #: email.php:6 21902 #: email.php:629 903 #: email.php:635 894 904 msgid "emails" 895 905 msgstr "" 896 906 897 #: email.php:6 25898 #: email.php: 795899 #: email.php:8 72907 #: email.php:639 908 #: email.php:809 909 #: email.php:886 900 910 msgid "N/A" 901 911 msgstr "" 902 912 903 #: email.php:7 07913 #: email.php:721 904 914 msgid "Your Name is empty" 905 915 msgstr "" 906 916 907 #: email.php:7 10917 #: email.php:724 908 918 msgid "Your Name is invalid" 909 919 msgstr "" 910 920 911 #: email.php:7 16921 #: email.php:730 912 922 msgid "Your Email is empty" 913 923 msgstr "" 914 924 915 #: email.php:7 19925 #: email.php:733 916 926 msgid "Your Email is invalid" 917 927 msgstr "" 918 928 919 #: email.php:7 25929 #: email.php:739 920 930 msgid "Your Remarks is invalid" 921 931 msgstr "" 922 932 923 #: email.php:7 31933 #: email.php:745 924 934 msgid "Friend Name(s) is empty" 925 935 msgstr "" 926 936 927 #: email.php:7 37937 #: email.php:751 928 938 #, php-format 929 939 msgid "Friend Name is empty: %s" 930 940 msgstr "" 931 941 932 #: email.php:7 39942 #: email.php:753 933 943 #, php-format 934 944 msgid "Friend Name is invalid: %s" 935 945 msgstr "" 936 946 937 #: email.php:7 53947 #: email.php:767 938 948 msgid "Friend Email(s) is empty" 939 949 msgstr "" 940 950 941 #: email.php:7 59951 #: email.php:773 942 952 #, php-format 943 953 msgid "Friend Email is empty: %s" 944 954 msgstr "" 945 955 946 #: email.php:7 61956 #: email.php:775 947 957 #, php-format 948 958 msgid "Friend Email is invalid: %s" 949 959 msgstr "" 950 960 951 #: email.php:7 74961 #: email.php:788 952 962 #, php-format 953 963 msgid "Maximum %s Friend(s) allowed" 954 964 msgstr "" 955 965 956 #: email.php:7 78966 #: email.php:792 957 967 msgid "Friend Name(s) count does not tally with Friend Email(s) count" 958 968 msgstr "" 959 969 960 #: email.php:7 85970 #: email.php:799 961 971 msgid "Image Verification is empty" 962 972 msgstr "" 963 973 964 #: email.php: 788974 #: email.php:802 965 975 msgid "Image Verification failed" 966 976 msgstr "" 967 977 968 #: email.php:9 65978 #: email.php:979 969 979 msgid "* Required Field" 970 980 msgstr "" 971 981 972 #: email.php:9 68982 #: email.php:982 973 983 msgid "Your Name: *" 974 984 msgstr "" 975 985 976 #: email.php:9 74986 #: email.php:988 977 987 msgid "Your E-Mail: *" 978 988 msgstr "" 979 989 980 #: email.php:9 80990 #: email.php:994 981 991 msgid "Your Remark:" 982 992 msgstr "" 983 993 984 #: email.php: 986994 #: email.php:1000 985 995 msgid "Friend's Name: *" 986 996 msgstr "" 987 997 988 #: email.php: 991998 #: email.php:1005 989 999 msgid "Friend's E-Mail: *" 990 1000 msgstr "" 991 1001 992 #: email.php: 9961002 #: email.php:1010 993 1003 msgid "Image Verification: *" 994 1004 msgstr "" 995 1005 996 #: email.php: 9971006 #: email.php:1011 997 1007 msgid "E-Mail Image Verification" 998 1008 msgstr "" 999 1009 1000 #: email.php:10 001010 #: email.php:1014 1001 1011 msgid " Mail It! " 1002 1012 msgstr "" 1003 1013 1004 #: email.php:10 061014 #: email.php:1020 1005 1015 #, php-format 1006 1016 msgid "Please wait for <strong>%s Minutes</strong> before sending the next article." 1007 1017 msgstr "" 1008 1018 1009 #: email.php:10 081019 #: email.php:1022 1010 1020 msgid "Loading" 1011 1021 msgstr "" 1012 1022 1013 #: email.php:10 721014 #: email.php:10 741015 #: email.php:11 071023 #: email.php:1086 1024 #: email.php:1088 1025 #: email.php:1121 1016 1026 msgid "WP-EMail" 1017 1027 msgstr "" 1018 1028 1019 #: email.php:10 851020 #: email.php:1 0871029 #: email.php:1099 1030 #: email.php:1101 1021 1031 msgid "Most Emailed Posts" 1022 1032 msgstr "" 1023 1033 1024 #: email.php:11 091034 #: email.php:1123 1025 1035 msgid "emails were sent." 1026 1036 msgstr "" 1027 1037 1028 #: email.php:11 101038 #: email.php:1124 1029 1039 msgid "emails were sent successfully." 1030 1040 msgstr "" 1031 1041 1032 #: email.php:11 111042 #: email.php:1125 1033 1043 msgid "emails failed to send." 1034 1044 msgstr "" 1035 1045 1036 #: email.php:11 231046 #: email.php:1137 1037 1047 msgid "Most Emailed Post" 1038 1048 msgstr "" 1039 1049 1040 #: email.php:11 641050 #: email.php:1178 1041 1051 msgid "<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>" 1042 1052 msgstr "" 1043 1053 1044 #: email.php:11 651054 #: email.php:1179 1045 1055 msgid "Hi %EMAIL_FRIEND_NAME%," 1046 1056 msgstr "" 1047 1057 1048 #: email.php:11 651049 #: email.php:11 671050 #: email.php:11 691051 #: email.php:11 701052 #: email.php:11 711053 #: email.php:11 721058 #: email.php:1179 1059 #: email.php:1181 1060 #: email.php:1183 1061 #: email.php:1184 1062 #: email.php:1185 1063 #: email.php:1186 1054 1064 msgid "\n" 1055 1065 msgstr "" 1056 1066 1057 #: email.php:11 661067 #: email.php:1180 1058 1068 msgid "Your friend, %EMAIL_YOUR_NAME%, has recommended this article entitled '%EMAIL_POST_TITLE%' to you." 1059 1069 msgstr "" 1060 1070 1061 #: email.php:11 661062 #: email.php:11 681071 #: email.php:1180 1072 #: email.php:1182 1063 1073 msgid "" 1064 1074 "\n" … … 1066 1076 msgstr "" 1067 1077 1068 #: email.php:11 671078 #: email.php:1181 1069 1079 msgid "Here is his/her remarks:" 1070 1080 msgstr "" 1071 1081 1072 #: email.php:11 681082 #: email.php:1182 1073 1083 msgid "%EMAIL_YOUR_REMARKS%" 1074 1084 msgstr "" 1075 1085 1076 #: email.php:11 691086 #: email.php:1183 1077 1087 msgid "%EMAIL_POST_TITLE%" 1078 1088 msgstr "" 1079 1089 1080 #: email.php:11 701090 #: email.php:1184 1081 1091 msgid "Posted By %EMAIL_POST_AUTHOR% On %EMAIL_POST_DATE% In %EMAIL_POST_CATEGORY%" 1082 1092 msgstr "" 1083 1093 1084 #: email.php:11 711094 #: email.php:1185 1085 1095 msgid "%EMAIL_POST_CONTENT%" 1086 1096 msgstr "" 1087 1097 1088 #: email.php:11 721098 #: email.php:1186 1089 1099 msgid "Article taken from %EMAIL_BLOG_NAME% - %EMAIL_BLOG_URL%" 1090 1100 msgstr "" 1091 1101 1092 #: email.php:11 731102 #: email.php:1187 1093 1103 msgid "URL to article: %EMAIL_PERMALINK%" 1094 1104 msgstr "" 1095 1105 1096 #: email.php:11 741106 #: email.php:1188 1097 1107 msgid "Article: <strong>%EMAIL_POST_TITLE%</strong> has been sent to <strong>%EMAIL_FRIEND_NAME% (%EMAIL_FRIEND_EMAIL%)</strong></p><p>« <a href=\"%EMAIL_PERMALINK%\">" 1098 1108 msgstr "" 1099 1109 1100 #: email.php:11 741110 #: email.php:1188 1101 1111 msgid "</a></p>" 1102 1112 msgstr "" 1103 1113 1104 #: email.php:11 831114 #: email.php:1197 1105 1115 msgid "Email This Post" 1106 1116 msgstr "" 1107 1117 1108 #: email.php:11 831118 #: email.php:1197 1109 1119 msgid "Email This Page" 1110 1120 msgstr ""
