Changeset 493699
- Timestamp:
- 01/23/2012 05:37:15 AM (14 years ago)
- Location:
- wp-posturl/trunk
- Files:
-
- 6 edited
-
posturl-options.php (modified) (2 diffs)
-
readme.txt (modified) (5 diffs)
-
wp-posturl-zh_CN.mo (modified) (previous)
-
wp-posturl-zh_CN.po (modified) (6 diffs)
-
wp-posturl.php (modified) (6 diffs)
-
wp-posturl.pot (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-posturl/trunk/posturl-options.php
r492558 r493699 116 116 <table class="form-table"> 117 117 <tr> 118 <td valign="top" width="30%"><?php _e('Add Header and/or Footer For Old Posts (Keep selected if in doubt):', 'wp-posturl'); ?></td> 119 <td> 120 <input name="add_url_by_default" id="add_url_by_default" type="checkbox" value="true" <?php if($posturl_options['add_url_by_default']) echo 'checked="checked"'; ?> /> 121 </td> 122 </tr> 123 <tr> 118 124 <td valign="top" width="30%"><strong><?php _e('Header Text:', 'wp-posturl'); ?></strong><br /> 119 125 <?php _e('This text will be inserted at beginning of your post if not empty.', 'wp-posturl'); ?><br /><br /> … … 185 191 <td> 186 192 <input name="add_to_feed" id="add_to_feed" type="checkbox" value="true" <?php if($posturl_options['add_to_feed']) echo 'checked="checked"'; ?> /> 187 </td>188 </tr>189 <tr>190 <td valign="top" width="30%"><?php _e('Add Header and/or Footer For Existed Posts:', 'wp-posturl'); ?></td>191 <td>192 <input name="add_url_by_default" id="add_url_by_default" type="checkbox" value="true" <?php if($posturl_options['add_url_by_default']) echo 'checked="checked"'; ?> />193 193 </td> 194 194 </tr> -
wp-posturl/trunk/readme.txt
r492558 r493699 5 5 Requires at least: 2.7 6 6 Tested up to: 3.3.1 7 Stable tag: 2.0. 17 Stable tag: 2.0.2 8 8 9 9 This plugin allows you to insert a user specific text (such as copyright, … … 49 49 For posts without this Custom Field (i.e., the existed posts before you use 50 50 WP-PostURL plugin), you can define the default behavior. If you select "Add 51 Header and/or Footer Text For Existed Post", then all posts without this Custom51 Header and/or Footer Text For Old Posts", then all posts without this Custom 52 52 Field will be added the header text and/or footer text; otherwise those posts 53 53 will not be added the header text and/or footer text. If some of those posts … … 79 79 80 80 * In a word, please check if you select "Add Header and/or Footer Text For 81 Existed Post" option. If not, select it then have a look. 81 Old Posts" option. If not, select it then have a look. 82 * Please check "Add Post URL?" option for posts you want the text to be added. 82 83 * If it still not work, make sure regenerate the cache if you a WordPress 83 84 Cache Plugin (such as WP Super Cache), then have a look. 84 85 85 Here are some detail information for "Add Header and/or Footer Text For Existed86 Post " option:86 Here are some detail information for "Add Header and/or Footer Text For Old 87 Posts" option: 87 88 88 89 In release 2.0 and above, I add a new feature: allow user decide which posts … … 91 92 But for the posts you published before use WP-PostURL 2.0+, they do not have 92 93 Custom Field "posturl_add_url". For those posts, you need configure "Add 93 Header and/or Footer Text For Existed Post" option. If you check this option,94 Header and/or Footer Text For Old Posts" option. If you check this option, 94 95 all existed posts will be added the header and/or footer text; otherwise those 95 96 posts will not be added the header text and/or footer text. If some of those … … 104 105 105 106 = 2.0.2 = 106 * Fix: Rename description name to avoid confusing. 107 108 * Fix: Set "Add Header and/or Footer For Old Posts" to true by default, to fix no header/footer in release 2.0.1. If you uncheck this option but re-install or re-activate this plugin, you need uncheck it again. 107 109 108 110 = 2.0.1 = -
wp-posturl/trunk/wp-posturl-zh_CN.po
r492558 r493699 3 3 "Project-Id-Version: WP-PostURL 1.0\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2012-01-2 0 17:30+0800\n"6 "PO-Revision-Date: 2012-01-2 0 17:32+0800\n"5 "POT-Creation-Date: 2012-01-23 13:21+0800\n" 6 "PO-Revision-Date: 2012-01-23 13:24+0800\n" 7 7 "Last-Translator: Easwy Yang <easwy.mail@gmail.com>\n" 8 8 "Language-Team: Easwy Yang <easwy.mail@gmail.com>\n" … … 15 15 "X-Poedit-KeywordsList: __;_e\n" 16 16 "X-Poedit-Basepath: .\n" 17 "X-Poedit-SearchPath-0: L:\\workspace\\wordpress\\wp-posturl\\trunk\n" 18 19 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:36 20 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:114 17 "X-Poedit-SearchPath-0: /home/eyang/05workspace/wordpress/wp-posturl/trunk\n" 18 19 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/wp-posturl.php:42 20 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/wp-posturl.php:43 21 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/wp-posturl.php:288 22 msgid "Add Post URL" 23 msgstr "添加文章链接" 24 25 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/wp-posturl.php:106 26 #, php-format 27 msgid "<div style=\"margin-top: 0; margin-bottom: 15px; color: #888888; font-size: 80%%; font-style: italic\"><p>Post Footer automatically generated by <a href=\"%1$s\" style=\"color: #8888FF; text-decoration: underline;\">wp-posturl plugin</a> for wordpress.</p></div>" 28 msgstr "<p style=\"margin-top: 0; margin-bottom: 15px; color: #888888; font-size: 80%%; font-style: italic\">文章的脚注信息由WordPress的<a href=\"%1$s\" style=\"color: #8888FF; text-decoration: underline;\">wp-posturl插件</a>自动生成</p>" 29 30 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/wp-posturl.php:118 31 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:98 32 msgid "<div style=\"margin-top: 15px; font-style: italic\"><p><strong>From</strong> <a href=\"%site_url%\">%site_name%</a>, <strong>post</strong> <a href=\"%post_url%\">%post_title%</a></p></div>" 33 msgstr "<div style=\"margin-top: 15px; font-style: italic\"><p><strong>原创文章,转载请注明:</strong> 转载自<a href=\"%site_url%\">%site_name%</a></p><p><strong>本文链接地址:</strong> <a href=\"%post_url%\">%post_title%</a></p></div>" 34 35 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/wp-posturl.php:276 36 msgid "Add Post URL?" 37 msgstr "添加文章链接?" 38 39 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/wp-posturl.php:278 40 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:250 41 msgid "Yes" 42 msgstr "是" 43 44 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/wp-posturl.php:279 45 msgid "No" 46 msgstr "否" 47 48 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:36 49 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:114 21 50 msgid "Post URL Options" 22 51 msgstr "添加文章链接插件选项" 23 52 24 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:4153 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:41 25 54 msgid "Updated" 26 55 msgstr "更新" 27 56 28 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:4657 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:46 29 58 msgid "No Post URL Option Updated" 30 59 msgstr "无配置选项更新" 31 60 32 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:5233 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:25161 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:52 62 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:251 34 63 msgid "UNINSTALL Add Post URL" 35 64 msgstr "卸载添加文章链接插件" 36 65 37 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:6066 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:60 38 67 #, php-format 39 68 msgid "Setting Key '%s' has been deleted." 40 69 msgstr "配置选项 '%s' 已被删除" 41 70 42 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:6471 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:64 43 72 #, php-format 44 73 msgid "Error deleting Setting Key '%s'." 45 74 msgstr "删除配置选项'%s'错误" 46 75 47 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:8648 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:21976 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:86 77 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:219 49 78 msgid "Uninstall Add Post URL" 50 79 msgstr "卸载添加文章链接插件" 51 80 52 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:8781 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:87 53 82 #, php-format 54 83 msgid "<a href=\"%s\">Click Here</a> To Finish The Uninstallation And Add Post URL Will Be Deactivated Automatically." 55 84 msgstr "<a href=\"%s\">点击这里</a>完成卸载,添加文章链接插件会自动停用。" 56 85 57 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:98 58 #: L:\workspace\wordpress\wp-posturl\trunk/wp-posturl.php:118 59 msgid "<div style=\"margin-top: 15px; font-style: italic\"><p><strong>From</strong> <a href=\"%site_url%\">%site_name%</a>, <strong>post</strong> <a href=\"%post_url%\">%post_title%</a></p></div>" 60 msgstr "<div style=\"margin-top: 15px; font-style: italic\"><p><strong>原创文章,转载请注明:</strong> 转载自<a href=\"%site_url%\">%site_name%</a></p><p><strong>本文链接地址:</strong> <a href=\"%post_url%\">%post_title%</a></p></div>" 61 62 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:115 86 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:115 63 87 msgid "Post URL Text" 64 88 msgstr "配置选项" 65 89 66 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:118 90 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:118 91 msgid "Add Header and/or Footer For Old Posts (Keep selected if in doubt):" 92 msgstr "给以前发表的文章添加自定义文本(若有疑问,请保持该项选中):" 93 94 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:124 67 95 msgid "Header Text:" 68 96 msgstr "Header文本:" 69 97 70 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:11998 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:125 71 99 msgid "This text will be inserted at beginning of your post if not empty." 72 100 msgstr "如果不为空,这段文字会被插入到你文章的开头" 73 101 74 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:12075 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:135102 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:126 103 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:141 76 104 msgid "Allowed Variables:" 77 105 msgstr "允许使用的变量:" 78 106 79 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:12280 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:137107 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:128 108 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:143 81 109 msgid "<code>%site_url%</code> - the URL of your site" 82 110 msgstr "<code>%site_url%</code> - 站点URL" 83 111 84 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:12385 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:138112 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:129 113 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:144 86 114 msgid "<code>%site_name%</code> - the name of your site" 87 115 msgstr "<code>%site_name%</code> - 站点名称" 88 116 89 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:12490 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:139117 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:130 118 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:145 91 119 msgid "<code>%post_url%</code> - the URL of a post" 92 120 msgstr "<code>%post_url%</code> - 文章URL" 93 121 94 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:12595 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:140122 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:131 123 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:146 96 124 msgid "<code>%post_title%</code> -the title of a post" 97 125 msgstr "<code>%post_title%</code> - 文章标题" 98 126 99 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:133127 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:139 100 128 msgid "Footer Text:" 101 129 msgstr "Footer文本:" 102 130 103 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:134131 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:140 104 132 msgid "This text will be inserted at end of your post if not empty." 105 133 msgstr "如果不为空,这段文字会被插入到你文章的结尾" 106 134 107 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:148135 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:154 108 136 msgid "Add To Blog Home:" 109 137 msgstr "在博客首页显示:" 110 138 111 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:154139 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:160 112 140 msgid "Add To Pages:" 113 141 msgstr "在Page页面中显示:" 114 142 115 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:160143 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:166 116 144 msgid "Add To Categories:" 117 145 msgstr "在分类页面中显示:" 118 146 119 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:166147 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:172 120 148 msgid "Add To Tags:" 121 149 msgstr "在Tag页面中显示:" 122 150 123 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:172151 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:178 124 152 msgid "Add To Archives:" 125 153 msgstr "在归档页面中显示:" 126 154 127 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:178155 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:184 128 156 msgid "Add To Single:" 129 157 msgstr "在单篇文章中显示:" 130 158 131 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:184159 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:190 132 160 msgid "Add To Feed:" 133 161 msgstr "在Feed中显示:" 134 162 135 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:190 136 msgid "Add Header and/or Footer For Existed Posts:" 137 msgstr "给以前发表的文章添加自定义文本:" 138 139 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:196 163 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:196 140 164 msgid "Help Promote WP-PostURL Plugin:" 141 165 msgstr "帮助推广WP-PostURL插件:" 142 166 143 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:205167 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:205 144 168 msgid "Save Changes" 145 169 msgstr "保存修改" 146 170 147 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:209171 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:209 148 172 msgid "Restore Default Values" 149 173 msgstr "恢复缺省值" 150 174 151 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:221175 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:221 152 176 msgid "Deactivating Add Post URL plugin does not remove any data that may have been created, such as the post URL options. To completely remove this plugin, you can uninstall it here." 153 177 msgstr "停用添加文章链接插件不会删除插件创建的数据,例如插件所用的选项值。要完全删除这个插件,请可以在此处选择卸载。" 154 178 155 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:224179 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:224 156 180 msgid "WARNING:" 157 181 msgstr "警告:" 158 182 159 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:225183 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:225 160 184 msgid "Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first." 161 185 msgstr "卸载操作不能被撤销。如果您想保留您所做的配置,请先使用WordPress的数据库备份插件来备份你的数据。" 162 186 163 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:228187 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:228 164 188 msgid "The following WordPress Options will be DELETED:" 165 189 msgstr "下列WordPress选项将被删除:" 166 190 167 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:233191 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:233 168 192 msgid "WordPress Options" 169 193 msgstr "WordPress选项" 170 194 171 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:250 172 #: L:\workspace\wordpress\wp-posturl\trunk/wp-posturl.php:271 173 msgid "Yes" 174 msgstr "是" 175 176 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:251 195 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:251 177 196 msgid "" 178 197 "You Are About To Uninstall Add Post URL From WordPress.\\n" … … 186 205 " 要停止卸载,请选择 [取消], 选择 [确定] 继续卸载。" 187 206 188 #: L:\workspace\wordpress\wp-posturl\trunk/wp-posturl.php:42189 #: L:\workspace\wordpress\wp-posturl\trunk/wp-posturl.php:43190 #: L:\workspace\wordpress\wp-posturl\trunk/wp-posturl.php:281191 msgid "Add Post URL"192 msgstr "添加文章链接"193 194 #: L:\workspace\wordpress\wp-posturl\trunk/wp-posturl.php:106195 #, php-format196 msgid "<div style=\"margin-top: 0; margin-bottom: 15px; color: #888888; font-size: 80%%; font-style: italic\"><p>Post Footer automatically generated by <a href=\"%1$s\" style=\"color: #8888FF; text-decoration: underline;\">wp-posturl plugin</a> for wordpress.</p></div>"197 msgstr "<p style=\"margin-top: 0; margin-bottom: 15px; color: #888888; font-size: 80%%; font-style: italic\">文章的脚注信息由WordPress的<a href=\"%1$s\" style=\"color: #8888FF; text-decoration: underline;\">wp-posturl插件</a>自动生成</p>"198 199 #: L:\workspace\wordpress\wp-posturl\trunk/wp-posturl.php:269200 msgid "Add Post URL?"201 msgstr "添加文章链接?"202 203 #: L:\workspace\wordpress\wp-posturl\trunk/wp-posturl.php:272204 msgid "No"205 msgstr "否"206 207 207 #~ msgid "User Specific String:" 208 208 #~ msgstr "用户自定义字符串:" 209 210 209 #~ msgid "Add To Beginning:" 211 210 #~ msgstr "添加到文章开头:" 212 213 211 #~ msgid "User Specific Inner Post Text:" 214 212 #~ msgstr "用户自定义文内字符串:" 215 216 213 #~ msgid "" 217 214 #~ "If not empty, string \"<code>%wpurl%</code>\" within your post content " … … 219 216 #~ msgstr "" 220 217 #~ "如果不为空,文章内容中的\"<code>%wpurl%</code>\"字符串会被替换成此内容。" 221 222 218 #~ msgid "" 223 219 #~ "Also allow these variables: <code>%site_url%</code>, <code>%site_name%</" … … 226 222 #~ "支持下列变量: <code>%site_url%</code>, <code>%site_name%</code> , <code>%" 227 223 #~ "post_url%</code>和<code>%post_title%</code>." 228 229 224 #~ msgid "" 230 225 #~ "<strong>Note:</strong> Use this feature with care. If you disable this " … … 235 230 #~ "了WP-PostURL插件,你文章中的\"<code>%wpurl%</code>\"字符串会被原封不动的显" 236 231 #~ "示出来." 237 238 232 #~ msgid "Keep Plugin Credit:" 239 233 #~ msgstr "保留插件版权:" 240 241 234 #~ msgid "Post Copyright String:" 242 235 #~ msgstr "文章版权信息:" 236 -
wp-posturl/trunk/wp-posturl.php
r492491 r493699 4 4 Plugin URI: http://easwy.com/blog/wordpress/wp-posturl/ 5 5 Description: This plugin allows you to insert a user specific text (such as copyright, credit, advertisement, etc.) at the beginning/ending of your posts. You can also decide which posts display the specific text. 6 Version: 2.0. 16 Version: 2.0.2 7 7 Author: Easwy Yang 8 8 Author URI: http://easwy.com/ … … 121 121 if ($posturl_options = get_option('posturl_options')) 122 122 { 123 if (isset($posturl_options['add_credit'])) 124 { 125 if ($posturl_options['add_credit'] == 'Yes' 126 || $posturl_options['add_credit'] == true) 123 if (array_key_exists('add_credit', $posturl_options)) 124 { 125 if ($posturl_options['add_credit'] == 'No' 126 || $posturl_options['add_credit'] == false) 127 { 128 $posturl_options['add_credit'] = false; 129 } 130 else 127 131 { 128 132 $posturl_options['add_credit'] = true; 129 133 } 130 else131 {132 $posturl_options['add_credit'] = false;133 }134 134 } 135 135 else … … 139 139 140 140 // Upgrade add_to_beginning 141 if ( isset($posturl_options['add_to_beginning']))141 if (array_key_exists('add_to_beginning', $posturl_options)) 142 142 { 143 143 if ($posturl_options['add_to_beginning'] == 'No') 144 144 { 145 if ( isset($posturl_options['post_url_text']))145 if (array_key_exists('post_url_text', $posturl_options)) 146 146 { 147 147 $posturl_options['footer_text'] = $posturl_options['post_url_text']; … … 154 154 else 155 155 { 156 if ( isset($posturl_options['post_url_text']))156 if (array_key_exists('post_url_text', $posturl_options)) 157 157 { 158 158 $posturl_options['header_text'] = $posturl_options['post_url_text']; … … 170 170 else 171 171 { 172 if (! isset($posturl_options['header_text']))172 if (!array_key_exists('header_text', $posturl_options)) 173 173 { 174 174 $posturl_options['header_text'] = ''; 175 175 } 176 176 177 if (! isset($posturl_options['footer_text']))177 if (!array_key_exists('footer_text', $posturl_options)) 178 178 { 179 179 $posturl_options['footer_text'] = $default_footer_text; … … 185 185 } 186 186 187 if (! isset($posturl_options['add_to_home']))187 if (!array_key_exists('add_to_home', $posturl_options)) 188 188 { 189 189 $posturl_options['add_to_home'] = false; 190 190 } 191 191 192 if (! isset($posturl_options['add_to_category']))192 if (!array_key_exists('add_to_category', $posturl_options)) 193 193 { 194 194 $posturl_options['add_to_category'] = false; 195 195 } 196 196 197 if (! isset($posturl_options['add_to_tag']))197 if (!array_key_exists('add_to_tag', $posturl_options)) 198 198 { 199 199 $posturl_options['add_to_tag'] = false; 200 200 } 201 201 202 if (! isset($posturl_options['add_to_archive']))202 if (!array_key_exists('add_to_archive', $posturl_options)) 203 203 { 204 204 $posturl_options['add_to_archive'] = false; 205 205 } 206 206 207 if (! isset($posturl_options['add_to_single']))207 if (!array_key_exists('add_to_single', $posturl_options)) 208 208 { 209 209 $posturl_options['add_to_single'] = true; 210 210 } 211 211 212 if (! isset($posturl_options['add_to_feed']))212 if (!array_key_exists('add_to_feed', $posturl_options)) 213 213 { 214 214 $posturl_options['add_to_feed'] = false; 215 215 } 216 216 217 if (! isset($posturl_options['add_to_page']))217 if (!array_key_exists('add_to_page', $posturl_options)) 218 218 { 219 219 $posturl_options['add_to_page'] = false; 220 220 } 221 221 222 if (!isset($posturl_options['add_url_by_default'])) 223 { 224 $posturl_options['add_url_by_default'] = true; 225 } 222 /* 223 * To fix the problem in 2.0.1, set to true by default 224 * It may change the user configuration if you re-install/re-activate 225 * the plugin 226 */ 227 /* 228 *if (!array_key_exists('add_url_by_default', $posturl_options)) 229 *{ 230 * $posturl_options['add_url_by_default'] = true; 231 *} 232 */ 233 $posturl_options['add_url_by_default'] = true; 226 234 227 235 // refresh options 228 //update_option('posturl_options', $posturl_options);229 236 delete_option('posturl_options'); 230 237 add_option('posturl_options', $posturl_options); -
wp-posturl/trunk/wp-posturl.pot
r492558 r493699 3 3 "Project-Id-Version: wp-posturl\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2012-01-2 0 17:33+0800\n"5 "POT-Creation-Date: 2012-01-23 13:25+0800\n" 6 6 "PO-Revision-Date: \n" 7 7 "Last-Translator: Easwy Yang <easwy.mail@gmail.com>\n" … … 15 15 "X-Poedit-KeywordsList: __;_e\n" 16 16 "X-Poedit-Basepath: .\n" 17 "X-Poedit-SearchPath-0: L:\\workspace\\wordpress\\wp-posturl\\trunk\n" 18 19 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:36 20 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:114 17 "X-Poedit-SearchPath-0: /home/eyang/05workspace/wordpress/wp-posturl/trunk\n" 18 19 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/wp-posturl.php:42 20 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/wp-posturl.php:43 21 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/wp-posturl.php:288 22 msgid "Add Post URL" 23 msgstr "" 24 25 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/wp-posturl.php:106 26 #, php-format 27 msgid "<div style=\"margin-top: 0; margin-bottom: 15px; color: #888888; font-size: 80%%; font-style: italic\"><p>Post Footer automatically generated by <a href=\"%1$s\" style=\"color: #8888FF; text-decoration: underline;\">wp-posturl plugin</a> for wordpress.</p></div>" 28 msgstr "" 29 30 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/wp-posturl.php:118 31 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:98 32 msgid "<div style=\"margin-top: 15px; font-style: italic\"><p><strong>From</strong> <a href=\"%site_url%\">%site_name%</a>, <strong>post</strong> <a href=\"%post_url%\">%post_title%</a></p></div>" 33 msgstr "" 34 35 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/wp-posturl.php:276 36 msgid "Add Post URL?" 37 msgstr "" 38 39 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/wp-posturl.php:278 40 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:250 41 msgid "Yes" 42 msgstr "" 43 44 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/wp-posturl.php:279 45 msgid "No" 46 msgstr "" 47 48 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:36 49 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:114 21 50 msgid "Post URL Options" 22 51 msgstr "" 23 52 24 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:4153 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:41 25 54 msgid "Updated" 26 55 msgstr "" 27 56 28 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:4657 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:46 29 58 msgid "No Post URL Option Updated" 30 59 msgstr "" 31 60 32 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:5233 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:25161 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:52 62 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:251 34 63 msgid "UNINSTALL Add Post URL" 35 64 msgstr "" 36 65 37 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:6066 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:60 38 67 #, php-format 39 68 msgid "Setting Key '%s' has been deleted." 40 69 msgstr "" 41 70 42 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:6471 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:64 43 72 #, php-format 44 73 msgid "Error deleting Setting Key '%s'." 45 74 msgstr "" 46 75 47 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:8648 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:21976 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:86 77 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:219 49 78 msgid "Uninstall Add Post URL" 50 79 msgstr "" 51 80 52 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:8781 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:87 53 82 #, php-format 54 83 msgid "<a href=\"%s\">Click Here</a> To Finish The Uninstallation And Add Post URL Will Be Deactivated Automatically." 55 84 msgstr "" 56 85 57 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:98 58 #: L:\workspace\wordpress\wp-posturl\trunk/wp-posturl.php:118 59 msgid "<div style=\"margin-top: 15px; font-style: italic\"><p><strong>From</strong> <a href=\"%site_url%\">%site_name%</a>, <strong>post</strong> <a href=\"%post_url%\">%post_title%</a></p></div>" 60 msgstr "" 61 62 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:115 86 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:115 63 87 msgid "Post URL Text" 64 88 msgstr "" 65 89 66 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:118 90 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:118 91 msgid "Add Header and/or Footer For Old Posts (Keep selected if in doubt):" 92 msgstr "" 93 94 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:124 67 95 msgid "Header Text:" 68 96 msgstr "" 69 97 70 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:11998 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:125 71 99 msgid "This text will be inserted at beginning of your post if not empty." 72 100 msgstr "" 73 101 74 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:12075 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:135102 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:126 103 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:141 76 104 msgid "Allowed Variables:" 77 105 msgstr "" 78 106 79 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:12280 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:137107 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:128 108 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:143 81 109 msgid "<code>%site_url%</code> - the URL of your site" 82 110 msgstr "" 83 111 84 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:12385 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:138112 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:129 113 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:144 86 114 msgid "<code>%site_name%</code> - the name of your site" 87 115 msgstr "" 88 116 89 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:12490 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:139117 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:130 118 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:145 91 119 msgid "<code>%post_url%</code> - the URL of a post" 92 120 msgstr "" 93 121 94 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:12595 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:140122 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:131 123 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:146 96 124 msgid "<code>%post_title%</code> -the title of a post" 97 125 msgstr "" 98 126 99 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:133127 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:139 100 128 msgid "Footer Text:" 101 129 msgstr "" 102 130 103 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:134131 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:140 104 132 msgid "This text will be inserted at end of your post if not empty." 105 133 msgstr "" 106 134 107 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:148135 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:154 108 136 msgid "Add To Blog Home:" 109 137 msgstr "" 110 138 111 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:154139 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:160 112 140 msgid "Add To Pages:" 113 141 msgstr "" 114 142 115 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:160143 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:166 116 144 msgid "Add To Categories:" 117 145 msgstr "" 118 146 119 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:166147 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:172 120 148 msgid "Add To Tags:" 121 149 msgstr "" 122 150 123 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:172151 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:178 124 152 msgid "Add To Archives:" 125 153 msgstr "" 126 154 127 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:178155 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:184 128 156 msgid "Add To Single:" 129 157 msgstr "" 130 158 131 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:184159 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:190 132 160 msgid "Add To Feed:" 133 161 msgstr "" 134 162 135 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:190 136 msgid "Add Header and/or Footer For Existed Posts:" 137 msgstr "" 138 139 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:196 163 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:196 140 164 msgid "Help Promote WP-PostURL Plugin:" 141 165 msgstr "" 142 166 143 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:205167 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:205 144 168 msgid "Save Changes" 145 169 msgstr "" 146 170 147 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:209171 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:209 148 172 msgid "Restore Default Values" 149 173 msgstr "" 150 174 151 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:221175 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:221 152 176 msgid "Deactivating Add Post URL plugin does not remove any data that may have been created, such as the post URL options. To completely remove this plugin, you can uninstall it here." 153 177 msgstr "" 154 178 155 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:224179 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:224 156 180 msgid "WARNING:" 157 181 msgstr "" 158 182 159 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:225183 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:225 160 184 msgid "Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first." 161 185 msgstr "" 162 186 163 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:228187 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:228 164 188 msgid "The following WordPress Options will be DELETED:" 165 189 msgstr "" 166 190 167 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:233191 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:233 168 192 msgid "WordPress Options" 169 193 msgstr "" 170 194 171 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:250 172 #: L:\workspace\wordpress\wp-posturl\trunk/wp-posturl.php:271 173 msgid "Yes" 174 msgstr "" 175 176 #: L:\workspace\wordpress\wp-posturl\trunk/posturl-options.php:251 195 #: /home/eyang/05workspace/wordpress/wp-posturl/trunk/posturl-options.php:251 177 196 msgid "" 178 197 "You Are About To Uninstall Add Post URL From WordPress.\\n" … … 182 201 msgstr "" 183 202 184 #: L:\workspace\wordpress\wp-posturl\trunk/wp-posturl.php:42185 #: L:\workspace\wordpress\wp-posturl\trunk/wp-posturl.php:43186 #: L:\workspace\wordpress\wp-posturl\trunk/wp-posturl.php:281187 msgid "Add Post URL"188 msgstr ""189 190 #: L:\workspace\wordpress\wp-posturl\trunk/wp-posturl.php:106191 #, php-format192 msgid "<div style=\"margin-top: 0; margin-bottom: 15px; color: #888888; font-size: 80%%; font-style: italic\"><p>Post Footer automatically generated by <a href=\"%1$s\" style=\"color: #8888FF; text-decoration: underline;\">wp-posturl plugin</a> for wordpress.</p></div>"193 msgstr ""194 195 #: L:\workspace\wordpress\wp-posturl\trunk/wp-posturl.php:269196 msgid "Add Post URL?"197 msgstr ""198 199 #: L:\workspace\wordpress\wp-posturl\trunk/wp-posturl.php:272200 msgid "No"201 msgstr ""202
Note: See TracChangeset
for help on using the changeset viewer.