Version Description
Download this release
Release Info
Developer | qqworld |
Plugin | QQWorld Auto Save Images |
Version | 1.7.10 |
Comparing to | |
See all releases |
Code changes from version 1.7.9 to 1.7.10
- lang/qqworld_auto_save_images-zh_CN.mo +0 -0
- lang/qqworld_auto_save_images-zh_CN.po +160 -151
- qqworld-auto-save-images.php +81 -37
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-11-
|
6 |
-
"PO-Revision-Date: 2014-11-
|
7 |
"Last-Translator: Michael Wang <admin@qqworld.org>\n"
|
8 |
"Language-Team: QQWorld <admin@qqworld.org>\n"
|
9 |
"Language: zh_CN\n"
|
@@ -21,205 +21,205 @@ msgstr ""
|
|
21 |
"X-Poedit-Basepath: ..\n"
|
22 |
"X-Poedit-SearchPath-0: .\n"
|
23 |
|
24 |
-
#: qqworld-auto-save-images.php:
|
25 |
msgid "Michael Wang"
|
26 |
msgstr "王晓骞"
|
27 |
|
28 |
-
#: qqworld-auto-save-images.php:
|
29 |
msgid "No taxonomies found."
|
30 |
msgstr "没有相关分类方法。"
|
31 |
|
32 |
-
#: qqworld-auto-save-images.php:
|
33 |
-
#: qqworld-auto-save-images.php:
|
34 |
msgid "All remote images have been saved."
|
35 |
msgstr "已保存所有远程图像。"
|
36 |
|
37 |
-
#: qqworld-auto-save-images.php:
|
38 |
#, php-format
|
39 |
msgid " <a href=\"%s\">View</a>"
|
40 |
msgstr " <a href=\"%s\">查看</a>"
|
41 |
|
42 |
-
#: qqworld-auto-save-images.php:
|
43 |
msgid "Has missing images or image which could not download."
|
44 |
msgstr "内容包含 不存在/无法下载 的图像。"
|
45 |
|
46 |
-
#: qqworld-auto-save-images.php:
|
47 |
msgid "In Process..."
|
48 |
msgstr "正在保存……"
|
49 |
|
50 |
-
#: qqworld-auto-save-images.php:
|
51 |
msgid "Something error, please check."
|
52 |
msgstr "出错了,请检查。"
|
53 |
|
54 |
-
#: qqworld-auto-save-images.php:
|
55 |
msgid ""
|
56 |
"Are you sure?<br />Before you click the yes button, I recommend backup site "
|
57 |
"database."
|
58 |
msgstr "你确定吗?<br />在点击确定按钮之前,我建议你备份网站的数据库。"
|
59 |
|
60 |
-
#: qqworld-auto-save-images.php:
|
61 |
msgid "Please select post types."
|
62 |
msgstr "请选择文章类型。"
|
63 |
|
64 |
-
#: qqworld-auto-save-images.php:
|
65 |
msgid "May be a problem with some posts: "
|
66 |
msgstr "也许一些文章有问题:"
|
67 |
|
68 |
-
#: qqworld-auto-save-images.php:
|
69 |
#, php-format
|
70 |
msgid "No need enter \"%s\"."
|
71 |
msgstr "不需要输入“%s”。"
|
72 |
|
73 |
-
#: qqworld-auto-save-images.php:
|
74 |
#, php-format
|
75 |
msgid "%d post has been scanned."
|
76 |
msgstr "已扫描%d篇文章。"
|
77 |
|
78 |
-
#: qqworld-auto-save-images.php:
|
79 |
#, php-format
|
80 |
msgid "%d posts have been scanned."
|
81 |
msgstr "已扫描%d篇文章。"
|
82 |
|
83 |
-
#: qqworld-auto-save-images.php:
|
84 |
#, php-format
|
85 |
msgid "%d post included remote images processed."
|
86 |
msgstr "已处理%d篇包含远程图像的文章。"
|
87 |
|
88 |
-
#: qqworld-auto-save-images.php:
|
89 |
#, php-format
|
90 |
msgid "%d posts included remote images processed."
|
91 |
msgstr "已处理%d篇包含远程图像的文章。"
|
92 |
|
93 |
-
#: qqworld-auto-save-images.php:
|
94 |
#, php-format
|
95 |
msgid "%d post has missing images couldn't be processed."
|
96 |
msgstr "%d篇包含不存在的远程图像的文章无法处理。"
|
97 |
|
98 |
-
#: qqworld-auto-save-images.php:
|
99 |
#, php-format
|
100 |
msgid "%d posts have missing images couldn't be processed."
|
101 |
msgstr "%d篇包含不存在的远程图像的文章无法处理。"
|
102 |
|
103 |
-
#: qqworld-auto-save-images.php:
|
104 |
#, php-format
|
105 |
msgid "found %d post including remote images."
|
106 |
msgstr "找到%d篇包含远程图像的文章。"
|
107 |
|
108 |
-
#: qqworld-auto-save-images.php:
|
109 |
#, php-format
|
110 |
msgid "found %d posts including remote images."
|
111 |
msgstr "找到%d篇包含远程图像的文章。"
|
112 |
|
113 |
-
#: qqworld-auto-save-images.php:
|
114 |
#, php-format
|
115 |
msgid "And with %d post has missing images."
|
116 |
msgstr "其中有%d篇文章包含不存在的远程图像。"
|
117 |
|
118 |
-
#: qqworld-auto-save-images.php:
|
119 |
#, php-format
|
120 |
msgid "And with %d posts have missing images."
|
121 |
msgstr "其中有%d篇文章包含不存在的远程图像。"
|
122 |
|
123 |
-
#: qqworld-auto-save-images.php:
|
124 |
msgid "No posts processed."
|
125 |
msgstr "未处理任何文章。"
|
126 |
|
127 |
-
#: qqworld-auto-save-images.php:
|
128 |
msgid "No post has remote images found."
|
129 |
msgstr "没有文章包含远程图像。"
|
130 |
|
131 |
-
#: qqworld-auto-save-images.php:
|
132 |
msgid "No posts found."
|
133 |
msgstr "未找到任何文章。"
|
134 |
|
135 |
-
#: qqworld-auto-save-images.php:
|
136 |
msgid "All done."
|
137 |
msgstr "全部完成。"
|
138 |
|
139 |
-
#: qqworld-auto-save-images.php:
|
140 |
#, fuzzy
|
141 |
msgid "Yes"
|
142 |
msgstr "是"
|
143 |
|
144 |
-
#: qqworld-auto-save-images.php:
|
145 |
msgid "No"
|
146 |
msgstr ""
|
147 |
|
148 |
-
#: qqworld-auto-save-images.php:
|
149 |
msgid "Scanning..."
|
150 |
msgstr "扫描中……"
|
151 |
|
152 |
-
#: qqworld-auto-save-images.php:
|
153 |
msgid "Listing..."
|
154 |
msgstr "显示列表中……"
|
155 |
|
156 |
-
#: qqworld-auto-save-images.php:
|
157 |
#, fuzzy
|
158 |
msgid "ID"
|
159 |
msgstr "博客ID"
|
160 |
|
161 |
-
#: qqworld-auto-save-images.php:
|
162 |
msgid "Post Type"
|
163 |
msgstr "文章类型"
|
164 |
|
165 |
-
#: qqworld-auto-save-images.php:
|
166 |
#, fuzzy
|
167 |
msgid "Title"
|
168 |
msgstr "标题"
|
169 |
|
170 |
-
#: qqworld-auto-save-images.php:
|
171 |
#, fuzzy
|
172 |
msgid "Status"
|
173 |
msgstr "状态"
|
174 |
|
175 |
-
#: qqworld-auto-save-images.php:
|
176 |
msgid "Control"
|
177 |
msgstr "控制"
|
178 |
|
179 |
-
#: qqworld-auto-save-images.php:
|
180 |
#, fuzzy
|
181 |
msgid "Done"
|
182 |
msgstr "全部完成。"
|
183 |
|
184 |
-
#: qqworld-auto-save-images.php:
|
185 |
#, fuzzy
|
186 |
msgid "Delete"
|
187 |
msgstr "删除"
|
188 |
|
189 |
-
#: qqworld-auto-save-images.php:
|
190 |
msgid "Has missing images."
|
191 |
msgstr "有不存在的远程图像。"
|
192 |
|
193 |
-
#: qqworld-auto-save-images.php:
|
194 |
msgid "Normal"
|
195 |
msgstr "正常"
|
196 |
|
197 |
-
#: qqworld-auto-save-images.php:
|
198 |
msgid "Fetch"
|
199 |
msgstr "抓取"
|
200 |
|
201 |
-
#: qqworld-auto-save-images.php:
|
202 |
msgid "Save Remote Images"
|
203 |
msgstr "保存远程图片"
|
204 |
|
205 |
-
#: qqworld-auto-save-images.php:
|
206 |
#, fuzzy
|
207 |
msgid "Settings"
|
208 |
msgstr "光箱选项"
|
209 |
|
210 |
-
#: qqworld-auto-save-images.php:
|
211 |
msgid "Auto Save Images"
|
212 |
msgstr "自动保存图片"
|
213 |
|
214 |
-
#: qqworld-auto-save-images.php:
|
215 |
msgid "QQWorld Auto Save Images"
|
216 |
msgstr "QQWorld自动保存图片"
|
217 |
|
218 |
-
#: qqworld-auto-save-images.php:
|
219 |
msgid "Installation"
|
220 |
msgstr "安装说明"
|
221 |
|
222 |
-
#: qqworld-auto-save-images.php:
|
223 |
msgid ""
|
224 |
"<ol><li>Make sure the server configuration <strong>allow_url_fopen=1</"
|
225 |
"strong> in php.ini.</li><li>Warning: If your website domain has been "
|
@@ -230,11 +230,11 @@ msgstr ""
|
|
230 |
"告:如果你的网站域名更改了,必须在数据库中将所有的图片链接更新到新域名,否则"
|
231 |
"插件会把未更改的图片再保存一次。</li></ol>"
|
232 |
|
233 |
-
#: qqworld-auto-save-images.php:
|
234 |
msgid "Notice"
|
235 |
msgstr "注意"
|
236 |
|
237 |
-
#: qqworld-auto-save-images.php:
|
238 |
msgid ""
|
239 |
"<ul><li>This plugin has a little problem that is all the image url must be "
|
240 |
"full url, it means must included \"http(s)://\", for example:<ul><li><img "
|
@@ -263,12 +263,12 @@ msgstr ""
|
|
263 |
"让图片的URL完整。<br />所以,如果你碰到这样的代码,请手动将图片地址改成完整"
|
264 |
"的,或者使用采集工具自动补完图片的URL然后从外部提交给Wordpress。"
|
265 |
|
266 |
-
#: qqworld-auto-save-images.php:
|
267 |
#, fuzzy
|
268 |
msgid "About"
|
269 |
msgstr "关于主题"
|
270 |
|
271 |
-
#: qqworld-auto-save-images.php:
|
272 |
msgid ""
|
273 |
"<p>Hi everyone, My name is Michael Wang from china.</p><p>I made this plugin "
|
274 |
"just for play in the first place, after 1 year, oneday someone sent an email "
|
@@ -282,269 +282,278 @@ msgstr ""
|
|
282 |
"后随着越来越多的人向我寻求帮助,我的插件也变得越来越强大。这就是我的插件,我"
|
283 |
"希望你们能喜欢它,谢谢。</p>"
|
284 |
|
285 |
-
#: qqworld-auto-save-images.php:
|
286 |
msgid ""
|
287 |
"Automatically keep the all remote picture to the local, and automatically "
|
288 |
"set featured image."
|
289 |
msgstr ""
|
290 |
"自动保存远程图片到本地,自动设置特色图片,并且支持机器人采集软件从外部提交。"
|
291 |
|
292 |
-
#: qqworld-auto-save-images.php:
|
293 |
msgid "Watermark"
|
294 |
msgstr "水印"
|
295 |
|
296 |
-
#: qqworld-auto-save-images.php:
|
297 |
msgid "Trial"
|
298 |
msgstr "试用"
|
299 |
|
300 |
-
#: qqworld-auto-save-images.php:
|
301 |
msgid "Scan Posts"
|
302 |
msgstr "扫描文章"
|
303 |
|
304 |
-
#: qqworld-auto-save-images.php:
|
305 |
msgid "General Options"
|
306 |
msgstr "常规选项"
|
307 |
|
308 |
-
#: qqworld-auto-save-images.php:
|
309 |
msgid "Mode"
|
310 |
msgstr "模式"
|
311 |
|
312 |
-
#: qqworld-auto-save-images.php:
|
313 |
-
#: qqworld-auto-save-images.php:471 qqworld-auto-save-images.php:481
|
314 |
-
#: qqworld-auto-save-images.php:805
|
315 |
msgid "Automatic"
|
316 |
msgstr "自动"
|
317 |
|
318 |
-
#: qqworld-auto-save-images.php:
|
319 |
msgid ""
|
320 |
"Automatically save all remote images to local media libary when you save or "
|
321 |
"publish post."
|
322 |
msgstr "在保存或发布文章时,自动将所有远程图像保存到本地媒体库。"
|
323 |
|
324 |
-
#: qqworld-auto-save-images.php:
|
325 |
msgid "Manual"
|
326 |
msgstr "手动"
|
327 |
|
328 |
-
#: qqworld-auto-save-images.php:
|
329 |
msgid ""
|
330 |
"Manually save all remote images to local media libary when you click the "
|
331 |
"button on the top of editor."
|
332 |
msgstr "当单击编辑器顶部的按钮时,手动将所有远程图像保存到本地媒体库。"
|
333 |
|
334 |
-
#: qqworld-auto-save-images.php:
|
335 |
msgid "When"
|
336 |
msgstr "什么时候"
|
337 |
|
338 |
-
#: qqworld-auto-save-images.php:
|
339 |
msgid "Save post (Publish, save draft or pedding review)."
|
340 |
msgstr "保存文章时(发布文章,保存草稿或提交审核)。"
|
341 |
|
342 |
-
#: qqworld-auto-save-images.php:
|
343 |
msgid "Publish post only."
|
344 |
msgstr "仅发布文章时。"
|
345 |
|
346 |
-
#: qqworld-auto-save-images.php:
|
347 |
msgid "Remote Publishing"
|
348 |
msgstr "远程发布"
|
349 |
|
350 |
-
#: qqworld-auto-save-images.php:
|
351 |
msgid ""
|
352 |
"Save remote images via remote publishing from IFTTT or other way using "
|
353 |
-
"XMLRPC."
|
354 |
-
msgstr "保存通过IFTTT或其他使用XMLRPC
|
355 |
|
356 |
-
#: qqworld-auto-save-images.php:
|
357 |
msgid "Set Featured Image"
|
358 |
msgstr "设置特色图片"
|
359 |
|
360 |
-
#: qqworld-auto-save-images.php:
|
361 |
msgid "Set first one of the remote images as featured image."
|
362 |
msgstr "设置远程图片中的第1个为特色图片。"
|
363 |
|
364 |
-
#: qqworld-auto-save-images.php:
|
365 |
-
msgid "Change Image Filename"
|
366 |
-
msgstr "更改图片文件名"
|
367 |
-
|
368 |
-
#: qqworld-auto-save-images.php:477
|
369 |
-
msgid ""
|
370 |
-
"If you checked this, when the remote image filename have Chinese or other "
|
371 |
-
"East Asian characters. system will automatically change image filename. I "
|
372 |
-
"suggest enable it."
|
373 |
-
msgstr ""
|
374 |
-
"如果勾选了此项,当远程图片名包含中文或其他东亚字符的时候,将自动更改图片文件"
|
375 |
-
"名。建议开启。"
|
376 |
-
|
377 |
-
#: qqworld-auto-save-images.php:487
|
378 |
msgid "Filter Options"
|
379 |
msgstr "过滤选项"
|
380 |
|
381 |
-
#: qqworld-auto-save-images.php:
|
382 |
msgid "Minimum Picture Size"
|
383 |
msgstr "最小图像尺寸"
|
384 |
|
385 |
-
#: qqworld-auto-save-images.php:
|
386 |
msgid "Ignore smaller than this size picture."
|
387 |
msgstr "忽略比这个尺寸更小的图像。"
|
388 |
|
389 |
-
#: qqworld-auto-save-images.php:
|
|
|
390 |
msgid "Width:"
|
391 |
msgstr "宽度:"
|
392 |
|
393 |
-
#: qqworld-auto-save-images.php:
|
394 |
-
#: qqworld-auto-save-images.php:
|
|
|
395 |
msgid "(px)"
|
396 |
msgstr "(像素)"
|
397 |
|
398 |
-
#: qqworld-auto-save-images.php:
|
|
|
399 |
msgid "Height:"
|
400 |
msgstr "高度:"
|
401 |
|
402 |
-
#: qqworld-auto-save-images.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
403 |
msgid "Exclude Domain/Keyword"
|
404 |
msgstr "排除域名/关键词"
|
405 |
|
406 |
-
#: qqworld-auto-save-images.php:
|
407 |
msgid "Images will not be saved, if that url contains Exclude-Domain/Keyword."
|
408 |
msgstr "如果图片地址包含排除域名/关键词,则不会保存该图片。"
|
409 |
|
410 |
-
#: qqworld-auto-save-images.php:
|
411 |
msgid "Add a Domain/Keyword"
|
412 |
msgstr "添加域名/关键词"
|
413 |
|
414 |
-
#: qqworld-auto-save-images.php:
|
415 |
msgid "Format Options"
|
416 |
msgstr "格式化选项"
|
417 |
|
418 |
-
#: qqworld-auto-save-images.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
419 |
msgid "Keep Outside Links"
|
420 |
msgstr "保留外链"
|
421 |
|
422 |
-
#: qqworld-auto-save-images.php:
|
423 |
msgid "Keep the outside links of remote images if exist."
|
424 |
msgstr "将会保留远程图片的链接,如果存在的话。"
|
425 |
|
426 |
-
#: qqworld-auto-save-images.php:
|
427 |
msgid "Image Size"
|
428 |
msgstr "图像尺寸"
|
429 |
|
430 |
-
#: qqworld-auto-save-images.php:
|
431 |
msgid "Replace images you want size to display."
|
432 |
msgstr "替换成你想要显示的尺寸的图像。"
|
433 |
|
434 |
-
#: qqworld-auto-save-images.php:
|
435 |
#, fuzzy
|
436 |
msgid "Thumbnail"
|
437 |
msgstr ""
|
438 |
"一个数组,可以包含数个函数,每个函数返回可能的缩略图图片对象相对于时间对象的"
|
439 |
"jQuery路径。"
|
440 |
|
441 |
-
#: qqworld-auto-save-images.php:
|
442 |
msgid "Medium"
|
443 |
msgstr ""
|
444 |
|
445 |
-
#: qqworld-auto-save-images.php:
|
446 |
msgid "Large"
|
447 |
msgstr ""
|
448 |
|
449 |
-
#: qqworld-auto-save-images.php:
|
450 |
#, fuzzy
|
451 |
msgid "Full Size"
|
452 |
msgstr "链接到全尺寸图像"
|
453 |
|
454 |
-
#: qqworld-auto-save-images.php:
|
455 |
msgid "Link To"
|
456 |
msgstr "链接到"
|
457 |
|
458 |
-
#: qqworld-auto-save-images.php:
|
459 |
msgid "If you checked Keep-Outside-Links, this option will not works."
|
460 |
msgstr "如果你勾选了保留外链,本项将不起作用。"
|
461 |
|
462 |
-
#: qqworld-auto-save-images.php:
|
463 |
#, fuzzy
|
464 |
msgid "Media File"
|
465 |
msgstr "添加文件"
|
466 |
|
467 |
-
#: qqworld-auto-save-images.php:
|
468 |
#, fuzzy
|
469 |
msgid "Attachment Page"
|
470 |
msgstr "(附件)"
|
471 |
|
472 |
-
#: qqworld-auto-save-images.php:
|
473 |
msgid "None"
|
474 |
msgstr ""
|
475 |
|
476 |
-
#: qqworld-auto-save-images.php:
|
477 |
msgid ""
|
478 |
"Just for preview, The complete feature will on the Pro version. Don't worry, "
|
479 |
"other features will be free forever."
|
480 |
msgstr "仅仅用于预览,专业版将提供完整的功能。别担心,其他功能将永久免费。"
|
481 |
|
482 |
-
#: qqworld-auto-save-images.php:
|
483 |
msgid "Enabled Watermark"
|
484 |
msgstr "启用水印"
|
485 |
|
486 |
-
#: qqworld-auto-save-images.php:
|
487 |
msgid "Use for both of remote images and the local upload."
|
488 |
msgstr "同时用于远程图片和本地上传。"
|
489 |
|
490 |
-
#: qqworld-auto-save-images.php:
|
491 |
msgid "Ignore animated GIF"
|
492 |
msgstr "忽略GIF动画"
|
493 |
|
494 |
-
#: qqworld-auto-save-images.php:
|
495 |
msgid "Filter"
|
496 |
msgstr "过滤"
|
497 |
|
498 |
-
#: qqworld-auto-save-images.php:
|
499 |
msgid "Skip images that smaller than this size."
|
500 |
msgstr "跳过比这个尺寸更小的图像。"
|
501 |
|
502 |
-
#: qqworld-auto-save-images.php:
|
503 |
msgid "Align To"
|
504 |
msgstr "对齐方式"
|
505 |
|
506 |
-
#: qqworld-auto-save-images.php:
|
507 |
msgid "Position"
|
508 |
msgstr "位置"
|
509 |
|
510 |
-
#: qqworld-auto-save-images.php:
|
511 |
msgid "You can try to drag the watermark image."
|
512 |
msgstr "你可以试着拖动水印图片。"
|
513 |
|
514 |
-
#: qqworld-auto-save-images.php:
|
515 |
-
#: qqworld-auto-save-images.php:
|
516 |
msgid "Offset"
|
517 |
msgstr "偏移"
|
518 |
|
519 |
-
#: qqworld-auto-save-images.php:
|
520 |
msgid "Opacity"
|
521 |
msgstr "不透明度"
|
522 |
|
523 |
-
#: qqworld-auto-save-images.php:
|
524 |
msgid "Upload Watermark Image"
|
525 |
msgstr "上传水印图片"
|
526 |
|
527 |
-
#: qqworld-auto-save-images.php:
|
528 |
msgid "Insert a Watermark Image"
|
529 |
msgstr "插入水印图片"
|
530 |
|
531 |
-
#: qqworld-auto-save-images.php:
|
532 |
msgid "Default Watermark"
|
533 |
msgstr "默认水印"
|
534 |
|
535 |
-
#: qqworld-auto-save-images.php:
|
536 |
msgid "Buy"
|
537 |
msgstr "购买"
|
538 |
|
539 |
-
#: qqworld-auto-save-images.php:
|
540 |
msgid "Coming.. I don't know when, Who cares.."
|
541 |
msgstr "即将…我不知道什么时候,管它呢……"
|
542 |
|
543 |
-
#: qqworld-auto-save-images.php:
|
544 |
msgid "Select post types"
|
545 |
msgstr "选择文章类型"
|
546 |
|
547 |
-
#: qqworld-auto-save-images.php:
|
548 |
msgid ""
|
549 |
"If you have too many posts to be scan, sometimes in process looks like "
|
550 |
"stopping, but it may be fake. please be patient."
|
@@ -552,20 +561,20 @@ msgstr ""
|
|
552 |
"如果有太多文章需要扫描,有时候在扫描过程中看起来像是停止了,但可能是假停止,"
|
553 |
"请耐心等待。"
|
554 |
|
555 |
-
#: qqworld-auto-save-images.php:
|
556 |
#, fuzzy
|
557 |
msgid "Categories"
|
558 |
msgstr "%s分类"
|
559 |
|
560 |
-
#: qqworld-auto-save-images.php:
|
561 |
msgid "Default empty to scan all categories."
|
562 |
msgstr "默认留空扫描所有分类。"
|
563 |
|
564 |
-
#: qqworld-auto-save-images.php:
|
565 |
msgid "Scope of Post ID"
|
566 |
msgstr "文章ID范围"
|
567 |
|
568 |
-
#: qqworld-auto-save-images.php:
|
569 |
msgid ""
|
570 |
"Default empty for scan all posts ID. If you want to scan posts ID from 50 to "
|
571 |
"100. please type '50' and '100' or '100' and '50', The order in which two "
|
@@ -576,12 +585,12 @@ msgstr ""
|
|
576 |
"者'100'和'50',两个数字的顺序可以颠倒。如果你只输入了1个数字,则系统只会扫描"
|
577 |
"该ID。"
|
578 |
|
579 |
-
#: qqworld-auto-save-images.php:
|
580 |
#, php-format
|
581 |
msgid "From %1$s to %2$s"
|
582 |
msgstr "从 %1$s 到 %2$s"
|
583 |
|
584 |
-
#: qqworld-auto-save-images.php:
|
585 |
msgid ""
|
586 |
"Default scan all posts. If you want to scan 50-150 posts, please type '50' "
|
587 |
"in the textfield and select '100'."
|
@@ -589,68 +598,68 @@ msgstr ""
|
|
589 |
"默认扫秒全部文章,如果想扫描50-150篇文章,请在文本框中输入“50”并在下拉菜单中"
|
590 |
"选择“100”。"
|
591 |
|
592 |
-
#: qqworld-auto-save-images.php:
|
593 |
#, php-format
|
594 |
msgid "Start from %s to Scan"
|
595 |
msgstr "从 %s 开始扫描"
|
596 |
|
597 |
-
#: qqworld-auto-save-images.php:
|
598 |
#, fuzzy
|
599 |
msgid "All"
|
600 |
msgstr "所有"
|
601 |
|
602 |
-
#: qqworld-auto-save-images.php:
|
603 |
#, fuzzy
|
604 |
msgid "Posts"
|
605 |
msgstr "热门文章"
|
606 |
|
607 |
-
#: qqworld-auto-save-images.php:
|
608 |
msgid "Any"
|
609 |
msgstr "任意"
|
610 |
|
611 |
-
#: qqworld-auto-save-images.php:
|
612 |
msgid "Order By"
|
613 |
msgstr "排序依据"
|
614 |
|
615 |
-
#: qqworld-auto-save-images.php:
|
616 |
#, fuzzy
|
617 |
msgid "Author"
|
618 |
msgstr "名称"
|
619 |
|
620 |
-
#: qqworld-auto-save-images.php:
|
621 |
#, fuzzy
|
622 |
msgid "Date"
|
623 |
msgstr "日期"
|
624 |
|
625 |
-
#: qqworld-auto-save-images.php:
|
626 |
#, fuzzy
|
627 |
msgid "Last Modified"
|
628 |
msgstr "最后回复"
|
629 |
|
630 |
-
#: qqworld-auto-save-images.php:
|
631 |
msgid "Comment Count"
|
632 |
msgstr "评论数"
|
633 |
|
634 |
-
#: qqworld-auto-save-images.php:
|
635 |
#, fuzzy
|
636 |
msgid "Order"
|
637 |
msgstr "顺序"
|
638 |
|
639 |
-
#: qqworld-auto-save-images.php:
|
640 |
msgid "Speed"
|
641 |
msgstr "速度"
|
642 |
|
643 |
-
#: qqworld-auto-save-images.php:
|
644 |
msgid "If the server is too much stress may be appropriately reduced speed."
|
645 |
msgstr "如果服务器压力过大,可以适当调低速度。"
|
646 |
|
647 |
-
#: qqworld-auto-save-images.php:
|
648 |
msgid ""
|
649 |
"Scan posts and keep remote images in all posts to local media library. Maybe "
|
650 |
"take a long time."
|
651 |
msgstr "扫描所有的文章,将所有远程图片保存到本地,可能需要很长时间。"
|
652 |
|
653 |
-
#: qqworld-auto-save-images.php:
|
654 |
msgid ""
|
655 |
"The list displayed will show you which posts including remote images, then "
|
656 |
"you can keep them to local manually via click \"Fetch\" button."
|
@@ -658,11 +667,11 @@ msgstr ""
|
|
658 |
"显示的列表中将告诉你哪些文章包含远程图片,然后你可以通过点击“抓取”按钮手动保"
|
659 |
"存。"
|
660 |
|
661 |
-
#: qqworld-auto-save-images.php:
|
662 |
msgid "Has Missing/Undownloadable images."
|
663 |
msgstr "有 不存在/不可下载 的远程图像。"
|
664 |
|
665 |
-
#: qqworld-auto-save-images.php:
|
666 |
msgid "No remote images found."
|
667 |
msgstr "没有远程图像。"
|
668 |
|
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-11-20 22:22+0800\n"
|
6 |
+
"PO-Revision-Date: 2014-11-20 22:23+0800\n"
|
7 |
"Last-Translator: Michael Wang <admin@qqworld.org>\n"
|
8 |
"Language-Team: QQWorld <admin@qqworld.org>\n"
|
9 |
"Language: zh_CN\n"
|
21 |
"X-Poedit-Basepath: ..\n"
|
22 |
"X-Poedit-SearchPath-0: .\n"
|
23 |
|
24 |
+
#: qqworld-auto-save-images.php:33
|
25 |
msgid "Michael Wang"
|
26 |
msgstr "王晓骞"
|
27 |
|
28 |
+
#: qqworld-auto-save-images.php:96
|
29 |
msgid "No taxonomies found."
|
30 |
msgstr "没有相关分类方法。"
|
31 |
|
32 |
+
#: qqworld-auto-save-images.php:104 qqworld-auto-save-images.php:278
|
33 |
+
#: qqworld-auto-save-images.php:907
|
34 |
msgid "All remote images have been saved."
|
35 |
msgstr "已保存所有远程图像。"
|
36 |
|
37 |
+
#: qqworld-auto-save-images.php:104 qqworld-auto-save-images.php:105
|
38 |
#, php-format
|
39 |
msgid " <a href=\"%s\">View</a>"
|
40 |
msgstr " <a href=\"%s\">查看</a>"
|
41 |
|
42 |
+
#: qqworld-auto-save-images.php:105
|
43 |
msgid "Has missing images or image which could not download."
|
44 |
msgstr "内容包含 不存在/无法下载 的图像。"
|
45 |
|
46 |
+
#: qqworld-auto-save-images.php:126
|
47 |
msgid "In Process..."
|
48 |
msgstr "正在保存……"
|
49 |
|
50 |
+
#: qqworld-auto-save-images.php:127
|
51 |
msgid "Something error, please check."
|
52 |
msgstr "出错了,请检查。"
|
53 |
|
54 |
+
#: qqworld-auto-save-images.php:149
|
55 |
msgid ""
|
56 |
"Are you sure?<br />Before you click the yes button, I recommend backup site "
|
57 |
"database."
|
58 |
msgstr "你确定吗?<br />在点击确定按钮之前,我建议你备份网站的数据库。"
|
59 |
|
60 |
+
#: qqworld-auto-save-images.php:150 qqworld-auto-save-images.php:727
|
61 |
msgid "Please select post types."
|
62 |
msgstr "请选择文章类型。"
|
63 |
|
64 |
+
#: qqworld-auto-save-images.php:151
|
65 |
msgid "May be a problem with some posts: "
|
66 |
msgstr "也许一些文章有问题:"
|
67 |
|
68 |
+
#: qqworld-auto-save-images.php:152
|
69 |
#, php-format
|
70 |
msgid "No need enter \"%s\"."
|
71 |
msgstr "不需要输入“%s”。"
|
72 |
|
73 |
+
#: qqworld-auto-save-images.php:153
|
74 |
#, php-format
|
75 |
msgid "%d post has been scanned."
|
76 |
msgstr "已扫描%d篇文章。"
|
77 |
|
78 |
+
#: qqworld-auto-save-images.php:154
|
79 |
#, php-format
|
80 |
msgid "%d posts have been scanned."
|
81 |
msgstr "已扫描%d篇文章。"
|
82 |
|
83 |
+
#: qqworld-auto-save-images.php:155
|
84 |
#, php-format
|
85 |
msgid "%d post included remote images processed."
|
86 |
msgstr "已处理%d篇包含远程图像的文章。"
|
87 |
|
88 |
+
#: qqworld-auto-save-images.php:156
|
89 |
#, php-format
|
90 |
msgid "%d posts included remote images processed."
|
91 |
msgstr "已处理%d篇包含远程图像的文章。"
|
92 |
|
93 |
+
#: qqworld-auto-save-images.php:157
|
94 |
#, php-format
|
95 |
msgid "%d post has missing images couldn't be processed."
|
96 |
msgstr "%d篇包含不存在的远程图像的文章无法处理。"
|
97 |
|
98 |
+
#: qqworld-auto-save-images.php:158
|
99 |
#, php-format
|
100 |
msgid "%d posts have missing images couldn't be processed."
|
101 |
msgstr "%d篇包含不存在的远程图像的文章无法处理。"
|
102 |
|
103 |
+
#: qqworld-auto-save-images.php:159
|
104 |
#, php-format
|
105 |
msgid "found %d post including remote images."
|
106 |
msgstr "找到%d篇包含远程图像的文章。"
|
107 |
|
108 |
+
#: qqworld-auto-save-images.php:160
|
109 |
#, php-format
|
110 |
msgid "found %d posts including remote images."
|
111 |
msgstr "找到%d篇包含远程图像的文章。"
|
112 |
|
113 |
+
#: qqworld-auto-save-images.php:161
|
114 |
#, php-format
|
115 |
msgid "And with %d post has missing images."
|
116 |
msgstr "其中有%d篇文章包含不存在的远程图像。"
|
117 |
|
118 |
+
#: qqworld-auto-save-images.php:162
|
119 |
#, php-format
|
120 |
msgid "And with %d posts have missing images."
|
121 |
msgstr "其中有%d篇文章包含不存在的远程图像。"
|
122 |
|
123 |
+
#: qqworld-auto-save-images.php:163
|
124 |
msgid "No posts processed."
|
125 |
msgstr "未处理任何文章。"
|
126 |
|
127 |
+
#: qqworld-auto-save-images.php:164
|
128 |
msgid "No post has remote images found."
|
129 |
msgstr "没有文章包含远程图像。"
|
130 |
|
131 |
+
#: qqworld-auto-save-images.php:165
|
132 |
msgid "No posts found."
|
133 |
msgstr "未找到任何文章。"
|
134 |
|
135 |
+
#: qqworld-auto-save-images.php:166
|
136 |
msgid "All done."
|
137 |
msgstr "全部完成。"
|
138 |
|
139 |
+
#: qqworld-auto-save-images.php:167
|
140 |
#, fuzzy
|
141 |
msgid "Yes"
|
142 |
msgstr "是"
|
143 |
|
144 |
+
#: qqworld-auto-save-images.php:168
|
145 |
msgid "No"
|
146 |
msgstr ""
|
147 |
|
148 |
+
#: qqworld-auto-save-images.php:169
|
149 |
msgid "Scanning..."
|
150 |
msgstr "扫描中……"
|
151 |
|
152 |
+
#: qqworld-auto-save-images.php:170
|
153 |
msgid "Listing..."
|
154 |
msgstr "显示列表中……"
|
155 |
|
156 |
+
#: qqworld-auto-save-images.php:171 qqworld-auto-save-images.php:769
|
157 |
#, fuzzy
|
158 |
msgid "ID"
|
159 |
msgstr "博客ID"
|
160 |
|
161 |
+
#: qqworld-auto-save-images.php:172
|
162 |
msgid "Post Type"
|
163 |
msgstr "文章类型"
|
164 |
|
165 |
+
#: qqworld-auto-save-images.php:173 qqworld-auto-save-images.php:771
|
166 |
#, fuzzy
|
167 |
msgid "Title"
|
168 |
msgstr "标题"
|
169 |
|
170 |
+
#: qqworld-auto-save-images.php:174 qqworld-auto-save-images.php:749
|
171 |
#, fuzzy
|
172 |
msgid "Status"
|
173 |
msgstr "状态"
|
174 |
|
175 |
+
#: qqworld-auto-save-images.php:175
|
176 |
msgid "Control"
|
177 |
msgstr "控制"
|
178 |
|
179 |
+
#: qqworld-auto-save-images.php:176
|
180 |
#, fuzzy
|
181 |
msgid "Done"
|
182 |
msgstr "全部完成。"
|
183 |
|
184 |
+
#: qqworld-auto-save-images.php:177 qqworld-auto-save-images.php:504
|
185 |
#, fuzzy
|
186 |
msgid "Delete"
|
187 |
msgstr "删除"
|
188 |
|
189 |
+
#: qqworld-auto-save-images.php:278 qqworld-auto-save-images.php:312
|
190 |
msgid "Has missing images."
|
191 |
msgstr "有不存在的远程图像。"
|
192 |
|
193 |
+
#: qqworld-auto-save-images.php:312
|
194 |
msgid "Normal"
|
195 |
msgstr "正常"
|
196 |
|
197 |
+
#: qqworld-auto-save-images.php:313
|
198 |
msgid "Fetch"
|
199 |
msgstr "抓取"
|
200 |
|
201 |
+
#: qqworld-auto-save-images.php:355
|
202 |
msgid "Save Remote Images"
|
203 |
msgstr "保存远程图片"
|
204 |
|
205 |
+
#: qqworld-auto-save-images.php:366 qqworld-auto-save-images.php:409
|
206 |
#, fuzzy
|
207 |
msgid "Settings"
|
208 |
msgstr "光箱选项"
|
209 |
|
210 |
+
#: qqworld-auto-save-images.php:374
|
211 |
msgid "Auto Save Images"
|
212 |
msgstr "自动保存图片"
|
213 |
|
214 |
+
#: qqworld-auto-save-images.php:376 qqworld-auto-save-images.php:403
|
215 |
msgid "QQWorld Auto Save Images"
|
216 |
msgstr "QQWorld自动保存图片"
|
217 |
|
218 |
+
#: qqworld-auto-save-images.php:385
|
219 |
msgid "Installation"
|
220 |
msgstr "安装说明"
|
221 |
|
222 |
+
#: qqworld-auto-save-images.php:386
|
223 |
msgid ""
|
224 |
"<ol><li>Make sure the server configuration <strong>allow_url_fopen=1</"
|
225 |
"strong> in php.ini.</li><li>Warning: If your website domain has been "
|
230 |
"告:如果你的网站域名更改了,必须在数据库中将所有的图片链接更新到新域名,否则"
|
231 |
"插件会把未更改的图片再保存一次。</li></ol>"
|
232 |
|
233 |
+
#: qqworld-auto-save-images.php:390
|
234 |
msgid "Notice"
|
235 |
msgstr "注意"
|
236 |
|
237 |
+
#: qqworld-auto-save-images.php:391
|
238 |
msgid ""
|
239 |
"<ul><li>This plugin has a little problem that is all the image url must be "
|
240 |
"full url, it means must included \"http(s)://\", for example:<ul><li><img "
|
263 |
"让图片的URL完整。<br />所以,如果你碰到这样的代码,请手动将图片地址改成完整"
|
264 |
"的,或者使用采集工具自动补完图片的URL然后从外部提交给Wordpress。"
|
265 |
|
266 |
+
#: qqworld-auto-save-images.php:395
|
267 |
#, fuzzy
|
268 |
msgid "About"
|
269 |
msgstr "关于主题"
|
270 |
|
271 |
+
#: qqworld-auto-save-images.php:396
|
272 |
msgid ""
|
273 |
"<p>Hi everyone, My name is Michael Wang from china.</p><p>I made this plugin "
|
274 |
"just for play in the first place, after 1 year, oneday someone sent an email "
|
282 |
"后随着越来越多的人向我寻求帮助,我的插件也变得越来越强大。这就是我的插件,我"
|
283 |
"希望你们能喜欢它,谢谢。</p>"
|
284 |
|
285 |
+
#: qqworld-auto-save-images.php:404
|
286 |
msgid ""
|
287 |
"Automatically keep the all remote picture to the local, and automatically "
|
288 |
"set featured image."
|
289 |
msgstr ""
|
290 |
"自动保存远程图片到本地,自动设置特色图片,并且支持机器人采集软件从外部提交。"
|
291 |
|
292 |
+
#: qqworld-auto-save-images.php:410
|
293 |
msgid "Watermark"
|
294 |
msgstr "水印"
|
295 |
|
296 |
+
#: qqworld-auto-save-images.php:410
|
297 |
msgid "Trial"
|
298 |
msgstr "试用"
|
299 |
|
300 |
+
#: qqworld-auto-save-images.php:411
|
301 |
msgid "Scan Posts"
|
302 |
msgstr "扫描文章"
|
303 |
|
304 |
+
#: qqworld-auto-save-images.php:414
|
305 |
msgid "General Options"
|
306 |
msgstr "常规选项"
|
307 |
|
308 |
+
#: qqworld-auto-save-images.php:418 qqworld-auto-save-images.php:420
|
309 |
msgid "Mode"
|
310 |
msgstr "模式"
|
311 |
|
312 |
+
#: qqworld-auto-save-images.php:423 qqworld-auto-save-images.php:807
|
|
|
|
|
313 |
msgid "Automatic"
|
314 |
msgstr "自动"
|
315 |
|
316 |
+
#: qqworld-auto-save-images.php:424
|
317 |
msgid ""
|
318 |
"Automatically save all remote images to local media libary when you save or "
|
319 |
"publish post."
|
320 |
msgstr "在保存或发布文章时,自动将所有远程图像保存到本地媒体库。"
|
321 |
|
322 |
+
#: qqworld-auto-save-images.php:427 qqworld-auto-save-images.php:808
|
323 |
msgid "Manual"
|
324 |
msgstr "手动"
|
325 |
|
326 |
+
#: qqworld-auto-save-images.php:428
|
327 |
msgid ""
|
328 |
"Manually save all remote images to local media libary when you click the "
|
329 |
"button on the top of editor."
|
330 |
msgstr "当单击编辑器顶部的按钮时,手动将所有远程图像保存到本地媒体库。"
|
331 |
|
332 |
+
#: qqworld-auto-save-images.php:433 qqworld-auto-save-images.php:435
|
333 |
msgid "When"
|
334 |
msgstr "什么时候"
|
335 |
|
336 |
+
#: qqworld-auto-save-images.php:438
|
337 |
msgid "Save post (Publish, save draft or pedding review)."
|
338 |
msgstr "保存文章时(发布文章,保存草稿或提交审核)。"
|
339 |
|
340 |
+
#: qqworld-auto-save-images.php:442
|
341 |
msgid "Publish post only."
|
342 |
msgstr "仅发布文章时。"
|
343 |
|
344 |
+
#: qqworld-auto-save-images.php:448 qqworld-auto-save-images.php:450
|
345 |
msgid "Remote Publishing"
|
346 |
msgstr "远程发布"
|
347 |
|
348 |
+
#: qqworld-auto-save-images.php:448
|
349 |
msgid ""
|
350 |
"Save remote images via remote publishing from IFTTT or other way using "
|
351 |
+
"XMLRPC. Only supports publish post."
|
352 |
+
msgstr "保存通过IFTTT或其他使用XMLRPC方法远程发布的远程图片。仅支持发布文章。"
|
353 |
|
354 |
+
#: qqworld-auto-save-images.php:458 qqworld-auto-save-images.php:460
|
355 |
msgid "Set Featured Image"
|
356 |
msgstr "设置特色图片"
|
357 |
|
358 |
+
#: qqworld-auto-save-images.php:458
|
359 |
msgid "Set first one of the remote images as featured image."
|
360 |
msgstr "设置远程图片中的第1个为特色图片。"
|
361 |
|
362 |
+
#: qqworld-auto-save-images.php:468
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
363 |
msgid "Filter Options"
|
364 |
msgstr "过滤选项"
|
365 |
|
366 |
+
#: qqworld-auto-save-images.php:472 qqworld-auto-save-images.php:474
|
367 |
msgid "Minimum Picture Size"
|
368 |
msgstr "最小图像尺寸"
|
369 |
|
370 |
+
#: qqworld-auto-save-images.php:472
|
371 |
msgid "Ignore smaller than this size picture."
|
372 |
msgstr "忽略比这个尺寸更小的图像。"
|
373 |
|
374 |
+
#: qqworld-auto-save-images.php:476 qqworld-auto-save-images.php:488
|
375 |
+
#: qqworld-auto-save-images.php:607
|
376 |
msgid "Width:"
|
377 |
msgstr "宽度:"
|
378 |
|
379 |
+
#: qqworld-auto-save-images.php:476 qqworld-auto-save-images.php:479
|
380 |
+
#: qqworld-auto-save-images.php:488 qqworld-auto-save-images.php:491
|
381 |
+
#: qqworld-auto-save-images.php:607 qqworld-auto-save-images.php:610
|
382 |
msgid "(px)"
|
383 |
msgstr "(像素)"
|
384 |
|
385 |
+
#: qqworld-auto-save-images.php:479 qqworld-auto-save-images.php:491
|
386 |
+
#: qqworld-auto-save-images.php:610
|
387 |
msgid "Height:"
|
388 |
msgstr "高度:"
|
389 |
|
390 |
+
#: qqworld-auto-save-images.php:484 qqworld-auto-save-images.php:486
|
391 |
+
msgid "Maximum Picture Size"
|
392 |
+
msgstr "最大图像尺寸"
|
393 |
+
|
394 |
+
#: qqworld-auto-save-images.php:484
|
395 |
+
msgid "Automatic reduction is greater than the size of the picture."
|
396 |
+
msgstr "自动缩小大于改尺寸的图像。"
|
397 |
+
|
398 |
+
#: qqworld-auto-save-images.php:496 qqworld-auto-save-images.php:498
|
399 |
msgid "Exclude Domain/Keyword"
|
400 |
msgstr "排除域名/关键词"
|
401 |
|
402 |
+
#: qqworld-auto-save-images.php:496
|
403 |
msgid "Images will not be saved, if that url contains Exclude-Domain/Keyword."
|
404 |
msgstr "如果图片地址包含排除域名/关键词,则不会保存该图片。"
|
405 |
|
406 |
+
#: qqworld-auto-save-images.php:508
|
407 |
msgid "Add a Domain/Keyword"
|
408 |
msgstr "添加域名/关键词"
|
409 |
|
410 |
+
#: qqworld-auto-save-images.php:513
|
411 |
msgid "Format Options"
|
412 |
msgstr "格式化选项"
|
413 |
|
414 |
+
#: qqworld-auto-save-images.php:517 qqworld-auto-save-images.php:519
|
415 |
+
msgid "Change Image Filename"
|
416 |
+
msgstr "更改图片文件名"
|
417 |
+
|
418 |
+
#: qqworld-auto-save-images.php:517
|
419 |
+
msgid ""
|
420 |
+
"If you checked this, when the remote image filename have Chinese or other "
|
421 |
+
"East Asian characters. system will automatically change image filename. I "
|
422 |
+
"suggest enable it."
|
423 |
+
msgstr ""
|
424 |
+
"如果勾选了此项,当远程图片名包含中文或其他东亚字符的时候,将自动更改图片文件"
|
425 |
+
"名。建议开启。"
|
426 |
+
|
427 |
+
#: qqworld-auto-save-images.php:526 qqworld-auto-save-images.php:528
|
428 |
msgid "Keep Outside Links"
|
429 |
msgstr "保留外链"
|
430 |
|
431 |
+
#: qqworld-auto-save-images.php:526
|
432 |
msgid "Keep the outside links of remote images if exist."
|
433 |
msgstr "将会保留远程图片的链接,如果存在的话。"
|
434 |
|
435 |
+
#: qqworld-auto-save-images.php:535 qqworld-auto-save-images.php:537
|
436 |
msgid "Image Size"
|
437 |
msgstr "图像尺寸"
|
438 |
|
439 |
+
#: qqworld-auto-save-images.php:535
|
440 |
msgid "Replace images you want size to display."
|
441 |
msgstr "替换成你想要显示的尺寸的图像。"
|
442 |
|
443 |
+
#: qqworld-auto-save-images.php:542
|
444 |
#, fuzzy
|
445 |
msgid "Thumbnail"
|
446 |
msgstr ""
|
447 |
"一个数组,可以包含数个函数,每个函数返回可能的缩略图图片对象相对于时间对象的"
|
448 |
"jQuery路径。"
|
449 |
|
450 |
+
#: qqworld-auto-save-images.php:543
|
451 |
msgid "Medium"
|
452 |
msgstr ""
|
453 |
|
454 |
+
#: qqworld-auto-save-images.php:544
|
455 |
msgid "Large"
|
456 |
msgstr ""
|
457 |
|
458 |
+
#: qqworld-auto-save-images.php:545
|
459 |
#, fuzzy
|
460 |
msgid "Full Size"
|
461 |
msgstr "链接到全尺寸图像"
|
462 |
|
463 |
+
#: qqworld-auto-save-images.php:554 qqworld-auto-save-images.php:556
|
464 |
msgid "Link To"
|
465 |
msgstr "链接到"
|
466 |
|
467 |
+
#: qqworld-auto-save-images.php:554
|
468 |
msgid "If you checked Keep-Outside-Links, this option will not works."
|
469 |
msgstr "如果你勾选了保留外链,本项将不起作用。"
|
470 |
|
471 |
+
#: qqworld-auto-save-images.php:561
|
472 |
#, fuzzy
|
473 |
msgid "Media File"
|
474 |
msgstr "添加文件"
|
475 |
|
476 |
+
#: qqworld-auto-save-images.php:562
|
477 |
#, fuzzy
|
478 |
msgid "Attachment Page"
|
479 |
msgstr "(附件)"
|
480 |
|
481 |
+
#: qqworld-auto-save-images.php:563
|
482 |
msgid "None"
|
483 |
msgstr ""
|
484 |
|
485 |
+
#: qqworld-auto-save-images.php:579
|
486 |
msgid ""
|
487 |
"Just for preview, The complete feature will on the Pro version. Don't worry, "
|
488 |
"other features will be free forever."
|
489 |
msgstr "仅仅用于预览,专业版将提供完整的功能。别担心,其他功能将永久免费。"
|
490 |
|
491 |
+
#: qqworld-auto-save-images.php:583 qqworld-auto-save-images.php:585
|
492 |
msgid "Enabled Watermark"
|
493 |
msgstr "启用水印"
|
494 |
|
495 |
+
#: qqworld-auto-save-images.php:583
|
496 |
msgid "Use for both of remote images and the local upload."
|
497 |
msgstr "同时用于远程图片和本地上传。"
|
498 |
|
499 |
+
#: qqworld-auto-save-images.php:593 qqworld-auto-save-images.php:595
|
500 |
msgid "Ignore animated GIF"
|
501 |
msgstr "忽略GIF动画"
|
502 |
|
503 |
+
#: qqworld-auto-save-images.php:603 qqworld-auto-save-images.php:605
|
504 |
msgid "Filter"
|
505 |
msgstr "过滤"
|
506 |
|
507 |
+
#: qqworld-auto-save-images.php:603
|
508 |
msgid "Skip images that smaller than this size."
|
509 |
msgstr "跳过比这个尺寸更小的图像。"
|
510 |
|
511 |
+
#: qqworld-auto-save-images.php:616
|
512 |
msgid "Align To"
|
513 |
msgstr "对齐方式"
|
514 |
|
515 |
+
#: qqworld-auto-save-images.php:638
|
516 |
msgid "Position"
|
517 |
msgstr "位置"
|
518 |
|
519 |
+
#: qqworld-auto-save-images.php:638
|
520 |
msgid "You can try to drag the watermark image."
|
521 |
msgstr "你可以试着拖动水印图片。"
|
522 |
|
523 |
+
#: qqworld-auto-save-images.php:655 qqworld-auto-save-images.php:657
|
524 |
+
#: qqworld-auto-save-images.php:736
|
525 |
msgid "Offset"
|
526 |
msgstr "偏移"
|
527 |
|
528 |
+
#: qqworld-auto-save-images.php:668 qqworld-auto-save-images.php:670
|
529 |
msgid "Opacity"
|
530 |
msgstr "不透明度"
|
531 |
|
532 |
+
#: qqworld-auto-save-images.php:678 qqworld-auto-save-images.php:680
|
533 |
msgid "Upload Watermark Image"
|
534 |
msgstr "上传水印图片"
|
535 |
|
536 |
+
#: qqworld-auto-save-images.php:682
|
537 |
msgid "Insert a Watermark Image"
|
538 |
msgstr "插入水印图片"
|
539 |
|
540 |
+
#: qqworld-auto-save-images.php:693
|
541 |
msgid "Default Watermark"
|
542 |
msgstr "默认水印"
|
543 |
|
544 |
+
#: qqworld-auto-save-images.php:697
|
545 |
msgid "Buy"
|
546 |
msgstr "购买"
|
547 |
|
548 |
+
#: qqworld-auto-save-images.php:698
|
549 |
msgid "Coming.. I don't know when, Who cares.."
|
550 |
msgstr "即将…我不知道什么时候,管它呢……"
|
551 |
|
552 |
+
#: qqworld-auto-save-images.php:712
|
553 |
msgid "Select post types"
|
554 |
msgstr "选择文章类型"
|
555 |
|
556 |
+
#: qqworld-auto-save-images.php:712
|
557 |
msgid ""
|
558 |
"If you have too many posts to be scan, sometimes in process looks like "
|
559 |
"stopping, but it may be fake. please be patient."
|
561 |
"如果有太多文章需要扫描,有时候在扫描过程中看起来像是停止了,但可能是假停止,"
|
562 |
"请耐心等待。"
|
563 |
|
564 |
+
#: qqworld-auto-save-images.php:726
|
565 |
#, fuzzy
|
566 |
msgid "Categories"
|
567 |
msgstr "%s分类"
|
568 |
|
569 |
+
#: qqworld-auto-save-images.php:726
|
570 |
msgid "Default empty to scan all categories."
|
571 |
msgstr "默认留空扫描所有分类。"
|
572 |
|
573 |
+
#: qqworld-auto-save-images.php:731
|
574 |
msgid "Scope of Post ID"
|
575 |
msgstr "文章ID范围"
|
576 |
|
577 |
+
#: qqworld-auto-save-images.php:731
|
578 |
msgid ""
|
579 |
"Default empty for scan all posts ID. If you want to scan posts ID from 50 to "
|
580 |
"100. please type '50' and '100' or '100' and '50', The order in which two "
|
585 |
"者'100'和'50',两个数字的顺序可以颠倒。如果你只输入了1个数字,则系统只会扫描"
|
586 |
"该ID。"
|
587 |
|
588 |
+
#: qqworld-auto-save-images.php:732
|
589 |
#, php-format
|
590 |
msgid "From %1$s to %2$s"
|
591 |
msgstr "从 %1$s 到 %2$s"
|
592 |
|
593 |
+
#: qqworld-auto-save-images.php:736
|
594 |
msgid ""
|
595 |
"Default scan all posts. If you want to scan 50-150 posts, please type '50' "
|
596 |
"in the textfield and select '100'."
|
598 |
"默认扫秒全部文章,如果想扫描50-150篇文章,请在文本框中输入“50”并在下拉菜单中"
|
599 |
"选择“100”。"
|
600 |
|
601 |
+
#: qqworld-auto-save-images.php:738
|
602 |
#, php-format
|
603 |
msgid "Start from %s to Scan"
|
604 |
msgstr "从 %s 开始扫描"
|
605 |
|
606 |
+
#: qqworld-auto-save-images.php:740
|
607 |
#, fuzzy
|
608 |
msgid "All"
|
609 |
msgstr "所有"
|
610 |
|
611 |
+
#: qqworld-auto-save-images.php:744
|
612 |
#, fuzzy
|
613 |
msgid "Posts"
|
614 |
msgstr "热门文章"
|
615 |
|
616 |
+
#: qqworld-auto-save-images.php:754
|
617 |
msgid "Any"
|
618 |
msgstr "任意"
|
619 |
|
620 |
+
#: qqworld-auto-save-images.php:764
|
621 |
msgid "Order By"
|
622 |
msgstr "排序依据"
|
623 |
|
624 |
+
#: qqworld-auto-save-images.php:770
|
625 |
#, fuzzy
|
626 |
msgid "Author"
|
627 |
msgstr "名称"
|
628 |
|
629 |
+
#: qqworld-auto-save-images.php:772
|
630 |
#, fuzzy
|
631 |
msgid "Date"
|
632 |
msgstr "日期"
|
633 |
|
634 |
+
#: qqworld-auto-save-images.php:773
|
635 |
#, fuzzy
|
636 |
msgid "Last Modified"
|
637 |
msgstr "最后回复"
|
638 |
|
639 |
+
#: qqworld-auto-save-images.php:774
|
640 |
msgid "Comment Count"
|
641 |
msgstr "评论数"
|
642 |
|
643 |
+
#: qqworld-auto-save-images.php:784
|
644 |
#, fuzzy
|
645 |
msgid "Order"
|
646 |
msgstr "顺序"
|
647 |
|
648 |
+
#: qqworld-auto-save-images.php:794
|
649 |
msgid "Speed"
|
650 |
msgstr "速度"
|
651 |
|
652 |
+
#: qqworld-auto-save-images.php:794
|
653 |
msgid "If the server is too much stress may be appropriately reduced speed."
|
654 |
msgstr "如果服务器压力过大,可以适当调低速度。"
|
655 |
|
656 |
+
#: qqworld-auto-save-images.php:807
|
657 |
msgid ""
|
658 |
"Scan posts and keep remote images in all posts to local media library. Maybe "
|
659 |
"take a long time."
|
660 |
msgstr "扫描所有的文章,将所有远程图片保存到本地,可能需要很长时间。"
|
661 |
|
662 |
+
#: qqworld-auto-save-images.php:808
|
663 |
msgid ""
|
664 |
"The list displayed will show you which posts including remote images, then "
|
665 |
"you can keep them to local manually via click \"Fetch\" button."
|
667 |
"显示的列表中将告诉你哪些文章包含远程图片,然后你可以通过点击“抓取”按钮手动保"
|
668 |
"存。"
|
669 |
|
670 |
+
#: qqworld-auto-save-images.php:904
|
671 |
msgid "Has Missing/Undownloadable images."
|
672 |
msgstr "有 不存在/不可下载 的远程图像。"
|
673 |
|
674 |
+
#: qqworld-auto-save-images.php:911
|
675 |
msgid "No remote images found."
|
676 |
msgstr "没有远程图像。"
|
677 |
|
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
|
@@ -19,6 +19,7 @@ class QQWorld_auto_save_images {
|
|
19 |
var $has_remote_image;
|
20 |
var $has_missing_image;
|
21 |
var $minimum_picture_size;
|
|
|
22 |
var $exclude_domain;
|
23 |
var $format;
|
24 |
|
@@ -36,6 +37,7 @@ class QQWorld_auto_save_images {
|
|
36 |
$this->featured_image = get_option('qqworld_auto_save_images_set_featured_image', 'yes');
|
37 |
$this->change_image_name = get_option('qqworld_auto_save_images_auto_change_name', 'yes');
|
38 |
$this->minimum_picture_size = get_option('qqworld_auto_save_images_minimum_picture_size', array('width'=>32, 'height'=>32));
|
|
|
39 |
$this->exclude_domain = get_option('qqworld-auto-save-images-exclude-domain');
|
40 |
$this->format = get_option('qqworld-auto-save-images-format', array('size'=>'full', 'link-to'=>'none'));
|
41 |
$this->keep_outside_links = isset($this->format['keep-outside-links']) ? $this->format['keep-outside-links'] : 'no';
|
@@ -78,19 +80,8 @@ class QQWorld_auto_save_images {
|
|
78 |
add_action( 'admin_enqueue_scripts', array($this, 'add_to_page_qqworld_auto_save_images') );
|
79 |
|
80 |
add_filter( 'post_updated_messages', array($this, 'post_updated_messages') );
|
81 |
-
|
82 |
-
//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') );
|
83 |
}
|
84 |
|
85 |
-
/*public function error_correction() {
|
86 |
-
?>
|
87 |
-
<div class="error default-password-nag">
|
88 |
-
<p><strong><?php _e('Notice:'); ?></strong>
|
89 |
-
<?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>
|
90 |
-
</div>
|
91 |
-
<?php
|
92 |
-
}*/
|
93 |
-
|
94 |
public function save_remote_images_get_categories_list() {
|
95 |
if (isset($_REQUEST['posttype']) && !empty($_REQUEST['posttype'])) {
|
96 |
$posttype = $_REQUEST['posttype'];
|
@@ -454,11 +445,11 @@ class QQWorld_auto_save_images {
|
|
454 |
</tr>
|
455 |
|
456 |
<tr valign="top">
|
457 |
-
<th scope="row"><label><?php _e('Remote Publishing', 'qqworld_auto_save_images'); ?></label> <span class="icon help" title="<?php _e("Save remote images via remote publishing from IFTTT or other way using XMLRPC.", 'qqworld_auto_save_images'); ?>"></span></th>
|
458 |
<td><fieldset>
|
459 |
<legend class="screen-reader-text"><span><?php _e('Remote Publishing', 'qqworld_auto_save_images'); ?></span></legend>
|
460 |
<label for="qqworld_auto_save_images_remote_publishing">
|
461 |
-
<input name="qqworld_auto_save_images_remote_publishing" type="checkbox" id="qqworld_auto_save_images_remote_publishing" value="yes" <?php checked('yes', $this->remote_publishing); ?> />
|
462 |
</label>
|
463 |
</fieldset></td>
|
464 |
</tr>
|
@@ -468,17 +459,7 @@ class QQWorld_auto_save_images {
|
|
468 |
<td><fieldset>
|
469 |
<legend class="screen-reader-text"><span><?php _e('Set Featured Image', 'qqworld_auto_save_images'); ?></span></legend>
|
470 |
<label for="qqworld_auto_save_images_set_featured_image_yes">
|
471 |
-
<input name="qqworld_auto_save_images_set_featured_image" type="checkbox" id="qqworld_auto_save_images_set_featured_image_yes" value="yes" <?php checked('yes', $this->featured_image); ?> />
|
472 |
-
</label>
|
473 |
-
</fieldset></td>
|
474 |
-
</tr>
|
475 |
-
|
476 |
-
<tr valign="top">
|
477 |
-
<th scope="row"><label><?php _e('Change Image Filename', 'qqworld_auto_save_images'); ?></label> <span class="icon help" title="<?php _e("If you checked this, when the remote image filename have Chinese or other East Asian characters. system will automatically change image filename. I suggest enable it.", 'qqworld_auto_save_images'); ?>"></span></th>
|
478 |
-
<td><fieldset>
|
479 |
-
<legend class="screen-reader-text"><span><?php _e('Change Image Filename', 'qqworld_auto_save_images'); ?></span></legend>
|
480 |
-
<label for="qqworld_auto_save_images_auto_change_name">
|
481 |
-
<input name="qqworld_auto_save_images_auto_change_name" type="checkbox" id="qqworld_auto_save_images_auto_change_name" value="yes" <?php checked('yes', $this->change_image_name); ?> /> <?php _e('Automatic', 'qqworld_auto_save_images'); ?>
|
482 |
</label>
|
483 |
</fieldset></td>
|
484 |
</tr>
|
@@ -486,19 +467,31 @@ class QQWorld_auto_save_images {
|
|
486 |
</table>
|
487 |
<h2><?php _e('Filter Options', 'qqworld_auto_save_images'); ?></h2>
|
488 |
<table class="form-table">
|
489 |
-
<tr valign="top">
|
490 |
-
<th scope="row"><label><?php _e('Minimum Picture Size', 'qqworld_auto_save_images'); ?></label> <span class="icon help" title="<?php _e("Ignore smaller than this size picture.", 'qqworld_auto_save_images'); ?>"></span></th>
|
491 |
-
<td><fieldset>
|
492 |
-
<legend class="screen-reader-text"><span><?php _e('Minimum Picture Size', 'qqworld_auto_save_images'); ?></span></legend>
|
493 |
-
<label for="qqworld_auto_save_images_minimum_picture_size_width">
|
494 |
-
<?php _e('Width:', 'qqworld_auto_save_images'); ?> <input name="qqworld_auto_save_images_minimum_picture_size[width]" class="small-text" type="text" id="qqworld_auto_save_images_minimum_picture_size_width" value="<?php echo $this->minimum_picture_size['width']; ?>" /> <?php _e('(px)', 'qqworld_auto_save_images'); ?>
|
495 |
-
</label><br />
|
496 |
-
<label for="qqworld_auto_save_images_minimum_picture_size_height">
|
497 |
-
<?php _e('Height:', 'qqworld_auto_save_images'); ?> <input name="qqworld_auto_save_images_minimum_picture_size[height]" class="small-text" type="text" id="qqworld_auto_save_images_minimum_picture_size_height" value="<?php echo $this->minimum_picture_size['height']; ?>" /> <?php _e('(px)', 'qqworld_auto_save_images'); ?>
|
498 |
-
</label>
|
499 |
-
</fieldset></td>
|
500 |
-
</tr>
|
501 |
<tbody>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
502 |
<tr valign="top">
|
503 |
<th scope="row"><label><?php _e('Exclude Domain/Keyword', 'qqworld_auto_save_images'); ?></label> <span class="icon help" title="<?php _e("Images will not be saved, if that url contains Exclude-Domain/Keyword.", 'qqworld_auto_save_images'); ?>"></span></th>
|
504 |
<td><fieldset>
|
@@ -520,6 +513,15 @@ class QQWorld_auto_save_images {
|
|
520 |
<h2><?php _e('Format Options', 'qqworld_auto_save_images'); ?></h2>
|
521 |
<table class="form-table">
|
522 |
<tbody>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
523 |
<tr valign="top">
|
524 |
<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>
|
525 |
<td><fieldset>
|
@@ -817,6 +819,7 @@ class QQWorld_auto_save_images {
|
|
817 |
register_setting('qqworld_auto_save_images_settings', 'qqworld_auto_save_images_remote_publishing');
|
818 |
register_setting('qqworld_auto_save_images_settings', 'qqworld_auto_save_images_set_featured_image');
|
819 |
register_setting('qqworld_auto_save_images_settings', 'qqworld_auto_save_images_auto_change_name');
|
|
|
820 |
register_setting('qqworld_auto_save_images_settings', 'qqworld_auto_save_images_minimum_picture_size');
|
821 |
register_setting('qqworld_auto_save_images_settings', 'qqworld-auto-save-images-exclude-domain');
|
822 |
register_setting('qqworld_auto_save_images_settings', 'qqworld-auto-save-images-format');
|
@@ -1061,6 +1064,43 @@ class QQWorld_auto_save_images {
|
|
1061 |
return $filename[count($filename)-1];
|
1062 |
}
|
1063 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1064 |
//save exterior images
|
1065 |
function save_images($image_url, $post_id){
|
1066 |
set_time_limit(0);
|
@@ -1077,6 +1117,10 @@ class QQWorld_auto_save_images {
|
|
1077 |
} else {
|
1078 |
$img_name = $this->change_images_filename($match[1], $match[2]);
|
1079 |
}
|
|
|
|
|
|
|
|
|
1080 |
$res=wp_upload_bits($img_name,'',$file);
|
1081 |
$attachment_id = $this->insert_attachment($res['file'], $post_id);
|
1082 |
$res['id'] = $attachment_id;
|
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.10
|
7 |
Author: Michael Wang
|
8 |
Author URI: http://www.qqworld.org
|
9 |
Text Domain: qqworld_auto_save_images
|
19 |
var $has_remote_image;
|
20 |
var $has_missing_image;
|
21 |
var $minimum_picture_size;
|
22 |
+
var $maximum_picture_size;
|
23 |
var $exclude_domain;
|
24 |
var $format;
|
25 |
|
37 |
$this->featured_image = get_option('qqworld_auto_save_images_set_featured_image', 'yes');
|
38 |
$this->change_image_name = get_option('qqworld_auto_save_images_auto_change_name', 'yes');
|
39 |
$this->minimum_picture_size = get_option('qqworld_auto_save_images_minimum_picture_size', array('width'=>32, 'height'=>32));
|
40 |
+
$this->maximum_picture_size = get_option('qqworld_auto_save_images_maximum_picture_size', array('width'=>1280, 'height'=>1280));
|
41 |
$this->exclude_domain = get_option('qqworld-auto-save-images-exclude-domain');
|
42 |
$this->format = get_option('qqworld-auto-save-images-format', array('size'=>'full', 'link-to'=>'none'));
|
43 |
$this->keep_outside_links = isset($this->format['keep-outside-links']) ? $this->format['keep-outside-links'] : 'no';
|
80 |
add_action( 'admin_enqueue_scripts', array($this, 'add_to_page_qqworld_auto_save_images') );
|
81 |
|
82 |
add_filter( 'post_updated_messages', array($this, 'post_updated_messages') );
|
|
|
|
|
83 |
}
|
84 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
public function save_remote_images_get_categories_list() {
|
86 |
if (isset($_REQUEST['posttype']) && !empty($_REQUEST['posttype'])) {
|
87 |
$posttype = $_REQUEST['posttype'];
|
445 |
</tr>
|
446 |
|
447 |
<tr valign="top">
|
448 |
+
<th scope="row"><label><?php _e('Remote Publishing', 'qqworld_auto_save_images'); ?></label> <span class="icon help" title="<?php _e("Save remote images via remote publishing from IFTTT or other way using XMLRPC. Only supports publish post.", 'qqworld_auto_save_images'); ?>"></span></th>
|
449 |
<td><fieldset>
|
450 |
<legend class="screen-reader-text"><span><?php _e('Remote Publishing', 'qqworld_auto_save_images'); ?></span></legend>
|
451 |
<label for="qqworld_auto_save_images_remote_publishing">
|
452 |
+
<input name="qqworld_auto_save_images_remote_publishing" type="checkbox" id="qqworld_auto_save_images_remote_publishing" value="yes" <?php checked('yes', $this->remote_publishing); ?> />
|
453 |
</label>
|
454 |
</fieldset></td>
|
455 |
</tr>
|
459 |
<td><fieldset>
|
460 |
<legend class="screen-reader-text"><span><?php _e('Set Featured Image', 'qqworld_auto_save_images'); ?></span></legend>
|
461 |
<label for="qqworld_auto_save_images_set_featured_image_yes">
|
462 |
+
<input name="qqworld_auto_save_images_set_featured_image" type="checkbox" id="qqworld_auto_save_images_set_featured_image_yes" value="yes" <?php checked('yes', $this->featured_image); ?> />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
463 |
</label>
|
464 |
</fieldset></td>
|
465 |
</tr>
|
467 |
</table>
|
468 |
<h2><?php _e('Filter Options', 'qqworld_auto_save_images'); ?></h2>
|
469 |
<table class="form-table">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
470 |
<tbody>
|
471 |
+
<tr valign="top">
|
472 |
+
<th scope="row"><label><?php _e('Minimum Picture Size', 'qqworld_auto_save_images'); ?></label> <span class="icon help" title="<?php _e("Ignore smaller than this size picture.", 'qqworld_auto_save_images'); ?>"></span></th>
|
473 |
+
<td><fieldset>
|
474 |
+
<legend class="screen-reader-text"><span><?php _e('Minimum Picture Size', 'qqworld_auto_save_images'); ?></span></legend>
|
475 |
+
<label for="qqworld_auto_save_images_minimum_picture_size_width">
|
476 |
+
<?php _e('Width:', 'qqworld_auto_save_images'); ?> <input name="qqworld_auto_save_images_minimum_picture_size[width]" class="small-text" type="text" id="qqworld_auto_save_images_minimum_picture_size_width" value="<?php echo $this->minimum_picture_size['width']; ?>" /> <?php _e('(px)', 'qqworld_auto_save_images'); ?>
|
477 |
+
</label><br />
|
478 |
+
<label for="qqworld_auto_save_images_minimum_picture_size_height">
|
479 |
+
<?php _e('Height:', 'qqworld_auto_save_images'); ?> <input name="qqworld_auto_save_images_minimum_picture_size[height]" class="small-text" type="text" id="qqworld_auto_save_images_minimum_picture_size_height" value="<?php echo $this->minimum_picture_size['height']; ?>" /> <?php _e('(px)', 'qqworld_auto_save_images'); ?>
|
480 |
+
</label>
|
481 |
+
</fieldset></td>
|
482 |
+
</tr>
|
483 |
+
<tr valign="top">
|
484 |
+
<th scope="row"><label><?php _e('Maximum Picture Size', 'qqworld_auto_save_images'); ?></label> <span class="icon help" title="<?php _e("Automatic reduction is greater than the size of the picture.", 'qqworld_auto_save_images'); ?>"></span></th>
|
485 |
+
<td><fieldset>
|
486 |
+
<legend class="screen-reader-text"><span><?php _e('Maximum Picture Size', 'qqworld_auto_save_images'); ?></span></legend>
|
487 |
+
<label for="qqworld_auto_save_images_maximum_picture_size_width">
|
488 |
+
<?php _e('Width:', 'qqworld_auto_save_images'); ?> <input name="qqworld_auto_save_images_maximum_picture_size[width]" class="small-text" type="text" id="qqworld_auto_save_images_minimum_picture_size_width" value="<?php echo $this->maximum_picture_size['width']; ?>" /> <?php _e('(px)', 'qqworld_auto_save_images'); ?>
|
489 |
+
</label><br />
|
490 |
+
<label for="qqworld_auto_save_images_maximum_picture_size_height">
|
491 |
+
<?php _e('Height:', 'qqworld_auto_save_images'); ?> <input name="qqworld_auto_save_images_maximum_picture_size[height]" class="small-text" type="text" id="qqworld_auto_save_images_maximum_picture_size_height" value="<?php echo $this->maximum_picture_size['height']; ?>" /> <?php _e('(px)', 'qqworld_auto_save_images'); ?>
|
492 |
+
</label>
|
493 |
+
</fieldset></td>
|
494 |
+
</tr>
|
495 |
<tr valign="top">
|
496 |
<th scope="row"><label><?php _e('Exclude Domain/Keyword', 'qqworld_auto_save_images'); ?></label> <span class="icon help" title="<?php _e("Images will not be saved, if that url contains Exclude-Domain/Keyword.", 'qqworld_auto_save_images'); ?>"></span></th>
|
497 |
<td><fieldset>
|
513 |
<h2><?php _e('Format Options', 'qqworld_auto_save_images'); ?></h2>
|
514 |
<table class="form-table">
|
515 |
<tbody>
|
516 |
+
<tr valign="top">
|
517 |
+
<th scope="row"><label><?php _e('Change Image Filename', 'qqworld_auto_save_images'); ?></label> <span class="icon help" title="<?php _e("If you checked this, when the remote image filename have Chinese or other East Asian characters. system will automatically change image filename. I suggest enable it.", 'qqworld_auto_save_images'); ?>"></span></th>
|
518 |
+
<td><fieldset>
|
519 |
+
<legend class="screen-reader-text"><span><?php _e('Change Image Filename', 'qqworld_auto_save_images'); ?></span></legend>
|
520 |
+
<label for="qqworld_auto_save_images_auto_change_name">
|
521 |
+
<input name="qqworld_auto_save_images_auto_change_name" type="checkbox" id="qqworld_auto_save_images_auto_change_name" value="yes" <?php checked('yes', $this->change_image_name); ?> />
|
522 |
+
</label>
|
523 |
+
</fieldset></td>
|
524 |
+
</tr>
|
525 |
<tr valign="top">
|
526 |
<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>
|
527 |
<td><fieldset>
|
819 |
register_setting('qqworld_auto_save_images_settings', 'qqworld_auto_save_images_remote_publishing');
|
820 |
register_setting('qqworld_auto_save_images_settings', 'qqworld_auto_save_images_set_featured_image');
|
821 |
register_setting('qqworld_auto_save_images_settings', 'qqworld_auto_save_images_auto_change_name');
|
822 |
+
register_setting('qqworld_auto_save_images_settings', 'qqworld_auto_save_images_maximum_picture_size');
|
823 |
register_setting('qqworld_auto_save_images_settings', 'qqworld_auto_save_images_minimum_picture_size');
|
824 |
register_setting('qqworld_auto_save_images_settings', 'qqworld-auto-save-images-exclude-domain');
|
825 |
register_setting('qqworld_auto_save_images_settings', 'qqworld-auto-save-images-format');
|
1064 |
return $filename[count($filename)-1];
|
1065 |
}
|
1066 |
|
1067 |
+
public function automatic_reduction($file) {
|
1068 |
+
$filetype = $this->getFileType($file);
|
1069 |
+
list($width, $height, $type, $attr) = getimagesizefromstring($file);
|
1070 |
+
if ($width > $this->maximum_picture_size['width'] || $height > $this->maximum_picture_size['height']) {
|
1071 |
+
if ($width > $height) {
|
1072 |
+
$new_width = $this->maximum_picture_size['width'];
|
1073 |
+
$new_height = $height*$this->maximum_picture_size['width']/$width;
|
1074 |
+
} else {
|
1075 |
+
$new_width = $width*$this->maximum_picture_size['height']/$height;
|
1076 |
+
$new_height = $this->maximum_picture_size['height'];
|
1077 |
+
}
|
1078 |
+
$image_p = imagecreatetruecolor($new_width, $new_height);
|
1079 |
+
$image = imagecreatefromstring($file);
|
1080 |
+
imagecopyresampled($image_p, $image, 0, 0, 0, 0, $new_width, $new_height, $width, $height);
|
1081 |
+
ob_start();
|
1082 |
+
switch ($filetype) {
|
1083 |
+
case 'jpg':
|
1084 |
+
case 'jpeg':
|
1085 |
+
imageJpeg($image_p, null, 100);
|
1086 |
+
break;
|
1087 |
+
case 'png':
|
1088 |
+
imagePng($image_p, null);
|
1089 |
+
break;
|
1090 |
+
case 'gif':
|
1091 |
+
imageGif($image_p, null);
|
1092 |
+
break;
|
1093 |
+
}
|
1094 |
+
$file = ob_get_contents();
|
1095 |
+
ob_end_clean();
|
1096 |
+
imagedestroy($image_p);
|
1097 |
+
imagedestroy($image);
|
1098 |
+
$width = $new_width;
|
1099 |
+
$height = $new_height;
|
1100 |
+
}
|
1101 |
+
return array($file, $width, $height);
|
1102 |
+
}
|
1103 |
+
|
1104 |
//save exterior images
|
1105 |
function save_images($image_url, $post_id){
|
1106 |
set_time_limit(0);
|
1117 |
} else {
|
1118 |
$img_name = $this->change_images_filename($match[1], $match[2]);
|
1119 |
}
|
1120 |
+
|
1121 |
+
// Automatic reduction pictures size
|
1122 |
+
list($file, $width, $height) = $this->automatic_reduction($file);
|
1123 |
+
|
1124 |
$res=wp_upload_bits($img_name,'',$file);
|
1125 |
$attachment_id = $this->insert_attachment($res['file'], $post_id);
|
1126 |
$res['id'] = $attachment_id;
|