Version Description
Download this release
Release Info
Developer | qqworld |
Plugin | QQWorld Auto Save Images |
Version | 1.7.7 |
Comparing to | |
See all releases |
Code changes from version 1.7.6 to 1.7.7
- lang/qqworld_auto_save_images-zh_CN.mo +0 -0
- lang/qqworld_auto_save_images-zh_CN.po +216 -129
- qqworld-auto-save-images.php +54 -22
lang/qqworld_auto_save_images-zh_CN.mo
CHANGED
Binary file
|
lang/qqworld_auto_save_images-zh_CN.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: QQworld Auto Save Images\n"
|
4 |
"Report-Msgid-Bugs-To: http://www.qqworld.org\n"
|
5 |
-
"POT-Creation-Date: 2014-10-
|
6 |
-
"PO-Revision-Date: 2014-10-
|
7 |
"Last-Translator: Michael Wang <admin@qqworld.org>\n"
|
8 |
"Language-Team: QQWorld <admin@qqworld.org>\n"
|
9 |
"Language: zh_CN\n"
|
@@ -25,285 +25,355 @@ msgstr ""
|
|
25 |
msgid "Michael Wang"
|
26 |
msgstr "王晓骞"
|
27 |
|
28 |
-
#: qqworld-auto-save-images.php:
|
29 |
#, fuzzy
|
30 |
msgid "Notice:"
|
31 |
-
msgstr "
|
32 |
|
33 |
-
#: qqworld-auto-save-images.php:
|
34 |
#, php-format
|
35 |
msgid ""
|
36 |
-
"Ever since the QQWorld-Auto-Save-Image v1.7.
|
37 |
"a big modification, please reset the <a href=\"%s\">settings</a>."
|
38 |
msgstr ""
|
39 |
-
"自动 QQWorld自动保存图片 v1.7.
|
40 |
"\">设置</a>。"
|
41 |
|
42 |
-
#: qqworld-auto-save-images.php:
|
43 |
msgid "No taxonomies found."
|
44 |
msgstr "没有相关分类方法。"
|
45 |
|
46 |
-
#: qqworld-auto-save-images.php:
|
47 |
-
#: qqworld-auto-save-images.php:
|
48 |
msgid "All remote images have been saved."
|
49 |
msgstr "已保存所有远程图像。"
|
50 |
|
51 |
-
#: qqworld-auto-save-images.php:
|
52 |
#, php-format
|
53 |
msgid " <a href=\"%s\">View</a>"
|
54 |
msgstr " <a href=\"%s\">查看</a>"
|
55 |
|
56 |
-
#: qqworld-auto-save-images.php:
|
57 |
msgid "Has missing images or image which could not download."
|
58 |
msgstr "内容包含 不存在/无法下载 的图像。"
|
59 |
|
60 |
-
#: qqworld-auto-save-images.php:
|
61 |
msgid "In Process..."
|
62 |
msgstr "正在保存……"
|
63 |
|
64 |
-
#: qqworld-auto-save-images.php:
|
|
|
|
|
|
|
|
|
65 |
msgid ""
|
66 |
"Are you sure?<br />Before you click the yes button, I recommend backup site "
|
67 |
"database."
|
68 |
msgstr "你确定吗?<br />在点击确定按钮之前,我建议你备份网站的数据库。"
|
69 |
|
70 |
-
#: qqworld-auto-save-images.php:
|
71 |
msgid "Please select post types."
|
72 |
msgstr "请选择文章类型。"
|
73 |
|
74 |
-
#: qqworld-auto-save-images.php:
|
75 |
msgid "May be a problem with some posts: "
|
76 |
msgstr "也许一些文章有问题:"
|
77 |
|
78 |
-
#: qqworld-auto-save-images.php:
|
79 |
#, php-format
|
80 |
msgid "%d post has been scanned."
|
81 |
msgstr "已扫描%d篇文章。"
|
82 |
|
83 |
-
#: qqworld-auto-save-images.php:
|
84 |
#, php-format
|
85 |
msgid "%d posts have been scanned."
|
86 |
msgstr "已扫描%d篇文章。"
|
87 |
|
88 |
-
#: qqworld-auto-save-images.php:
|
89 |
#, php-format
|
90 |
msgid "%d post included remote images processed."
|
91 |
msgstr "已处理%d篇包含远程图像的文章。"
|
92 |
|
93 |
-
#: qqworld-auto-save-images.php:
|
94 |
#, php-format
|
95 |
msgid "%d posts included remote images processed."
|
96 |
msgstr "已处理%d篇包含远程图像的文章。"
|
97 |
|
98 |
-
#: qqworld-auto-save-images.php:
|
99 |
#, php-format
|
100 |
msgid "%d post has missing images couldn't be processed."
|
101 |
msgstr "%d篇包含不存在的远程图像的文章无法处理。"
|
102 |
|
103 |
-
#: qqworld-auto-save-images.php:
|
104 |
#, php-format
|
105 |
msgid "%d posts have missing images couldn't be processed."
|
106 |
msgstr "%d篇包含不存在的远程图像的文章无法处理。"
|
107 |
|
108 |
-
#: qqworld-auto-save-images.php:
|
109 |
#, php-format
|
110 |
msgid "found %d post including remote images."
|
111 |
msgstr "找到%d篇包含远程图像的文章。"
|
112 |
|
113 |
-
#: qqworld-auto-save-images.php:
|
114 |
#, php-format
|
115 |
msgid "found %d posts including remote images."
|
116 |
msgstr "找到%d篇包含远程图像的文章。"
|
117 |
|
118 |
-
#: qqworld-auto-save-images.php:
|
119 |
#, php-format
|
120 |
msgid "And with %d post has missing images."
|
121 |
msgstr "其中有%d篇文章包含不存在的远程图像。"
|
122 |
|
123 |
-
#: qqworld-auto-save-images.php:
|
124 |
#, php-format
|
125 |
msgid "And with %d posts have missing images."
|
126 |
msgstr "其中有%d篇文章包含不存在的远程图像。"
|
127 |
|
128 |
-
#: qqworld-auto-save-images.php:
|
129 |
msgid "No posts processed."
|
130 |
msgstr "未处理任何文章。"
|
131 |
|
132 |
-
#: qqworld-auto-save-images.php:
|
133 |
msgid "No post has remote images found."
|
134 |
msgstr "没有文章包含远程图像。"
|
135 |
|
136 |
-
#: qqworld-auto-save-images.php:
|
137 |
msgid "No posts found."
|
138 |
msgstr "未找到任何文章。"
|
139 |
|
140 |
-
#: qqworld-auto-save-images.php:
|
141 |
msgid "All done."
|
142 |
msgstr "全部完成。"
|
143 |
|
144 |
-
#: qqworld-auto-save-images.php:
|
145 |
#, fuzzy
|
146 |
msgid "Yes"
|
147 |
-
msgstr "
|
148 |
|
149 |
-
#: qqworld-auto-save-images.php:
|
150 |
msgid "No"
|
151 |
msgstr ""
|
152 |
|
153 |
-
#: qqworld-auto-save-images.php:
|
154 |
msgid "Scanning..."
|
155 |
msgstr "扫描中……"
|
156 |
|
157 |
-
#: qqworld-auto-save-images.php:
|
158 |
msgid "Listing..."
|
159 |
msgstr "显示列表中……"
|
160 |
|
161 |
-
#: qqworld-auto-save-images.php:
|
162 |
#, fuzzy
|
163 |
msgid "ID"
|
164 |
msgstr "博客ID"
|
165 |
|
166 |
-
#: qqworld-auto-save-images.php:
|
167 |
msgid "Post Type"
|
168 |
msgstr "文章类型"
|
169 |
|
170 |
-
#: qqworld-auto-save-images.php:
|
171 |
#, fuzzy
|
172 |
msgid "Title"
|
173 |
msgstr "标题"
|
174 |
|
175 |
-
#: qqworld-auto-save-images.php:
|
176 |
#, fuzzy
|
177 |
msgid "Status"
|
178 |
msgstr "状态"
|
179 |
|
180 |
-
#: qqworld-auto-save-images.php:
|
181 |
msgid "Control"
|
182 |
msgstr "控制"
|
183 |
|
184 |
-
#: qqworld-auto-save-images.php:
|
185 |
#, fuzzy
|
186 |
msgid "Done"
|
187 |
msgstr "全部完成。"
|
188 |
|
189 |
-
#: qqworld-auto-save-images.php:
|
190 |
#, fuzzy
|
191 |
msgid "Delete"
|
192 |
msgstr "删除"
|
193 |
|
194 |
-
#: qqworld-auto-save-images.php:
|
195 |
msgid "Has missing images."
|
196 |
msgstr "有不存在的远程图像。"
|
197 |
|
198 |
-
#: qqworld-auto-save-images.php:
|
199 |
msgid "Normal"
|
200 |
msgstr "正常"
|
201 |
|
202 |
-
#: qqworld-auto-save-images.php:
|
203 |
msgid "Fetch"
|
204 |
msgstr "抓取"
|
205 |
|
206 |
-
#: qqworld-auto-save-images.php:
|
207 |
msgid "Save Remote Images"
|
208 |
msgstr "保存远程图片"
|
209 |
|
210 |
-
#: qqworld-auto-save-images.php:
|
211 |
#, fuzzy
|
212 |
msgid "Settings"
|
213 |
msgstr "光箱选项"
|
214 |
|
215 |
-
#: qqworld-auto-save-images.php:
|
216 |
msgid "Auto Save Images"
|
217 |
msgstr "自动保存图片"
|
218 |
|
219 |
-
#: qqworld-auto-save-images.php:
|
220 |
msgid "QQWorld Auto Save Images"
|
221 |
msgstr "QQWorld自动保存图片"
|
222 |
|
223 |
-
#: qqworld-auto-save-images.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
224 |
msgid ""
|
225 |
"Automatically keep the all remote picture to the local, and automatically "
|
226 |
"set featured image."
|
227 |
msgstr ""
|
228 |
"自动保存远程图片到本地,自动设置特色图片,并且支持机器人采集软件从外部提交。"
|
229 |
|
230 |
-
#: qqworld-auto-save-images.php:
|
231 |
msgid "Watermark"
|
232 |
msgstr "水印"
|
233 |
|
234 |
-
#: qqworld-auto-save-images.php:
|
235 |
msgid "Trial"
|
236 |
msgstr "试用"
|
237 |
|
238 |
-
#: qqworld-auto-save-images.php:
|
239 |
msgid "Scan Posts"
|
240 |
msgstr "扫描文章"
|
241 |
|
242 |
-
#: qqworld-auto-save-images.php:
|
243 |
msgid "General Options"
|
244 |
msgstr "常规选项"
|
245 |
|
246 |
-
#: qqworld-auto-save-images.php:
|
247 |
msgid "Mode"
|
248 |
msgstr "模式"
|
249 |
|
250 |
-
#: qqworld-auto-save-images.php:
|
251 |
-
#: qqworld-auto-save-images.php:
|
252 |
-
#: qqworld-auto-save-images.php:
|
253 |
msgid "Automatic"
|
254 |
msgstr "自动"
|
255 |
|
256 |
-
#: qqworld-auto-save-images.php:
|
257 |
msgid ""
|
258 |
"Automatically save all remote images to local media libary when you save or "
|
259 |
"publish post."
|
260 |
msgstr "在保存或发布文章时,自动将所有远程图像保存到本地媒体库。"
|
261 |
|
262 |
-
#: qqworld-auto-save-images.php:
|
263 |
msgid "Manual"
|
264 |
msgstr "手动"
|
265 |
|
266 |
-
#: qqworld-auto-save-images.php:
|
267 |
msgid ""
|
268 |
"Manually save all remote images to local media libary when you click the "
|
269 |
"button on the top of editor."
|
270 |
msgstr "当单击编辑器顶部的按钮时,手动将所有远程图像保存到本地媒体库。"
|
271 |
|
272 |
-
#: qqworld-auto-save-images.php:
|
273 |
msgid "When"
|
274 |
msgstr "什么时候"
|
275 |
|
276 |
-
#: qqworld-auto-save-images.php:
|
277 |
msgid "Save post (Publish, save draft or pedding review)."
|
278 |
msgstr "保存文章时(发布文章,保存草稿或提交审核)。"
|
279 |
|
280 |
-
#: qqworld-auto-save-images.php:
|
281 |
msgid "Publish post only."
|
282 |
msgstr "仅发布文章时。"
|
283 |
|
284 |
-
#: qqworld-auto-save-images.php:
|
285 |
msgid "Remote Publishing"
|
286 |
msgstr "远程发布"
|
287 |
|
288 |
-
#: qqworld-auto-save-images.php:
|
289 |
msgid ""
|
290 |
"Save remote images via remote publishing from IFTTT or other way using "
|
291 |
"XMLRPC."
|
292 |
msgstr "保存通过IFTTT或其他使用XMLRPC方法远程发布的远程图片。"
|
293 |
|
294 |
-
#: qqworld-auto-save-images.php:
|
295 |
msgid "Set Featured Image"
|
296 |
msgstr "设置特色图片"
|
297 |
|
298 |
-
#: qqworld-auto-save-images.php:
|
299 |
msgid "Set first one of the remote images as featured image."
|
300 |
msgstr "设置远程图片中的第1个为特色图片。"
|
301 |
|
302 |
-
#: qqworld-auto-save-images.php:
|
303 |
msgid "Change Image Filename"
|
304 |
msgstr "更改图片文件名"
|
305 |
|
306 |
-
#: qqworld-auto-save-images.php:
|
307 |
msgid ""
|
308 |
"If you checked this, when the remote image filename have Chinese or other "
|
309 |
"East Asian characters. system will automatically change image filename. I "
|
@@ -312,148 +382,160 @@ msgstr ""
|
|
312 |
"如果勾选了此项,当远程图片名包含中文或其他东亚字符的时候,将自动更改图片文件"
|
313 |
"名。建议开启。"
|
314 |
|
315 |
-
#: qqworld-auto-save-images.php:
|
316 |
msgid "Exclude Domain/Keyword"
|
317 |
msgstr "排除域名/关键词"
|
318 |
|
319 |
-
#: qqworld-auto-save-images.php:
|
320 |
msgid "Images will not be saved, if that url contains Exclude-Domain/Keyword."
|
321 |
msgstr "如果图片地址包含排除域名/关键词,则不会保存该图片。"
|
322 |
|
323 |
-
#: qqworld-auto-save-images.php:
|
324 |
msgid "Add a Domain/Keyword"
|
325 |
msgstr "添加域名/关键词"
|
326 |
|
327 |
-
#: qqworld-auto-save-images.php:
|
328 |
msgid "Format Options"
|
329 |
msgstr "格式化选项"
|
330 |
|
331 |
-
#: qqworld-auto-save-images.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
332 |
msgid "Image Size"
|
333 |
msgstr "图像尺寸"
|
334 |
|
335 |
-
#: qqworld-auto-save-images.php:
|
336 |
msgid "Replace images you want size to display."
|
337 |
msgstr "替换成你想要显示的尺寸的图像。"
|
338 |
|
339 |
-
#: qqworld-auto-save-images.php:
|
340 |
#, fuzzy
|
341 |
msgid "Thumbnail"
|
342 |
msgstr ""
|
343 |
"一个数组,可以包含数个函数,每个函数返回可能的缩略图图片对象相对于时间对象的"
|
344 |
"jQuery路径。"
|
345 |
|
346 |
-
#: qqworld-auto-save-images.php:
|
347 |
msgid "Medium"
|
348 |
msgstr ""
|
349 |
|
350 |
-
#: qqworld-auto-save-images.php:
|
351 |
msgid "Large"
|
352 |
msgstr ""
|
353 |
|
354 |
-
#: qqworld-auto-save-images.php:
|
355 |
#, fuzzy
|
356 |
msgid "Full Size"
|
357 |
msgstr "链接到全尺寸图像"
|
358 |
|
359 |
-
#: qqworld-auto-save-images.php:
|
360 |
msgid "Link To"
|
361 |
msgstr "链接到"
|
362 |
|
363 |
-
#: qqworld-auto-save-images.php:
|
|
|
|
|
|
|
|
|
364 |
#, fuzzy
|
365 |
msgid "Media File"
|
366 |
msgstr "添加文件"
|
367 |
|
368 |
-
#: qqworld-auto-save-images.php:
|
369 |
#, fuzzy
|
370 |
msgid "Attachment Page"
|
371 |
msgstr "(附件)"
|
372 |
|
373 |
-
#: qqworld-auto-save-images.php:
|
374 |
msgid "None"
|
375 |
msgstr ""
|
376 |
|
377 |
-
#: qqworld-auto-save-images.php:
|
378 |
msgid ""
|
379 |
"Just for preview, The complete feature will on the Pro version. Don't worry, "
|
380 |
"other features will be free forever."
|
381 |
msgstr "仅仅用于预览,专业版将提供完整的功能。别担心,其他功能将永久免费。"
|
382 |
|
383 |
-
#: qqworld-auto-save-images.php:
|
384 |
msgid "Enabled Watermark"
|
385 |
msgstr "启用水印"
|
386 |
|
387 |
-
#: qqworld-auto-save-images.php:
|
388 |
msgid "Use for both of remote images and the local upload."
|
389 |
msgstr "同时用于远程图片和本地上传。"
|
390 |
|
391 |
-
#: qqworld-auto-save-images.php:
|
392 |
msgid "Filter"
|
393 |
msgstr "过滤"
|
394 |
|
395 |
-
#: qqworld-auto-save-images.php:
|
396 |
msgid "Skip images that smaller than this size."
|
397 |
msgstr "跳过比这个尺寸更小的图像。"
|
398 |
|
399 |
-
#: qqworld-auto-save-images.php:
|
400 |
msgid "Width:"
|
401 |
msgstr "宽度:"
|
402 |
|
403 |
-
#: qqworld-auto-save-images.php:
|
404 |
msgid "(px)"
|
405 |
msgstr "(像素)"
|
406 |
|
407 |
-
#: qqworld-auto-save-images.php:
|
408 |
msgid "Height:"
|
409 |
msgstr "高度:"
|
410 |
|
411 |
-
#: qqworld-auto-save-images.php:
|
412 |
msgid "Align To"
|
413 |
msgstr "对齐方式"
|
414 |
|
415 |
-
#: qqworld-auto-save-images.php:
|
416 |
msgid "Position"
|
417 |
msgstr "位置"
|
418 |
|
419 |
-
#: qqworld-auto-save-images.php:
|
420 |
msgid "You can try to drag the watermark image."
|
421 |
msgstr "你可以试着拖动水印图片。"
|
422 |
|
423 |
-
#: qqworld-auto-save-images.php:
|
424 |
-
#: qqworld-auto-save-images.php:
|
425 |
msgid "Offset"
|
426 |
msgstr "偏移"
|
427 |
|
428 |
-
#: qqworld-auto-save-images.php:
|
429 |
msgid "Opacity"
|
430 |
msgstr "不透明度"
|
431 |
|
432 |
-
#: qqworld-auto-save-images.php:
|
433 |
msgid "Upload Watermark Image"
|
434 |
msgstr "上传水印图片"
|
435 |
|
436 |
-
#: qqworld-auto-save-images.php:
|
437 |
msgid "Insert a Watermark Image"
|
438 |
msgstr "插入水印图片"
|
439 |
|
440 |
-
#: qqworld-auto-save-images.php:
|
441 |
msgid "Default Watermark"
|
442 |
msgstr "默认水印"
|
443 |
|
444 |
-
#: qqworld-auto-save-images.php:
|
445 |
msgid "Buy"
|
446 |
msgstr "购买"
|
447 |
|
448 |
-
#: qqworld-auto-save-images.php:
|
449 |
msgid "Coming.. I don't know when, Who cares.."
|
450 |
msgstr "即将…我不知道什么时候,管它呢……"
|
451 |
|
452 |
-
#: qqworld-auto-save-images.php:
|
453 |
msgid "Select post types"
|
454 |
msgstr "选择文章类型"
|
455 |
|
456 |
-
#: qqworld-auto-save-images.php:
|
457 |
msgid ""
|
458 |
"If you have too many posts to be scan, sometimes in process looks like "
|
459 |
"stopping, but it may be fake. please be patient."
|
@@ -461,20 +543,20 @@ msgstr ""
|
|
461 |
"如果有太多文章需要扫描,有时候在扫描过程中看起来像是停止了,但可能是假停止,"
|
462 |
"请耐心等待。"
|
463 |
|
464 |
-
#: qqworld-auto-save-images.php:
|
465 |
#, fuzzy
|
466 |
msgid "Categories"
|
467 |
msgstr "%s分类"
|
468 |
|
469 |
-
#: qqworld-auto-save-images.php:
|
470 |
msgid "Default empty to scan all categories."
|
471 |
msgstr "默认留空扫描所有分类。"
|
472 |
|
473 |
-
#: qqworld-auto-save-images.php:
|
474 |
msgid "Scope of Post ID"
|
475 |
msgstr "文章ID范围"
|
476 |
|
477 |
-
#: qqworld-auto-save-images.php:
|
478 |
msgid ""
|
479 |
"Default empty for scan all posts ID. If you want to scan posts ID from 50 to "
|
480 |
"100. please type '50' and '100' or '100' and '50', The order in which two "
|
@@ -485,12 +567,12 @@ msgstr ""
|
|
485 |
"者'100'和'50',两个数字的顺序可以颠倒。如果你只输入了1个数字,则系统只会扫描"
|
486 |
"该ID。"
|
487 |
|
488 |
-
#: qqworld-auto-save-images.php:
|
489 |
#, php-format
|
490 |
msgid "From %1$s to %2$s"
|
491 |
msgstr "从 %1$s 到 %2$s"
|
492 |
|
493 |
-
#: qqworld-auto-save-images.php:
|
494 |
msgid ""
|
495 |
"Default scan all posts. If you want to scan 50-150 posts, please type '50' "
|
496 |
"in the textfield and select '100'."
|
@@ -498,67 +580,67 @@ msgstr ""
|
|
498 |
"默认扫秒全部文章,如果想扫描50-150篇文章,请在文本框中输入“50”并在下拉菜单中"
|
499 |
"选择“100”。"
|
500 |
|
501 |
-
#: qqworld-auto-save-images.php:
|
502 |
#, php-format
|
503 |
msgid "Start from %s to Scan"
|
504 |
msgstr "从 %s 开始扫描"
|
505 |
|
506 |
-
#: qqworld-auto-save-images.php:
|
507 |
#, fuzzy
|
508 |
msgid "All"
|
509 |
msgstr "所有"
|
510 |
|
511 |
-
#: qqworld-auto-save-images.php:
|
512 |
#, fuzzy
|
513 |
msgid "Posts"
|
514 |
msgstr "热门文章"
|
515 |
|
516 |
-
#: qqworld-auto-save-images.php:
|
517 |
msgid "Any"
|
518 |
msgstr "任意"
|
519 |
|
520 |
-
#: qqworld-auto-save-images.php:
|
521 |
msgid "Order By"
|
522 |
msgstr "排序依据"
|
523 |
|
524 |
-
#: qqworld-auto-save-images.php:
|
525 |
#, fuzzy
|
526 |
msgid "Author"
|
527 |
-
msgstr "
|
528 |
|
529 |
-
#: qqworld-auto-save-images.php:
|
530 |
#, fuzzy
|
531 |
msgid "Date"
|
532 |
-
msgstr "
|
533 |
|
534 |
-
#: qqworld-auto-save-images.php:
|
535 |
msgid "Last Modified"
|
536 |
msgstr ""
|
537 |
|
538 |
-
#: qqworld-auto-save-images.php:
|
539 |
msgid "Comment Count"
|
540 |
msgstr "评论数"
|
541 |
|
542 |
-
#: qqworld-auto-save-images.php:
|
543 |
#, fuzzy
|
544 |
msgid "Order"
|
545 |
msgstr "顺序"
|
546 |
|
547 |
-
#: qqworld-auto-save-images.php:
|
548 |
msgid "Speed"
|
549 |
msgstr "速度"
|
550 |
|
551 |
-
#: qqworld-auto-save-images.php:
|
552 |
msgid "If the server is too much stress may be appropriately reduced speed."
|
553 |
msgstr "如果服务器压力过大,可以适当调低速度。"
|
554 |
|
555 |
-
#: qqworld-auto-save-images.php:
|
556 |
msgid ""
|
557 |
"Scan posts and keep remote images in all posts to local media library. Maybe "
|
558 |
"take a long time."
|
559 |
msgstr "扫描所有的文章,将所有远程图片保存到本地,可能需要很长时间。"
|
560 |
|
561 |
-
#: qqworld-auto-save-images.php:
|
562 |
msgid ""
|
563 |
"The list displayed will show you which posts including remote images, then "
|
564 |
"you can keep them to local manually via click \"Fetch\" button."
|
@@ -566,14 +648,19 @@ msgstr ""
|
|
566 |
"显示的列表中将告诉你哪些文章包含远程图片,然后你可以通过点击“抓取”按钮手动保"
|
567 |
"存。"
|
568 |
|
569 |
-
#: qqworld-auto-save-images.php:
|
570 |
msgid "Has Missing/Undownloadable images."
|
571 |
msgstr "有 不存在/不可下载 的远程图像。"
|
572 |
|
573 |
-
#: qqworld-auto-save-images.php:
|
574 |
msgid "No remote images found."
|
575 |
msgstr "没有远程图像。"
|
576 |
|
|
|
|
|
|
|
|
|
|
|
577 |
#~ msgid "Upload a Watermark Image"
|
578 |
#~ msgstr "上传水印图片"
|
579 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: QQworld Auto Save Images\n"
|
4 |
"Report-Msgid-Bugs-To: http://www.qqworld.org\n"
|
5 |
+
"POT-Creation-Date: 2014-10-22 19:26+0800\n"
|
6 |
+
"PO-Revision-Date: 2014-10-22 19:26+0800\n"
|
7 |
"Last-Translator: Michael Wang <admin@qqworld.org>\n"
|
8 |
"Language-Team: QQWorld <admin@qqworld.org>\n"
|
9 |
"Language: zh_CN\n"
|
25 |
msgid "Michael Wang"
|
26 |
msgstr "王晓骞"
|
27 |
|
28 |
+
#: qqworld-auto-save-images.php:84
|
29 |
#, fuzzy
|
30 |
msgid "Notice:"
|
31 |
+
msgstr "提示:"
|
32 |
|
33 |
+
#: qqworld-auto-save-images.php:85
|
34 |
#, php-format
|
35 |
msgid ""
|
36 |
+
"Ever since the QQWorld-Auto-Save-Image v1.7.7 released, the plugin core had "
|
37 |
"a big modification, please reset the <a href=\"%s\">settings</a>."
|
38 |
msgstr ""
|
39 |
+
"自动 QQWorld自动保存图片 v1.7.7发布,插件核心有较大更新,请重新<a href=\"%s"
|
40 |
"\">设置</a>。"
|
41 |
|
42 |
+
#: qqworld-auto-save-images.php:101
|
43 |
msgid "No taxonomies found."
|
44 |
msgstr "没有相关分类方法。"
|
45 |
|
46 |
+
#: qqworld-auto-save-images.php:109 qqworld-auto-save-images.php:283
|
47 |
+
#: qqworld-auto-save-images.php:872
|
48 |
msgid "All remote images have been saved."
|
49 |
msgstr "已保存所有远程图像。"
|
50 |
|
51 |
+
#: qqworld-auto-save-images.php:109 qqworld-auto-save-images.php:110
|
52 |
#, php-format
|
53 |
msgid " <a href=\"%s\">View</a>"
|
54 |
msgstr " <a href=\"%s\">查看</a>"
|
55 |
|
56 |
+
#: qqworld-auto-save-images.php:110
|
57 |
msgid "Has missing images or image which could not download."
|
58 |
msgstr "内容包含 不存在/无法下载 的图像。"
|
59 |
|
60 |
+
#: qqworld-auto-save-images.php:131
|
61 |
msgid "In Process..."
|
62 |
msgstr "正在保存……"
|
63 |
|
64 |
+
#: qqworld-auto-save-images.php:132
|
65 |
+
msgid "Something error, please check."
|
66 |
+
msgstr "出错了,请检查。"
|
67 |
+
|
68 |
+
#: qqworld-auto-save-images.php:154
|
69 |
msgid ""
|
70 |
"Are you sure?<br />Before you click the yes button, I recommend backup site "
|
71 |
"database."
|
72 |
msgstr "你确定吗?<br />在点击确定按钮之前,我建议你备份网站的数据库。"
|
73 |
|
74 |
+
#: qqworld-auto-save-images.php:155 qqworld-auto-save-images.php:695
|
75 |
msgid "Please select post types."
|
76 |
msgstr "请选择文章类型。"
|
77 |
|
78 |
+
#: qqworld-auto-save-images.php:156
|
79 |
msgid "May be a problem with some posts: "
|
80 |
msgstr "也许一些文章有问题:"
|
81 |
|
82 |
+
#: qqworld-auto-save-images.php:157
|
83 |
#, php-format
|
84 |
msgid "%d post has been scanned."
|
85 |
msgstr "已扫描%d篇文章。"
|
86 |
|
87 |
+
#: qqworld-auto-save-images.php:158
|
88 |
#, php-format
|
89 |
msgid "%d posts have been scanned."
|
90 |
msgstr "已扫描%d篇文章。"
|
91 |
|
92 |
+
#: qqworld-auto-save-images.php:159
|
93 |
#, php-format
|
94 |
msgid "%d post included remote images processed."
|
95 |
msgstr "已处理%d篇包含远程图像的文章。"
|
96 |
|
97 |
+
#: qqworld-auto-save-images.php:160
|
98 |
#, php-format
|
99 |
msgid "%d posts included remote images processed."
|
100 |
msgstr "已处理%d篇包含远程图像的文章。"
|
101 |
|
102 |
+
#: qqworld-auto-save-images.php:161
|
103 |
#, php-format
|
104 |
msgid "%d post has missing images couldn't be processed."
|
105 |
msgstr "%d篇包含不存在的远程图像的文章无法处理。"
|
106 |
|
107 |
+
#: qqworld-auto-save-images.php:162
|
108 |
#, php-format
|
109 |
msgid "%d posts have missing images couldn't be processed."
|
110 |
msgstr "%d篇包含不存在的远程图像的文章无法处理。"
|
111 |
|
112 |
+
#: qqworld-auto-save-images.php:163
|
113 |
#, php-format
|
114 |
msgid "found %d post including remote images."
|
115 |
msgstr "找到%d篇包含远程图像的文章。"
|
116 |
|
117 |
+
#: qqworld-auto-save-images.php:164
|
118 |
#, php-format
|
119 |
msgid "found %d posts including remote images."
|
120 |
msgstr "找到%d篇包含远程图像的文章。"
|
121 |
|
122 |
+
#: qqworld-auto-save-images.php:165
|
123 |
#, php-format
|
124 |
msgid "And with %d post has missing images."
|
125 |
msgstr "其中有%d篇文章包含不存在的远程图像。"
|
126 |
|
127 |
+
#: qqworld-auto-save-images.php:166
|
128 |
#, php-format
|
129 |
msgid "And with %d posts have missing images."
|
130 |
msgstr "其中有%d篇文章包含不存在的远程图像。"
|
131 |
|
132 |
+
#: qqworld-auto-save-images.php:167
|
133 |
msgid "No posts processed."
|
134 |
msgstr "未处理任何文章。"
|
135 |
|
136 |
+
#: qqworld-auto-save-images.php:168
|
137 |
msgid "No post has remote images found."
|
138 |
msgstr "没有文章包含远程图像。"
|
139 |
|
140 |
+
#: qqworld-auto-save-images.php:169
|
141 |
msgid "No posts found."
|
142 |
msgstr "未找到任何文章。"
|
143 |
|
144 |
+
#: qqworld-auto-save-images.php:170
|
145 |
msgid "All done."
|
146 |
msgstr "全部完成。"
|
147 |
|
148 |
+
#: qqworld-auto-save-images.php:171
|
149 |
#, fuzzy
|
150 |
msgid "Yes"
|
151 |
+
msgstr "是"
|
152 |
|
153 |
+
#: qqworld-auto-save-images.php:172
|
154 |
msgid "No"
|
155 |
msgstr ""
|
156 |
|
157 |
+
#: qqworld-auto-save-images.php:173
|
158 |
msgid "Scanning..."
|
159 |
msgstr "扫描中……"
|
160 |
|
161 |
+
#: qqworld-auto-save-images.php:174
|
162 |
msgid "Listing..."
|
163 |
msgstr "显示列表中……"
|
164 |
|
165 |
+
#: qqworld-auto-save-images.php:175 qqworld-auto-save-images.php:737
|
166 |
#, fuzzy
|
167 |
msgid "ID"
|
168 |
msgstr "博客ID"
|
169 |
|
170 |
+
#: qqworld-auto-save-images.php:176
|
171 |
msgid "Post Type"
|
172 |
msgstr "文章类型"
|
173 |
|
174 |
+
#: qqworld-auto-save-images.php:177 qqworld-auto-save-images.php:739
|
175 |
#, fuzzy
|
176 |
msgid "Title"
|
177 |
msgstr "标题"
|
178 |
|
179 |
+
#: qqworld-auto-save-images.php:178 qqworld-auto-save-images.php:717
|
180 |
#, fuzzy
|
181 |
msgid "Status"
|
182 |
msgstr "状态"
|
183 |
|
184 |
+
#: qqworld-auto-save-images.php:179
|
185 |
msgid "Control"
|
186 |
msgstr "控制"
|
187 |
|
188 |
+
#: qqworld-auto-save-images.php:180
|
189 |
#, fuzzy
|
190 |
msgid "Done"
|
191 |
msgstr "全部完成。"
|
192 |
|
193 |
+
#: qqworld-auto-save-images.php:181 qqworld-auto-save-images.php:491
|
194 |
#, fuzzy
|
195 |
msgid "Delete"
|
196 |
msgstr "删除"
|
197 |
|
198 |
+
#: qqworld-auto-save-images.php:283 qqworld-auto-save-images.php:317
|
199 |
msgid "Has missing images."
|
200 |
msgstr "有不存在的远程图像。"
|
201 |
|
202 |
+
#: qqworld-auto-save-images.php:317
|
203 |
msgid "Normal"
|
204 |
msgstr "正常"
|
205 |
|
206 |
+
#: qqworld-auto-save-images.php:318
|
207 |
msgid "Fetch"
|
208 |
msgstr "抓取"
|
209 |
|
210 |
+
#: qqworld-auto-save-images.php:360
|
211 |
msgid "Save Remote Images"
|
212 |
msgstr "保存远程图片"
|
213 |
|
214 |
+
#: qqworld-auto-save-images.php:371 qqworld-auto-save-images.php:414
|
215 |
#, fuzzy
|
216 |
msgid "Settings"
|
217 |
msgstr "光箱选项"
|
218 |
|
219 |
+
#: qqworld-auto-save-images.php:379
|
220 |
msgid "Auto Save Images"
|
221 |
msgstr "自动保存图片"
|
222 |
|
223 |
+
#: qqworld-auto-save-images.php:381 qqworld-auto-save-images.php:408
|
224 |
msgid "QQWorld Auto Save Images"
|
225 |
msgstr "QQWorld自动保存图片"
|
226 |
|
227 |
+
#: qqworld-auto-save-images.php:390
|
228 |
+
msgid "Installation"
|
229 |
+
msgstr "安装说明"
|
230 |
+
|
231 |
+
#: qqworld-auto-save-images.php:391
|
232 |
+
msgid ""
|
233 |
+
"<ol><li>Make sure the server configuration <strong>allow_url_fopen=1</"
|
234 |
+
"strong> in php.ini.</li><li>Warning: If your website domain has been "
|
235 |
+
"changed, you must modify all image link to new domain from database, or else "
|
236 |
+
"all images which not modified in post content will be save again.</li></ol>"
|
237 |
+
msgstr ""
|
238 |
+
"<ol><li>请确保php.ini的设置中 <strong>allow_url_fopen=1</strong></li><li>警"
|
239 |
+
"告:如果你的网站域名更改了,必须在数据库中将所有的图片链接更新到新域名,否则"
|
240 |
+
"插件会把未更改的图片再保存一次。</li></ol>"
|
241 |
+
|
242 |
+
#: qqworld-auto-save-images.php:395
|
243 |
+
msgid "Notice"
|
244 |
+
msgstr "注意"
|
245 |
+
|
246 |
+
#: qqworld-auto-save-images.php:396
|
247 |
+
msgid ""
|
248 |
+
"<ul><li>This plugin has a little problem that is all the image url must be "
|
249 |
+
"full url, it means must included \"http(s)://\", for example:<ul><li><img "
|
250 |
+
"src="http://img.whitehouse.gov/image/2014/08/09/gogogo.jpg" /></"
|
251 |
+
"li><li><img src="http://www.bubugao.me/image/travel/beijing.png?"
|
252 |
+
"date=20140218" /></li>\t\t\t<li><img src="http://r4.ykimg."
|
253 |
+
"com/05410408543927D66A0B4D03A98AED24" /></li><li><img src=""
|
254 |
+
"https://example.com/image?id=127457" /></li></ul></li><li>The "
|
255 |
+
"examples that not works:<ul><li><img src="/images/great.png" /"
|
256 |
+
"></li><li><img src="./photo-lab/2014-08-09.jpg" /></"
|
257 |
+
"li><li><img src="img/background/black.gif" /></li></ul></"
|
258 |
+
"li></ul>I'v tried to figure this out, but i couldn't get the host name to "
|
259 |
+
"make image src full, nor get remote image from dynamic link.<br />So if you "
|
260 |
+
"encounter these codes, plaese manually fix the images src to full url."
|
261 |
+
msgstr ""
|
262 |
+
"<ul>\t<li>该插件有个小问题,所有的远程图像的URL必须是完整的,就是说必须得包含"
|
263 |
+
"\"http(s)://\",比如:\t\t<ul>\t\t\t<li><img src="http://img."
|
264 |
+
"whitehouse.gov/image/2014/08/09/gogogo.jpg" /></li>\t\t\t<li><img "
|
265 |
+
"src="http://www.bubugao.me/image/travel/beijing.png?"
|
266 |
+
"date=20140218" /></li>\t\t\t<li><img src="http://r4.ykimg."
|
267 |
+
"com/05410408543927D66A0B4D03A98AED24" /></li>\t\t\t<li><img "
|
268 |
+
"src="https://example.com/image?id=127457" /></li>\t\t</ul>\t</"
|
269 |
+
"li>\t<li>不能保存的例子:\t\t<ul>\t\t\t<li><img src="/images/great."
|
270 |
+
"png" /></li>\t\t\t<li><img src="./photo-lab/2014-08-09."
|
271 |
+
"jpg" /></li>\t\t\t<li><img src="img/background/black."
|
272 |
+
"gif" /></li>\t\t</ul>\t</li></ul>"
|
273 |
+
|
274 |
+
#: qqworld-auto-save-images.php:400
|
275 |
+
#, fuzzy
|
276 |
+
msgid "About"
|
277 |
+
msgstr "关于主题"
|
278 |
+
|
279 |
+
#: qqworld-auto-save-images.php:401
|
280 |
+
msgid ""
|
281 |
+
"<p>Hi everyone, My name is Michael Wang from china.</p><p>I made this plugin "
|
282 |
+
"just for play in the first place, after 1 year, oneday someone sent an email "
|
283 |
+
"to me for help , I was surprise and glad to realized my plugin has a fan. "
|
284 |
+
"then more and more peoples asked me for helps, and my plugin was getting "
|
285 |
+
"more and more powerful. Now this's my plugin. I hope you will like it, "
|
286 |
+
"thanks.</p>"
|
287 |
+
msgstr ""
|
288 |
+
"<p>大家好,我是王晓骞,来自中国。</p><p>我最开始制作本插件只是为了玩,一年后"
|
289 |
+
"的某一天,有人以一封邮件向我求助,我才很高兴得意识到居然有人喜欢我的插件,然"
|
290 |
+
"后随着越来越多的人向我寻求帮助,我的插件也变得越来越强大。这就是我的插件,我"
|
291 |
+
"希望你们能喜欢它,谢谢。</p>"
|
292 |
+
|
293 |
+
#: qqworld-auto-save-images.php:409
|
294 |
msgid ""
|
295 |
"Automatically keep the all remote picture to the local, and automatically "
|
296 |
"set featured image."
|
297 |
msgstr ""
|
298 |
"自动保存远程图片到本地,自动设置特色图片,并且支持机器人采集软件从外部提交。"
|
299 |
|
300 |
+
#: qqworld-auto-save-images.php:415
|
301 |
msgid "Watermark"
|
302 |
msgstr "水印"
|
303 |
|
304 |
+
#: qqworld-auto-save-images.php:415
|
305 |
msgid "Trial"
|
306 |
msgstr "试用"
|
307 |
|
308 |
+
#: qqworld-auto-save-images.php:416
|
309 |
msgid "Scan Posts"
|
310 |
msgstr "扫描文章"
|
311 |
|
312 |
+
#: qqworld-auto-save-images.php:419
|
313 |
msgid "General Options"
|
314 |
msgstr "常规选项"
|
315 |
|
316 |
+
#: qqworld-auto-save-images.php:423 qqworld-auto-save-images.php:425
|
317 |
msgid "Mode"
|
318 |
msgstr "模式"
|
319 |
|
320 |
+
#: qqworld-auto-save-images.php:428 qqworld-auto-save-images.php:457
|
321 |
+
#: qqworld-auto-save-images.php:467 qqworld-auto-save-images.php:477
|
322 |
+
#: qqworld-auto-save-images.php:775
|
323 |
msgid "Automatic"
|
324 |
msgstr "自动"
|
325 |
|
326 |
+
#: qqworld-auto-save-images.php:429
|
327 |
msgid ""
|
328 |
"Automatically save all remote images to local media libary when you save or "
|
329 |
"publish post."
|
330 |
msgstr "在保存或发布文章时,自动将所有远程图像保存到本地媒体库。"
|
331 |
|
332 |
+
#: qqworld-auto-save-images.php:432 qqworld-auto-save-images.php:776
|
333 |
msgid "Manual"
|
334 |
msgstr "手动"
|
335 |
|
336 |
+
#: qqworld-auto-save-images.php:433
|
337 |
msgid ""
|
338 |
"Manually save all remote images to local media libary when you click the "
|
339 |
"button on the top of editor."
|
340 |
msgstr "当单击编辑器顶部的按钮时,手动将所有远程图像保存到本地媒体库。"
|
341 |
|
342 |
+
#: qqworld-auto-save-images.php:438 qqworld-auto-save-images.php:440
|
343 |
msgid "When"
|
344 |
msgstr "什么时候"
|
345 |
|
346 |
+
#: qqworld-auto-save-images.php:443
|
347 |
msgid "Save post (Publish, save draft or pedding review)."
|
348 |
msgstr "保存文章时(发布文章,保存草稿或提交审核)。"
|
349 |
|
350 |
+
#: qqworld-auto-save-images.php:447
|
351 |
msgid "Publish post only."
|
352 |
msgstr "仅发布文章时。"
|
353 |
|
354 |
+
#: qqworld-auto-save-images.php:453 qqworld-auto-save-images.php:455
|
355 |
msgid "Remote Publishing"
|
356 |
msgstr "远程发布"
|
357 |
|
358 |
+
#: qqworld-auto-save-images.php:453
|
359 |
msgid ""
|
360 |
"Save remote images via remote publishing from IFTTT or other way using "
|
361 |
"XMLRPC."
|
362 |
msgstr "保存通过IFTTT或其他使用XMLRPC方法远程发布的远程图片。"
|
363 |
|
364 |
+
#: qqworld-auto-save-images.php:463 qqworld-auto-save-images.php:465
|
365 |
msgid "Set Featured Image"
|
366 |
msgstr "设置特色图片"
|
367 |
|
368 |
+
#: qqworld-auto-save-images.php:463
|
369 |
msgid "Set first one of the remote images as featured image."
|
370 |
msgstr "设置远程图片中的第1个为特色图片。"
|
371 |
|
372 |
+
#: qqworld-auto-save-images.php:473 qqworld-auto-save-images.php:475
|
373 |
msgid "Change Image Filename"
|
374 |
msgstr "更改图片文件名"
|
375 |
|
376 |
+
#: qqworld-auto-save-images.php:473
|
377 |
msgid ""
|
378 |
"If you checked this, when the remote image filename have Chinese or other "
|
379 |
"East Asian characters. system will automatically change image filename. I "
|
382 |
"如果勾选了此项,当远程图片名包含中文或其他东亚字符的时候,将自动更改图片文件"
|
383 |
"名。建议开启。"
|
384 |
|
385 |
+
#: qqworld-auto-save-images.php:483 qqworld-auto-save-images.php:485
|
386 |
msgid "Exclude Domain/Keyword"
|
387 |
msgstr "排除域名/关键词"
|
388 |
|
389 |
+
#: qqworld-auto-save-images.php:483
|
390 |
msgid "Images will not be saved, if that url contains Exclude-Domain/Keyword."
|
391 |
msgstr "如果图片地址包含排除域名/关键词,则不会保存该图片。"
|
392 |
|
393 |
+
#: qqworld-auto-save-images.php:495
|
394 |
msgid "Add a Domain/Keyword"
|
395 |
msgstr "添加域名/关键词"
|
396 |
|
397 |
+
#: qqworld-auto-save-images.php:500
|
398 |
msgid "Format Options"
|
399 |
msgstr "格式化选项"
|
400 |
|
401 |
+
#: qqworld-auto-save-images.php:504 qqworld-auto-save-images.php:506
|
402 |
+
msgid "Keep Outside Links"
|
403 |
+
msgstr "保留外链"
|
404 |
+
|
405 |
+
#: qqworld-auto-save-images.php:504
|
406 |
+
msgid "Keep the outside links of remote images if exist."
|
407 |
+
msgstr "将会保留远程图片的链接,如果存在的话。"
|
408 |
+
|
409 |
+
#: qqworld-auto-save-images.php:513 qqworld-auto-save-images.php:515
|
410 |
msgid "Image Size"
|
411 |
msgstr "图像尺寸"
|
412 |
|
413 |
+
#: qqworld-auto-save-images.php:513
|
414 |
msgid "Replace images you want size to display."
|
415 |
msgstr "替换成你想要显示的尺寸的图像。"
|
416 |
|
417 |
+
#: qqworld-auto-save-images.php:520
|
418 |
#, fuzzy
|
419 |
msgid "Thumbnail"
|
420 |
msgstr ""
|
421 |
"一个数组,可以包含数个函数,每个函数返回可能的缩略图图片对象相对于时间对象的"
|
422 |
"jQuery路径。"
|
423 |
|
424 |
+
#: qqworld-auto-save-images.php:521
|
425 |
msgid "Medium"
|
426 |
msgstr ""
|
427 |
|
428 |
+
#: qqworld-auto-save-images.php:522
|
429 |
msgid "Large"
|
430 |
msgstr ""
|
431 |
|
432 |
+
#: qqworld-auto-save-images.php:523
|
433 |
#, fuzzy
|
434 |
msgid "Full Size"
|
435 |
msgstr "链接到全尺寸图像"
|
436 |
|
437 |
+
#: qqworld-auto-save-images.php:532 qqworld-auto-save-images.php:534
|
438 |
msgid "Link To"
|
439 |
msgstr "链接到"
|
440 |
|
441 |
+
#: qqworld-auto-save-images.php:532
|
442 |
+
msgid "If you checked Keep-Outside-Links, this option will not works."
|
443 |
+
msgstr "如果你勾选了保留外链,本项将不起作用。"
|
444 |
+
|
445 |
+
#: qqworld-auto-save-images.php:539
|
446 |
#, fuzzy
|
447 |
msgid "Media File"
|
448 |
msgstr "添加文件"
|
449 |
|
450 |
+
#: qqworld-auto-save-images.php:540
|
451 |
#, fuzzy
|
452 |
msgid "Attachment Page"
|
453 |
msgstr "(附件)"
|
454 |
|
455 |
+
#: qqworld-auto-save-images.php:541
|
456 |
msgid "None"
|
457 |
msgstr ""
|
458 |
|
459 |
+
#: qqworld-auto-save-images.php:557
|
460 |
msgid ""
|
461 |
"Just for preview, The complete feature will on the Pro version. Don't worry, "
|
462 |
"other features will be free forever."
|
463 |
msgstr "仅仅用于预览,专业版将提供完整的功能。别担心,其他功能将永久免费。"
|
464 |
|
465 |
+
#: qqworld-auto-save-images.php:561 qqworld-auto-save-images.php:563
|
466 |
msgid "Enabled Watermark"
|
467 |
msgstr "启用水印"
|
468 |
|
469 |
+
#: qqworld-auto-save-images.php:561
|
470 |
msgid "Use for both of remote images and the local upload."
|
471 |
msgstr "同时用于远程图片和本地上传。"
|
472 |
|
473 |
+
#: qqworld-auto-save-images.php:571 qqworld-auto-save-images.php:573
|
474 |
msgid "Filter"
|
475 |
msgstr "过滤"
|
476 |
|
477 |
+
#: qqworld-auto-save-images.php:571
|
478 |
msgid "Skip images that smaller than this size."
|
479 |
msgstr "跳过比这个尺寸更小的图像。"
|
480 |
|
481 |
+
#: qqworld-auto-save-images.php:575
|
482 |
msgid "Width:"
|
483 |
msgstr "宽度:"
|
484 |
|
485 |
+
#: qqworld-auto-save-images.php:575 qqworld-auto-save-images.php:578
|
486 |
msgid "(px)"
|
487 |
msgstr "(像素)"
|
488 |
|
489 |
+
#: qqworld-auto-save-images.php:578
|
490 |
msgid "Height:"
|
491 |
msgstr "高度:"
|
492 |
|
493 |
+
#: qqworld-auto-save-images.php:584
|
494 |
msgid "Align To"
|
495 |
msgstr "对齐方式"
|
496 |
|
497 |
+
#: qqworld-auto-save-images.php:606
|
498 |
msgid "Position"
|
499 |
msgstr "位置"
|
500 |
|
501 |
+
#: qqworld-auto-save-images.php:606
|
502 |
msgid "You can try to drag the watermark image."
|
503 |
msgstr "你可以试着拖动水印图片。"
|
504 |
|
505 |
+
#: qqworld-auto-save-images.php:623 qqworld-auto-save-images.php:625
|
506 |
+
#: qqworld-auto-save-images.php:704
|
507 |
msgid "Offset"
|
508 |
msgstr "偏移"
|
509 |
|
510 |
+
#: qqworld-auto-save-images.php:636 qqworld-auto-save-images.php:638
|
511 |
msgid "Opacity"
|
512 |
msgstr "不透明度"
|
513 |
|
514 |
+
#: qqworld-auto-save-images.php:646 qqworld-auto-save-images.php:648
|
515 |
msgid "Upload Watermark Image"
|
516 |
msgstr "上传水印图片"
|
517 |
|
518 |
+
#: qqworld-auto-save-images.php:650
|
519 |
msgid "Insert a Watermark Image"
|
520 |
msgstr "插入水印图片"
|
521 |
|
522 |
+
#: qqworld-auto-save-images.php:661
|
523 |
msgid "Default Watermark"
|
524 |
msgstr "默认水印"
|
525 |
|
526 |
+
#: qqworld-auto-save-images.php:665
|
527 |
msgid "Buy"
|
528 |
msgstr "购买"
|
529 |
|
530 |
+
#: qqworld-auto-save-images.php:666
|
531 |
msgid "Coming.. I don't know when, Who cares.."
|
532 |
msgstr "即将…我不知道什么时候,管它呢……"
|
533 |
|
534 |
+
#: qqworld-auto-save-images.php:680
|
535 |
msgid "Select post types"
|
536 |
msgstr "选择文章类型"
|
537 |
|
538 |
+
#: qqworld-auto-save-images.php:680
|
539 |
msgid ""
|
540 |
"If you have too many posts to be scan, sometimes in process looks like "
|
541 |
"stopping, but it may be fake. please be patient."
|
543 |
"如果有太多文章需要扫描,有时候在扫描过程中看起来像是停止了,但可能是假停止,"
|
544 |
"请耐心等待。"
|
545 |
|
546 |
+
#: qqworld-auto-save-images.php:694
|
547 |
#, fuzzy
|
548 |
msgid "Categories"
|
549 |
msgstr "%s分类"
|
550 |
|
551 |
+
#: qqworld-auto-save-images.php:694
|
552 |
msgid "Default empty to scan all categories."
|
553 |
msgstr "默认留空扫描所有分类。"
|
554 |
|
555 |
+
#: qqworld-auto-save-images.php:699
|
556 |
msgid "Scope of Post ID"
|
557 |
msgstr "文章ID范围"
|
558 |
|
559 |
+
#: qqworld-auto-save-images.php:699
|
560 |
msgid ""
|
561 |
"Default empty for scan all posts ID. If you want to scan posts ID from 50 to "
|
562 |
"100. please type '50' and '100' or '100' and '50', The order in which two "
|
567 |
"者'100'和'50',两个数字的顺序可以颠倒。如果你只输入了1个数字,则系统只会扫描"
|
568 |
"该ID。"
|
569 |
|
570 |
+
#: qqworld-auto-save-images.php:700
|
571 |
#, php-format
|
572 |
msgid "From %1$s to %2$s"
|
573 |
msgstr "从 %1$s 到 %2$s"
|
574 |
|
575 |
+
#: qqworld-auto-save-images.php:704
|
576 |
msgid ""
|
577 |
"Default scan all posts. If you want to scan 50-150 posts, please type '50' "
|
578 |
"in the textfield and select '100'."
|
580 |
"默认扫秒全部文章,如果想扫描50-150篇文章,请在文本框中输入“50”并在下拉菜单中"
|
581 |
"选择“100”。"
|
582 |
|
583 |
+
#: qqworld-auto-save-images.php:706
|
584 |
#, php-format
|
585 |
msgid "Start from %s to Scan"
|
586 |
msgstr "从 %s 开始扫描"
|
587 |
|
588 |
+
#: qqworld-auto-save-images.php:708
|
589 |
#, fuzzy
|
590 |
msgid "All"
|
591 |
msgstr "所有"
|
592 |
|
593 |
+
#: qqworld-auto-save-images.php:712
|
594 |
#, fuzzy
|
595 |
msgid "Posts"
|
596 |
msgstr "热门文章"
|
597 |
|
598 |
+
#: qqworld-auto-save-images.php:722
|
599 |
msgid "Any"
|
600 |
msgstr "任意"
|
601 |
|
602 |
+
#: qqworld-auto-save-images.php:732
|
603 |
msgid "Order By"
|
604 |
msgstr "排序依据"
|
605 |
|
606 |
+
#: qqworld-auto-save-images.php:738
|
607 |
#, fuzzy
|
608 |
msgid "Author"
|
609 |
+
msgstr "名称"
|
610 |
|
611 |
+
#: qqworld-auto-save-images.php:740
|
612 |
#, fuzzy
|
613 |
msgid "Date"
|
614 |
+
msgstr "日期"
|
615 |
|
616 |
+
#: qqworld-auto-save-images.php:741
|
617 |
msgid "Last Modified"
|
618 |
msgstr ""
|
619 |
|
620 |
+
#: qqworld-auto-save-images.php:742
|
621 |
msgid "Comment Count"
|
622 |
msgstr "评论数"
|
623 |
|
624 |
+
#: qqworld-auto-save-images.php:752
|
625 |
#, fuzzy
|
626 |
msgid "Order"
|
627 |
msgstr "顺序"
|
628 |
|
629 |
+
#: qqworld-auto-save-images.php:762
|
630 |
msgid "Speed"
|
631 |
msgstr "速度"
|
632 |
|
633 |
+
#: qqworld-auto-save-images.php:762
|
634 |
msgid "If the server is too much stress may be appropriately reduced speed."
|
635 |
msgstr "如果服务器压力过大,可以适当调低速度。"
|
636 |
|
637 |
+
#: qqworld-auto-save-images.php:775
|
638 |
msgid ""
|
639 |
"Scan posts and keep remote images in all posts to local media library. Maybe "
|
640 |
"take a long time."
|
641 |
msgstr "扫描所有的文章,将所有远程图片保存到本地,可能需要很长时间。"
|
642 |
|
643 |
+
#: qqworld-auto-save-images.php:776
|
644 |
msgid ""
|
645 |
"The list displayed will show you which posts including remote images, then "
|
646 |
"you can keep them to local manually via click \"Fetch\" button."
|
648 |
"显示的列表中将告诉你哪些文章包含远程图片,然后你可以通过点击“抓取”按钮手动保"
|
649 |
"存。"
|
650 |
|
651 |
+
#: qqworld-auto-save-images.php:869
|
652 |
msgid "Has Missing/Undownloadable images."
|
653 |
msgstr "有 不存在/不可下载 的远程图像。"
|
654 |
|
655 |
+
#: qqworld-auto-save-images.php:876
|
656 |
msgid "No remote images found."
|
657 |
msgstr "没有远程图像。"
|
658 |
|
659 |
+
#~ msgid ""
|
660 |
+
#~ "<p>Hi everyone, My name is Michael Wang, I hope you will like my plugin. "
|
661 |
+
#~ "thanks.</p>"
|
662 |
+
#~ msgstr "<p>大家好,我是王晓骞,希望你们能喜欢我的插件,谢谢。</p>"
|
663 |
+
|
664 |
#~ msgid "Upload a Watermark Image"
|
665 |
#~ msgstr "上传水印图片"
|
666 |
|
qqworld-auto-save-images.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: QQWorld Auto Save Images
|
4 |
Plugin URI: https://wordpress.org/plugins/qqworld-auto-save-images/
|
5 |
Description: Automatically keep the all remote picture to the local, and automatically set featured image.
|
6 |
-
Version: 1.7.
|
7 |
Author: Michael Wang
|
8 |
Author URI: http://www.qqworld.org
|
9 |
Text Domain: qqworld_auto_save_images
|
@@ -13,7 +13,7 @@ define('QQWORLD_AUTO_SAVE_IMAGES_URL', plugin_dir_url(__FILE__));
|
|
13 |
|
14 |
class QQWorld_auto_save_images {
|
15 |
var $mode;
|
16 |
-
var $
|
17 |
var $remote_publishing;
|
18 |
var $change_image_name;
|
19 |
var $has_remote_image;
|
@@ -28,13 +28,14 @@ class QQWorld_auto_save_images {
|
|
28 |
var $watermark_opacity;
|
29 |
function __construct() {
|
30 |
__('Michael Wang', 'qqworld_auto_save_images');
|
31 |
-
$this->mode = get_option('qqworld_auto_save_images_mode', '
|
32 |
-
$this->
|
33 |
$this->remote_publishing = get_option('qqworld_auto_save_images_remote_publishing', 'yes');
|
34 |
$this->featured_image = get_option('qqworld_auto_save_images_set_featured_image', 'yes');
|
35 |
$this->change_image_name = get_option('qqworld_auto_save_images_auto_change_name', 'yes');
|
36 |
$this->exclude_domain = get_option('qqworld-auto-save-images-exclude-domain');
|
37 |
$this->format = get_option('qqworld-auto-save-images-format', array('size'=>'full', 'link-to'=>'none'));
|
|
|
38 |
|
39 |
$this->watermark_enabled = get_option('qqworld-auto-save-images-watermark-enabled', 'no');
|
40 |
$this->filter_size = get_option('qqworld-auto-save-images-watermark-filter-size', array('width'=>300, 'height'=>300));
|
@@ -43,7 +44,7 @@ class QQWorld_auto_save_images {
|
|
43 |
$this->watermark_opacity = get_option('qqworld-auto-save-images-watermark-opacity', 100);
|
44 |
$this->watermark_image = get_option('qqworld-auto-save-images-watermark-image');
|
45 |
|
46 |
-
switch ($this->
|
47 |
case 'auto':
|
48 |
$this->add_actions();
|
49 |
break;
|
@@ -74,14 +75,14 @@ class QQWorld_auto_save_images {
|
|
74 |
|
75 |
add_filter( 'post_updated_messages', array($this, 'post_updated_messages') );
|
76 |
|
77 |
-
if(get_option('
|
78 |
}
|
79 |
|
80 |
public function error_correction() {
|
81 |
?>
|
82 |
<div class="error default-password-nag">
|
83 |
<p><strong><?php _e('Notice:'); ?></strong>
|
84 |
-
<?php printf(__("Ever since the QQWorld-Auto-Save-Image v1.7.
|
85 |
</div>
|
86 |
<?php
|
87 |
}
|
@@ -373,11 +374,32 @@ class QQWorld_auto_save_images {
|
|
373 |
}
|
374 |
|
375 |
function admin_menu() {
|
|
|
376 |
if ( is_plugin_active( 'qqworld-collector/qqworld-collector.php' ) ) {
|
377 |
-
add_submenu_page('qqworld-collector', __('Auto Save Images', 'qqworld_auto_save_images'), __('Auto Save Images', 'qqworld_auto_save_images'), 'manage_options',
|
378 |
} else {
|
379 |
-
add_submenu_page('options-general.php', __('QQWorld Auto Save Images', 'qqworld_auto_save_images'), __('QQWorld Auto Save Images', 'qqworld_auto_save_images'), 'manage_options',
|
380 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
381 |
}
|
382 |
|
383 |
function fn() {
|
@@ -402,26 +424,26 @@ class QQWorld_auto_save_images {
|
|
402 |
<td><fieldset>
|
403 |
<legend class="screen-reader-text"><span><?php _e('Mode', 'qqworld_auto_save_images'); ?></span></legend>
|
404 |
<label for="auto">
|
405 |
-
<input name="
|
406 |
<?php _e('Automatic', 'qqworld_auto_save_images'); ?>
|
407 |
</label> <span class="icon help" title="<?php _e('Automatically save all remote images to local media libary when you save or publish post.', 'qqworld_auto_save_images'); ?>"></span><br />
|
408 |
<label for="manual">
|
409 |
-
<input name="
|
410 |
<?php _e('Manual', 'qqworld_auto_save_images'); ?>
|
411 |
</label> <span class="icon help" title="<?php _e('Manually save all remote images to local media libary when you click the button on the top of editor.', 'qqworld_auto_save_images'); ?>"></span>
|
412 |
</fieldset></td>
|
413 |
</tr>
|
414 |
|
415 |
-
<tr id="second_level" valign="top"<?php if ($this->
|
416 |
<th scope="row"><label><?php _e('When', 'qqworld_auto_save_images'); ?></label></th>
|
417 |
<td><fieldset>
|
418 |
<legend class="screen-reader-text"><span><?php _e('When', 'qqworld_auto_save_images'); ?></span></legend>
|
419 |
<label for="save">
|
420 |
-
<input name="
|
421 |
<?php _e('Save post (Publish, save draft or pedding review).', 'qqworld_auto_save_images'); ?>
|
422 |
</label><br />
|
423 |
<label for="publish">
|
424 |
-
<input name="
|
425 |
<?php _e('Publish post only.', 'qqworld_auto_save_images'); ?>
|
426 |
</label>
|
427 |
</fieldset></td>
|
@@ -478,6 +500,15 @@ class QQWorld_auto_save_images {
|
|
478 |
<h2><?php _e('Format Options', 'qqworld_auto_save_images'); ?></h2>
|
479 |
<table class="form-table">
|
480 |
<tbody>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
481 |
<tr valign="top">
|
482 |
<th scope="row"><label><?php _e('Image Size', 'qqworld_auto_save_images'); ?></label> <span class="icon help" title="<?php _e("Replace images you want size to display.", 'qqworld_auto_save_images'); ?>"></span></th>
|
483 |
<td><fieldset>
|
@@ -498,7 +529,7 @@ class QQWorld_auto_save_images {
|
|
498 |
</fieldset></td>
|
499 |
</tr>
|
500 |
<tr valign="top">
|
501 |
-
<th scope="row"><label><?php _e('Link To', 'qqworld_auto_save_images'); ?></label></th>
|
502 |
<td><fieldset>
|
503 |
<legend class="screen-reader-text"><span><?php _e('Link To', 'qqworld_auto_save_images'); ?></span></legend>
|
504 |
<label>
|
@@ -751,8 +782,8 @@ class QQWorld_auto_save_images {
|
|
751 |
}
|
752 |
|
753 |
function register_settings() {
|
754 |
-
register_setting('qqworld_auto_save_images_settings', 'qqworld_auto_save_images_type');
|
755 |
register_setting('qqworld_auto_save_images_settings', 'qqworld_auto_save_images_mode');
|
|
|
756 |
register_setting('qqworld_auto_save_images_settings', 'qqworld_auto_save_images_remote_publishing');
|
757 |
register_setting('qqworld_auto_save_images_settings', 'qqworld_auto_save_images_set_featured_image');
|
758 |
register_setting('qqworld_auto_save_images_settings', 'qqworld_auto_save_images_auto_change_name');
|
@@ -800,12 +831,12 @@ class QQWorld_auto_save_images {
|
|
800 |
|
801 |
function add_actions() {
|
802 |
$post_type = $this->get_current_post_type();
|
803 |
-
if ($post_type) add_action($this->
|
804 |
}
|
805 |
|
806 |
function remove_actions() {
|
807 |
$post_type = $this->get_current_post_type();
|
808 |
-
if ($post_type) remove_action($this->
|
809 |
}
|
810 |
|
811 |
function utf8_urldecode($str) {
|
@@ -863,7 +894,7 @@ class QQWorld_auto_save_images {
|
|
863 |
|
864 |
add_filter( 'redirect_post_location', array($this, 'redirect_post_location'), 10, 2);
|
865 |
|
866 |
-
if ($this->
|
867 |
if ($this->remote_publishing) remove_action('xmlrpc_publish_post', array($this, 'fetch_images') );
|
868 |
|
869 |
$post = get_post($post_id);
|
@@ -871,7 +902,7 @@ class QQWorld_auto_save_images {
|
|
871 |
//Replace the image in the post
|
872 |
wp_update_post(array('ID' => $post_id, 'post_content' => $content));
|
873 |
|
874 |
-
if ($this->
|
875 |
if ($this->remote_publishing) add_action('xmlrpc_publish_post', array($this, 'fetch_images') );
|
876 |
}
|
877 |
|
@@ -929,7 +960,7 @@ class QQWorld_auto_save_images {
|
|
929 |
}
|
930 |
$pattern_image_url = $this->encode_pattern($image_url);
|
931 |
$pattern = '/<a[^<]+><img\s[^>]*'.$pattern_image_url.'.*?>?<[^>]+a>/i';
|
932 |
-
if ( preg_match($pattern, $content, $matches) ) {
|
933 |
$args = $this->set_img_metadata($matches[0], $attachment_id);
|
934 |
} else {
|
935 |
$pattern = '/<img\s[^>]*'.$pattern_image_url.'.*?>/i';
|
@@ -942,7 +973,8 @@ class QQWorld_auto_save_images {
|
|
942 |
}
|
943 |
$alt = isset($args['alt']) ? ' alt="'.$args['alt'].'"' : '';
|
944 |
$img = '<img class="size-'.$size.' wp-image-'.$attachment_id.'" src="'.$src.'" width="'.$width.'" height="'.$height.'"'.$alt.' />';
|
945 |
-
|
|
|
946 |
case 'none':
|
947 |
$replace = $img; break;
|
948 |
case 'file':
|
3 |
Plugin Name: QQWorld Auto Save Images
|
4 |
Plugin URI: https://wordpress.org/plugins/qqworld-auto-save-images/
|
5 |
Description: Automatically keep the all remote picture to the local, and automatically set featured image.
|
6 |
+
Version: 1.7.7
|
7 |
Author: Michael Wang
|
8 |
Author URI: http://www.qqworld.org
|
9 |
Text Domain: qqworld_auto_save_images
|
13 |
|
14 |
class QQWorld_auto_save_images {
|
15 |
var $mode;
|
16 |
+
var $when;
|
17 |
var $remote_publishing;
|
18 |
var $change_image_name;
|
19 |
var $has_remote_image;
|
28 |
var $watermark_opacity;
|
29 |
function __construct() {
|
30 |
__('Michael Wang', 'qqworld_auto_save_images');
|
31 |
+
$this->mode = get_option('qqworld_auto_save_images_mode', 'auto');
|
32 |
+
$this->when = get_option('qqworld_auto_save_images_when', 'publish');
|
33 |
$this->remote_publishing = get_option('qqworld_auto_save_images_remote_publishing', 'yes');
|
34 |
$this->featured_image = get_option('qqworld_auto_save_images_set_featured_image', 'yes');
|
35 |
$this->change_image_name = get_option('qqworld_auto_save_images_auto_change_name', 'yes');
|
36 |
$this->exclude_domain = get_option('qqworld-auto-save-images-exclude-domain');
|
37 |
$this->format = get_option('qqworld-auto-save-images-format', array('size'=>'full', 'link-to'=>'none'));
|
38 |
+
$this->keep_outside_links = isset($this->format['keep-outside-links']) ? $this->format['keep-outside-links'] : 'no';
|
39 |
|
40 |
$this->watermark_enabled = get_option('qqworld-auto-save-images-watermark-enabled', 'no');
|
41 |
$this->filter_size = get_option('qqworld-auto-save-images-watermark-filter-size', array('width'=>300, 'height'=>300));
|
44 |
$this->watermark_opacity = get_option('qqworld-auto-save-images-watermark-opacity', 100);
|
45 |
$this->watermark_image = get_option('qqworld-auto-save-images-watermark-image');
|
46 |
|
47 |
+
switch ($this->mode) {
|
48 |
case 'auto':
|
49 |
$this->add_actions();
|
50 |
break;
|
75 |
|
76 |
add_filter( 'post_updated_messages', array($this, 'post_updated_messages') );
|
77 |
|
78 |
+
if (get_option('qqworld_auto_save_images_mode') && ( get_option('qqworld_auto_save_images_type')=='publish' || get_option('qqworld_auto_save_images_mode')=='save' )) add_action( 'admin_notices', array($this, 'error_correction') );
|
79 |
}
|
80 |
|
81 |
public function error_correction() {
|
82 |
?>
|
83 |
<div class="error default-password-nag">
|
84 |
<p><strong><?php _e('Notice:'); ?></strong>
|
85 |
+
<?php printf(__("Ever since the QQWorld-Auto-Save-Image v1.7.7 released, the plugin core had a big modification, please reset the <a href=\"%s\">settings</a>.", 'qqworld_auto_save_images'), menu_page_url( 'qqworld-auto-save-images', 0 )); ?></p>
|
86 |
</div>
|
87 |
<?php
|
88 |
}
|
374 |
}
|
375 |
|
376 |
function admin_menu() {
|
377 |
+
$page_name = 'qqworld-auto-save-images';
|
378 |
if ( is_plugin_active( 'qqworld-collector/qqworld-collector.php' ) ) {
|
379 |
+
$settings_page = add_submenu_page('qqworld-collector', __('Auto Save Images', 'qqworld_auto_save_images'), __('Auto Save Images', 'qqworld_auto_save_images'), 'manage_options', $page_name, array($this, 'fn'));
|
380 |
} else {
|
381 |
+
$settings_page = add_submenu_page('options-general.php', __('QQWorld Auto Save Images', 'qqworld_auto_save_images'), __('QQWorld Auto Save Images', 'qqworld_auto_save_images'), 'manage_options', $page_name, array($this, 'fn'));
|
382 |
}
|
383 |
+
add_action( "load-{$settings_page}", array($this, 'help_tab') );
|
384 |
+
}
|
385 |
+
|
386 |
+
public function help_tab() {
|
387 |
+
$screen = get_current_screen();
|
388 |
+
$screen->add_help_tab( array(
|
389 |
+
'id' => 'qqworld-auto-save-images-installation',
|
390 |
+
'title' => __('Installation', 'qqworld_auto_save_images'),
|
391 |
+
'content' => __('<ol><li>Make sure the server configuration <strong>allow_url_fopen=1</strong> in php.ini.</li><li>Warning: If your website domain has been changed, you must modify all image link to new domain from database, or else all images which not modified in post content will be save again.</li></ol>', 'qqworld_auto_save_images')
|
392 |
+
) );
|
393 |
+
$screen->add_help_tab( array(
|
394 |
+
'id' => 'qqworld-auto-save-images-notice',
|
395 |
+
'title' => __('Notice', 'qqworld_auto_save_images'),
|
396 |
+
'content' => __("<ul><li>This plugin has a little problem that is all the image url must be full url, it means must included \"http(s)://\", for example:<ul><li><img src="http://img.whitehouse.gov/image/2014/08/09/gogogo.jpg" /></li><li><img src="http://www.bubugao.me/image/travel/beijing.png?date=20140218" /></li> <li><img src="http://r4.ykimg.com/05410408543927D66A0B4D03A98AED24" /></li><li><img src="https://example.com/image?id=127457" /></li></ul></li><li>The examples that not works:<ul><li><img src="/images/great.png" /></li><li><img src="./photo-lab/2014-08-09.jpg" /></li><li><img src="img/background/black.gif" /></li></ul></li></ul>I'v tried to figure this out, but i couldn't get the host name to make image src full, nor get remote image from dynamic link.<br />So if you encounter these codes, plaese manually fix the images src to full url.", 'qqworld_auto_save_images')
|
397 |
+
) );
|
398 |
+
$screen->add_help_tab( array(
|
399 |
+
'id' => 'qqworld-auto-save-images-about',
|
400 |
+
'title' => __('About'),
|
401 |
+
'content' => __("<p>Hi everyone, My name is Michael Wang from china.</p><p>I made this plugin just for play in the first place, after 1 year, oneday someone sent an email to me for help , I was surprise and glad to realized my plugin has a fan. then more and more peoples asked me for helps, and my plugin was getting more and more powerful. Now this's my plugin. I hope you will like it, thanks.</p>", 'qqworld_auto_save_images')
|
402 |
+
) );
|
403 |
}
|
404 |
|
405 |
function fn() {
|
424 |
<td><fieldset>
|
425 |
<legend class="screen-reader-text"><span><?php _e('Mode', 'qqworld_auto_save_images'); ?></span></legend>
|
426 |
<label for="auto">
|
427 |
+
<input name="qqworld_auto_save_images_mode" type="radio" id="auto" value="auto" <?php checked('auto', $this->mode); ?> />
|
428 |
<?php _e('Automatic', 'qqworld_auto_save_images'); ?>
|
429 |
</label> <span class="icon help" title="<?php _e('Automatically save all remote images to local media libary when you save or publish post.', 'qqworld_auto_save_images'); ?>"></span><br />
|
430 |
<label for="manual">
|
431 |
+
<input name="qqworld_auto_save_images_mode" type="radio" id="manual" value="manual" <?php checked('manual', $this->mode); ?> />
|
432 |
<?php _e('Manual', 'qqworld_auto_save_images'); ?>
|
433 |
</label> <span class="icon help" title="<?php _e('Manually save all remote images to local media libary when you click the button on the top of editor.', 'qqworld_auto_save_images'); ?>"></span>
|
434 |
</fieldset></td>
|
435 |
</tr>
|
436 |
|
437 |
+
<tr id="second_level" valign="top"<?php if ($this->mode != 'auto') echo ' style="display: none;"'; ?>>
|
438 |
<th scope="row"><label><?php _e('When', 'qqworld_auto_save_images'); ?></label></th>
|
439 |
<td><fieldset>
|
440 |
<legend class="screen-reader-text"><span><?php _e('When', 'qqworld_auto_save_images'); ?></span></legend>
|
441 |
<label for="save">
|
442 |
+
<input name="qqworld_auto_save_images_when" type="radio" id="save" value="save" <?php checked('save', $this->when); ?> />
|
443 |
<?php _e('Save post (Publish, save draft or pedding review).', 'qqworld_auto_save_images'); ?>
|
444 |
</label><br />
|
445 |
<label for="publish">
|
446 |
+
<input name="qqworld_auto_save_images_when" type="radio" id="publish" value="publish" <?php checked('publish', $this->when); ?> />
|
447 |
<?php _e('Publish post only.', 'qqworld_auto_save_images'); ?>
|
448 |
</label>
|
449 |
</fieldset></td>
|
500 |
<h2><?php _e('Format Options', 'qqworld_auto_save_images'); ?></h2>
|
501 |
<table class="form-table">
|
502 |
<tbody>
|
503 |
+
<tr valign="top">
|
504 |
+
<th scope="row"><label><?php _e('Keep Outside Links', 'qqworld_auto_save_images'); ?></label> <span class="icon help" title="<?php _e("Keep the outside links of remote images if exist.", 'qqworld_auto_save_images'); ?>"></span></th>
|
505 |
+
<td><fieldset>
|
506 |
+
<legend class="screen-reader-text"><span><?php _e('Keep Outside Links', 'qqworld_auto_save_images'); ?></span></legend>
|
507 |
+
<label for="qqworld_auto_save_images_format_keep_outside_links">
|
508 |
+
<input name="qqworld-auto-save-images-format[keep-outside-links]" type="checkbox" id="qqworld_auto_save_images_format_keep_outside_links" value="yes" <?php checked('yes', $this->keep_outside_links); ?> />
|
509 |
+
</label>
|
510 |
+
</fieldset></td>
|
511 |
+
</tr>
|
512 |
<tr valign="top">
|
513 |
<th scope="row"><label><?php _e('Image Size', 'qqworld_auto_save_images'); ?></label> <span class="icon help" title="<?php _e("Replace images you want size to display.", 'qqworld_auto_save_images'); ?>"></span></th>
|
514 |
<td><fieldset>
|
529 |
</fieldset></td>
|
530 |
</tr>
|
531 |
<tr valign="top">
|
532 |
+
<th scope="row"><label><?php _e('Link To', 'qqworld_auto_save_images'); ?></label> <span class="icon help" title="<?php _e("If you checked Keep-Outside-Links, this option will not works.", 'qqworld_auto_save_images'); ?>"></span></th>
|
533 |
<td><fieldset>
|
534 |
<legend class="screen-reader-text"><span><?php _e('Link To', 'qqworld_auto_save_images'); ?></span></legend>
|
535 |
<label>
|
782 |
}
|
783 |
|
784 |
function register_settings() {
|
|
|
785 |
register_setting('qqworld_auto_save_images_settings', 'qqworld_auto_save_images_mode');
|
786 |
+
register_setting('qqworld_auto_save_images_settings', 'qqworld_auto_save_images_when');
|
787 |
register_setting('qqworld_auto_save_images_settings', 'qqworld_auto_save_images_remote_publishing');
|
788 |
register_setting('qqworld_auto_save_images_settings', 'qqworld_auto_save_images_set_featured_image');
|
789 |
register_setting('qqworld_auto_save_images_settings', 'qqworld_auto_save_images_auto_change_name');
|
831 |
|
832 |
function add_actions() {
|
833 |
$post_type = $this->get_current_post_type();
|
834 |
+
if ($post_type) add_action($this->when.'_'.$post_type, array($this, 'fetch_images') );
|
835 |
}
|
836 |
|
837 |
function remove_actions() {
|
838 |
$post_type = $this->get_current_post_type();
|
839 |
+
if ($post_type) remove_action($this->when.'_'.$post_type, array($this, 'fetch_images') );
|
840 |
}
|
841 |
|
842 |
function utf8_urldecode($str) {
|
894 |
|
895 |
add_filter( 'redirect_post_location', array($this, 'redirect_post_location'), 10, 2);
|
896 |
|
897 |
+
if ($this->mode=='auto') $this->remove_actions();
|
898 |
if ($this->remote_publishing) remove_action('xmlrpc_publish_post', array($this, 'fetch_images') );
|
899 |
|
900 |
$post = get_post($post_id);
|
902 |
//Replace the image in the post
|
903 |
wp_update_post(array('ID' => $post_id, 'post_content' => $content));
|
904 |
|
905 |
+
if ($this->mode=='auto') $this->add_actions();
|
906 |
if ($this->remote_publishing) add_action('xmlrpc_publish_post', array($this, 'fetch_images') );
|
907 |
}
|
908 |
|
960 |
}
|
961 |
$pattern_image_url = $this->encode_pattern($image_url);
|
962 |
$pattern = '/<a[^<]+><img\s[^>]*'.$pattern_image_url.'.*?>?<[^>]+a>/i';
|
963 |
+
if ( $this->keep_outside_links == 'no' && preg_match($pattern, $content, $matches) ) {
|
964 |
$args = $this->set_img_metadata($matches[0], $attachment_id);
|
965 |
} else {
|
966 |
$pattern = '/<img\s[^>]*'.$pattern_image_url.'.*?>/i';
|
973 |
}
|
974 |
$alt = isset($args['alt']) ? ' alt="'.$args['alt'].'"' : '';
|
975 |
$img = '<img class="size-'.$size.' wp-image-'.$attachment_id.'" src="'.$src.'" width="'.$width.'" height="'.$height.'"'.$alt.' />';
|
976 |
+
$link_to = $this->keep_outside_links=='no' ? $this->format['link-to'] : 'none';
|
977 |
+
switch ($link_to) {
|
978 |
case 'none':
|
979 |
$replace = $img; break;
|
980 |
case 'file':
|