Version Description
Download this release
Release Info
Developer | qqworld |
Plugin | QQWorld Auto Save Images |
Version | 1.7.13 |
Comparing to | |
See all releases |
Code changes from version 1.7.12.14 to 1.7.13
- js/admin.js +50 -0
- lang/qqworld_auto_save_images-zh_CN.mo +0 -0
- lang/qqworld_auto_save_images-zh_CN.po +277 -186
- qqworld-auto-save-images.php +141 -9
js/admin.js
CHANGED
@@ -477,6 +477,56 @@ QQWorld_auto_save_images.scan_posts = function() {
|
|
477 |
}
|
478 |
});
|
479 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
480 |
$(document).on('change', '#watermark-opacity', _this.action.set_watermark_opacity).on('keyup', '#watermark-opacity', _this.action.set_watermark_opacity);
|
481 |
|
482 |
$(document).on('click', '#for-watermark-image', function() {
|
477 |
}
|
478 |
});
|
479 |
|
480 |
+
$(document).on('change', '#optimize-mode', function() {
|
481 |
+
if ($(this).val() == 'remote') {
|
482 |
+
$('#ftp-settings').fadeIn('normal');
|
483 |
+
$('#protocol').fadeIn('normal');
|
484 |
+
$('#folder').fadeIn('normal');
|
485 |
+
$('#url_example').fadeIn('normal');
|
486 |
+
$('#host').prev().fadeOut('normal');
|
487 |
+
$('#host').next().fadeOut('normal');
|
488 |
+
} else {
|
489 |
+
$('#ftp-settings').fadeOut('normal');
|
490 |
+
$('#protocol').fadeOut('normal');
|
491 |
+
$('#folder').fadeOut('normal');
|
492 |
+
$('#url_example').fadeOut('normal');
|
493 |
+
$('#host').prev().fadeIn('normal');
|
494 |
+
$('#host').next().fadeIn('normal');
|
495 |
+
}
|
496 |
+
});
|
497 |
+
|
498 |
+
$(document).on('click', '#test-ftp', function() {
|
499 |
+
var button = $(this);
|
500 |
+
button.attr('disabled', true);
|
501 |
+
$('body').data('noty', noty({
|
502 |
+
text: wait_img,
|
503 |
+
type: 'notification',
|
504 |
+
layout: 'center',
|
505 |
+
theme: noty_theme
|
506 |
+
}) );
|
507 |
+
$.ajax({
|
508 |
+
type: 'POST',
|
509 |
+
url: ajaxurl,
|
510 |
+
data: {
|
511 |
+
action: 'auto_save_images_test_ftp'
|
512 |
+
},
|
513 |
+
dataType: 'json',
|
514 |
+
success: function(respond) {
|
515 |
+
$('body').data('noty').close();
|
516 |
+
var options = {
|
517 |
+
text: respond.msg,
|
518 |
+
layout: 'center',
|
519 |
+
timeout: 3000,
|
520 |
+
theme: noty_theme
|
521 |
+
};
|
522 |
+
options.type = respond.success ? 'success' : 'error';
|
523 |
+
var n = noty(options);
|
524 |
+
button.removeAttr('disabled');
|
525 |
+
},
|
526 |
+
error: _this.action.catch_errors
|
527 |
+
});
|
528 |
+
});
|
529 |
+
|
530 |
$(document).on('change', '#watermark-opacity', _this.action.set_watermark_opacity).on('keyup', '#watermark-opacity', _this.action.set_watermark_opacity);
|
531 |
|
532 |
$(document).on('click', '#for-watermark-image', function() {
|
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: 2015-03-
|
6 |
-
"PO-Revision-Date: 2015-03-
|
7 |
"Last-Translator: Michael Wang <admin@qqworld.org>\n"
|
8 |
"Language-Team: QQWorld <admin@qqworld.org>\n"
|
9 |
"Language: zh_CN\n"
|
@@ -13,231 +13,247 @@ msgstr ""
|
|
13 |
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
|
14 |
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
|
15 |
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
|
16 |
-
"X-Generator: Poedit 1.7.
|
17 |
"X-Poedit-SourceCharset: UTF-8\n"
|
18 |
"X-Poedit-Basepath: ..\n"
|
19 |
"Plural-Forms: nplurals=1; plural=0;\n"
|
20 |
"X-Poedit-SearchPath-0: .\n"
|
21 |
|
22 |
-
#: qqworld-auto-save-images.php:
|
23 |
msgid "Michael Wang"
|
24 |
msgstr "王晓骞"
|
25 |
|
26 |
-
#: qqworld-auto-save-images.php:
|
27 |
msgid ""
|
28 |
"Your server PHP does not support cUrl, please remove ';' from in front of "
|
29 |
"extension=php_curl.dll in the php.ini."
|
30 |
msgstr ""
|
31 |
"你的服务器PHP不支持cUrl,请在php.ini中移除extension=php_curl.dll前面的‘;’。"
|
32 |
|
33 |
-
#: qqworld-auto-save-images.php:
|
34 |
msgid ""
|
35 |
"Your server PHP does not support GD2, please remove ';' from in front of "
|
36 |
"extension=php_gd2.dll in the <strong>php.ini</strong>."
|
37 |
msgstr ""
|
38 |
"你的服务器PHP不支持GD2,请在php.ini中移除extension=php_gd2.dll前面的‘;’。"
|
39 |
|
40 |
-
#: qqworld-auto-save-images.php:
|
41 |
msgid ""
|
42 |
"Your server PHP does not support fopen, please set allow_url_fopen=1 in the "
|
43 |
"php.ini."
|
44 |
msgstr "你的服务器PHP不支持fopen,请在php.ini中设置allow_url_fopen=1。"
|
45 |
|
46 |
-
#: qqworld-auto-save-images.php:
|
47 |
msgid "No taxonomies found."
|
48 |
msgstr "没有相关分类方法。"
|
49 |
|
50 |
-
#: qqworld-auto-save-images.php:
|
51 |
-
#: qqworld-auto-save-images.php:
|
52 |
msgid "All remote images have been saved."
|
53 |
msgstr "已保存所有远程图像。"
|
54 |
|
55 |
-
#: qqworld-auto-save-images.php:
|
56 |
#, php-format
|
57 |
msgid " <a href=\"%s\">View</a>"
|
58 |
msgstr " <a href=\"%s\">查看</a>"
|
59 |
|
60 |
-
#: qqworld-auto-save-images.php:
|
61 |
msgid "Has missing images or image which could not download."
|
62 |
msgstr "内容包含 不存在/无法下载 的图像。"
|
63 |
|
64 |
-
#: qqworld-auto-save-images.php:
|
65 |
msgid "In Process..."
|
66 |
msgstr "正在保存……"
|
67 |
|
68 |
-
#: qqworld-auto-save-images.php:
|
69 |
msgid "Something error, please check."
|
70 |
msgstr "出错了,请检查。"
|
71 |
|
72 |
-
#: qqworld-auto-save-images.php:
|
73 |
msgid ""
|
74 |
"Are you sure?<br />Before you click the yes button, I recommend backup site "
|
75 |
"database."
|
76 |
msgstr "你确定吗?<br />在点击确定按钮之前,我建议你备份网站的数据库。"
|
77 |
|
78 |
-
#: qqworld-auto-save-images.php:
|
79 |
msgid "Please select post types."
|
80 |
msgstr "请选择文章类型。"
|
81 |
|
82 |
-
#: qqworld-auto-save-images.php:
|
83 |
msgid "May be a problem with some posts: "
|
84 |
msgstr "也许一些文章有问题:"
|
85 |
|
86 |
-
#: qqworld-auto-save-images.php:
|
87 |
#, php-format
|
88 |
msgid "No need enter \"%s\"."
|
89 |
msgstr "不需要输入“%s”。"
|
90 |
|
91 |
-
#: qqworld-auto-save-images.php:
|
92 |
#, php-format
|
93 |
msgid "%d post has been scanned."
|
94 |
msgstr "已扫描%d篇文章。"
|
95 |
|
96 |
-
#: qqworld-auto-save-images.php:
|
97 |
#, php-format
|
98 |
msgid "%d posts have been scanned."
|
99 |
msgstr "已扫描%d篇文章。"
|
100 |
|
101 |
-
#: qqworld-auto-save-images.php:
|
102 |
#, php-format
|
103 |
msgid "%d post included remote images processed."
|
104 |
msgstr "已处理%d篇包含远程图像的文章。"
|
105 |
|
106 |
-
#: qqworld-auto-save-images.php:
|
107 |
#, php-format
|
108 |
msgid "%d posts included remote images processed."
|
109 |
msgstr "已处理%d篇包含远程图像的文章。"
|
110 |
|
111 |
-
#: qqworld-auto-save-images.php:
|
112 |
#, php-format
|
113 |
msgid "%d post has missing images couldn't be processed."
|
114 |
msgstr "%d篇包含不存在的远程图像的文章无法处理。"
|
115 |
|
116 |
-
#: qqworld-auto-save-images.php:
|
117 |
#, php-format
|
118 |
msgid "%d posts have missing images couldn't be processed."
|
119 |
msgstr "%d篇包含不存在的远程图像的文章无法处理。"
|
120 |
|
121 |
-
#: qqworld-auto-save-images.php:
|
122 |
#, php-format
|
123 |
msgid "found %d post including remote images."
|
124 |
msgstr "找到%d篇包含远程图像的文章。"
|
125 |
|
126 |
-
#: qqworld-auto-save-images.php:
|
127 |
#, php-format
|
128 |
msgid "found %d posts including remote images."
|
129 |
msgstr "找到%d篇包含远程图像的文章。"
|
130 |
|
131 |
-
#: qqworld-auto-save-images.php:
|
132 |
#, php-format
|
133 |
msgid "And with %d post has missing images."
|
134 |
msgstr "其中有%d篇文章包含不存在的远程图像。"
|
135 |
|
136 |
-
#: qqworld-auto-save-images.php:
|
137 |
#, php-format
|
138 |
msgid "And with %d posts have missing images."
|
139 |
msgstr "其中有%d篇文章包含不存在的远程图像。"
|
140 |
|
141 |
-
#: qqworld-auto-save-images.php:
|
142 |
msgid "No posts processed."
|
143 |
msgstr "未处理任何文章。"
|
144 |
|
145 |
-
#: qqworld-auto-save-images.php:
|
146 |
msgid "No post has remote images found."
|
147 |
msgstr "没有文章包含远程图像。"
|
148 |
|
149 |
-
#: qqworld-auto-save-images.php:
|
150 |
msgid "No posts found."
|
151 |
msgstr "未找到任何文章。"
|
152 |
|
153 |
-
#: qqworld-auto-save-images.php:
|
154 |
msgid "All done."
|
155 |
msgstr "全部完成。"
|
156 |
|
157 |
-
#: qqworld-auto-save-images.php:
|
158 |
#, fuzzy
|
159 |
msgid "Yes"
|
160 |
msgstr "是"
|
161 |
|
162 |
-
#: qqworld-auto-save-images.php:
|
163 |
msgid "No"
|
164 |
msgstr ""
|
165 |
|
166 |
-
#: qqworld-auto-save-images.php:
|
167 |
msgid "Scanning..."
|
168 |
msgstr "扫描中……"
|
169 |
|
170 |
-
#: qqworld-auto-save-images.php:
|
171 |
msgid "Listing..."
|
172 |
msgstr "显示列表中……"
|
173 |
|
174 |
-
#: qqworld-auto-save-images.php:
|
175 |
#, fuzzy
|
176 |
msgid "ID"
|
177 |
msgstr "博客ID"
|
178 |
|
179 |
-
#: qqworld-auto-save-images.php:
|
180 |
msgid "Post Type"
|
181 |
msgstr "文章类型"
|
182 |
|
183 |
-
#: qqworld-auto-save-images.php:
|
184 |
#, fuzzy
|
185 |
msgid "Title"
|
186 |
msgstr "标题"
|
187 |
|
188 |
-
#: qqworld-auto-save-images.php:
|
189 |
#, fuzzy
|
190 |
msgid "Status"
|
191 |
msgstr "状态"
|
192 |
|
193 |
-
#: qqworld-auto-save-images.php:
|
194 |
msgid "Control"
|
195 |
msgstr "控制"
|
196 |
|
197 |
-
#: qqworld-auto-save-images.php:
|
198 |
#, fuzzy
|
199 |
msgid "Done"
|
200 |
msgstr "全部完成。"
|
201 |
|
202 |
-
#: qqworld-auto-save-images.php:
|
203 |
#, fuzzy
|
204 |
msgid "Delete"
|
205 |
msgstr "删除"
|
206 |
|
207 |
-
#: qqworld-auto-save-images.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
208 |
msgid "Has missing images."
|
209 |
msgstr "有不存在的远程图像。"
|
210 |
|
211 |
-
#: qqworld-auto-save-images.php:
|
212 |
msgid "Normal"
|
213 |
msgstr "正常"
|
214 |
|
215 |
-
#: qqworld-auto-save-images.php:
|
216 |
msgid "Fetch"
|
217 |
msgstr "抓取"
|
218 |
|
219 |
-
#: qqworld-auto-save-images.php:
|
220 |
msgid "Save Remote Images"
|
221 |
msgstr "保存远程图片"
|
222 |
|
223 |
-
#: qqworld-auto-save-images.php:
|
224 |
#, fuzzy
|
225 |
msgid "Settings"
|
226 |
msgstr "光箱选项"
|
227 |
|
228 |
-
#: qqworld-auto-save-images.php:
|
229 |
msgid "Auto Save Images"
|
230 |
msgstr "自动保存图片"
|
231 |
|
232 |
-
#: qqworld-auto-save-images.php:
|
233 |
msgid "QQWorld Auto Save Images"
|
234 |
msgstr "QQWorld自动保存图片"
|
235 |
|
236 |
-
#: qqworld-auto-save-images.php:
|
237 |
msgid "Installation"
|
238 |
msgstr "安装说明"
|
239 |
|
240 |
-
#: qqworld-auto-save-images.php:
|
241 |
msgid ""
|
242 |
"<ol><li>Make sure the server configuration <strong>allow_url_fopen=1</"
|
243 |
"strong> in php.ini.</li><li>Warning: If your website domain has been "
|
@@ -248,11 +264,11 @@ msgstr ""
|
|
248 |
"告:如果你的网站域名更改了,必须在数据库中将所有的图片链接更新到新域名,否则"
|
249 |
"插件会把未更改的图片再保存一次。</li></ol>"
|
250 |
|
251 |
-
#: qqworld-auto-save-images.php:
|
252 |
msgid "Notice"
|
253 |
msgstr "注意"
|
254 |
|
255 |
-
#: qqworld-auto-save-images.php:
|
256 |
msgid ""
|
257 |
"<ul><li>This plugin has a little problem that is all the image url must be "
|
258 |
"full url, it means must included \"http(s)://\", for example:<ul><li><img "
|
@@ -281,12 +297,12 @@ msgstr ""
|
|
281 |
"让图片的URL完整。<br />所以,如果你碰到这样的代码,请手动将图片地址改成完整"
|
282 |
"的,或者使用采集工具自动补完图片的URL然后从外部提交给Wordpress。"
|
283 |
|
284 |
-
#: qqworld-auto-save-images.php:
|
285 |
#, fuzzy
|
286 |
msgid "About"
|
287 |
msgstr "关于主题"
|
288 |
|
289 |
-
#: qqworld-auto-save-images.php:
|
290 |
msgid ""
|
291 |
"<p>Hi everyone, My name is Michael Wang from china.</p><p>I made this plugin "
|
292 |
"just for play in the first place, after 1 year, oneday someone sent an email "
|
@@ -300,130 +316,135 @@ msgstr ""
|
|
300 |
"后随着越来越多的人向我寻求帮助,我的插件也变得越来越强大。这就是我的插件,我"
|
301 |
"希望你们能喜欢它,谢谢。</p>"
|
302 |
|
303 |
-
#: qqworld-auto-save-images.php:
|
304 |
msgid ""
|
305 |
"Automatically keep the all remote picture to the local, and automatically "
|
306 |
"set featured image."
|
307 |
msgstr ""
|
308 |
"自动保存远程图片到本地,自动设置特色图片,并且支持机器人采集软件从外部提交。"
|
309 |
|
310 |
-
#: qqworld-auto-save-images.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
311 |
msgid "Watermark"
|
312 |
msgstr "水印"
|
313 |
|
314 |
-
#: qqworld-auto-save-images.php:
|
315 |
-
msgid "Trial"
|
316 |
-
msgstr "试用"
|
317 |
-
|
318 |
-
#: qqworld-auto-save-images.php:460
|
319 |
msgid "Scan Posts"
|
320 |
msgstr "扫描文章"
|
321 |
|
322 |
-
#: qqworld-auto-save-images.php:
|
323 |
msgid "General Options"
|
324 |
msgstr "常规选项"
|
325 |
|
326 |
-
#: qqworld-auto-save-images.php:
|
|
|
327 |
msgid "Mode"
|
328 |
msgstr "模式"
|
329 |
|
330 |
-
#: qqworld-auto-save-images.php:
|
331 |
msgid "Automatic"
|
332 |
msgstr "自动"
|
333 |
|
334 |
-
#: qqworld-auto-save-images.php:
|
335 |
msgid ""
|
336 |
"Automatically save all remote images to local media libary when you save or "
|
337 |
"publish post."
|
338 |
msgstr "在保存或发布文章时,自动将所有远程图像保存到本地媒体库。"
|
339 |
|
340 |
-
#: qqworld-auto-save-images.php:
|
341 |
msgid "Manual"
|
342 |
msgstr "手动"
|
343 |
|
344 |
-
#: qqworld-auto-save-images.php:
|
345 |
msgid ""
|
346 |
"Manually save all remote images to local media libary when you click the "
|
347 |
"button on the top of editor."
|
348 |
msgstr "当单击编辑器顶部的按钮时,手动将所有远程图像保存到本地媒体库。"
|
349 |
|
350 |
-
#: qqworld-auto-save-images.php:
|
351 |
msgid "When"
|
352 |
msgstr "什么时候"
|
353 |
|
354 |
-
#: qqworld-auto-save-images.php:
|
355 |
msgid "Save post (Publish, save draft or pedding review)."
|
356 |
msgstr "保存文章时(发布文章,保存草稿或提交审核)。"
|
357 |
|
358 |
-
#: qqworld-auto-save-images.php:
|
359 |
msgid "Publish post only."
|
360 |
msgstr "仅发布文章时。"
|
361 |
|
362 |
-
#: qqworld-auto-save-images.php:
|
363 |
msgid "Remote Publishing"
|
364 |
msgstr "远程发布"
|
365 |
|
366 |
-
#: qqworld-auto-save-images.php:
|
367 |
msgid ""
|
368 |
"Save remote images via remote publishing from IFTTT or other way using "
|
369 |
"XMLRPC. Only supports publish post."
|
370 |
msgstr "保存通过IFTTT或其他使用XMLRPC方法远程发布的远程图片。仅支持发布文章。"
|
371 |
|
372 |
-
#: qqworld-auto-save-images.php:
|
373 |
msgid "Set Featured Image"
|
374 |
msgstr "设置特色图片"
|
375 |
|
376 |
-
#: qqworld-auto-save-images.php:
|
377 |
msgid "Set first one of the remote images as featured image."
|
378 |
msgstr "设置远程图片中的第1个为特色图片。"
|
379 |
|
380 |
-
#: qqworld-auto-save-images.php:
|
381 |
msgid "Filter Options"
|
382 |
msgstr "过滤选项"
|
383 |
|
384 |
-
#: qqworld-auto-save-images.php:
|
385 |
msgid "Grabbing from Each Posts"
|
386 |
msgstr "从每篇文章抓取"
|
387 |
|
388 |
-
#: qqworld-auto-save-images.php:
|
389 |
msgid "All Images"
|
390 |
msgstr "全部图片"
|
391 |
|
392 |
-
#: qqworld-auto-save-images.php:
|
393 |
#, php-format
|
394 |
msgid "First %d image only"
|
395 |
msgid_plural "First %d images only"
|
396 |
msgstr[0] "前 %d 张图片"
|
397 |
|
398 |
-
#: qqworld-auto-save-images.php:
|
399 |
msgid "Minimum Picture Size"
|
400 |
msgstr "最小图像尺寸"
|
401 |
|
402 |
-
#: qqworld-auto-save-images.php:
|
403 |
msgid "Ignore smaller than this size picture."
|
404 |
msgstr "忽略比这个尺寸更小的图像。"
|
405 |
|
406 |
-
#: qqworld-auto-save-images.php:
|
407 |
-
#: qqworld-auto-save-images.php:
|
408 |
msgid "Width:"
|
409 |
msgstr "宽度:"
|
410 |
|
411 |
-
#: qqworld-auto-save-images.php:
|
412 |
-
#: qqworld-auto-save-images.php:
|
413 |
-
#: qqworld-auto-save-images.php:
|
414 |
msgid "(px)"
|
415 |
msgstr "(像素)"
|
416 |
|
417 |
-
#: qqworld-auto-save-images.php:
|
418 |
-
#: qqworld-auto-save-images.php:
|
419 |
msgid "Height:"
|
420 |
msgstr "高度:"
|
421 |
|
422 |
-
#: qqworld-auto-save-images.php:
|
423 |
msgid "Maximum Picture Size"
|
424 |
msgstr "最大图像尺寸"
|
425 |
|
426 |
-
#: qqworld-auto-save-images.php:
|
427 |
msgid ""
|
428 |
"Automatic reduction is greater than the size of the picture. if you want "
|
429 |
"image width less than 800px with any size height, please set width 800 and "
|
@@ -432,245 +453,299 @@ msgstr ""
|
|
432 |
"自动缩小大于该尺寸的图像。如果你想要宽度不超过800px和任意高度图片,请设置宽度"
|
433 |
"800,并设置高度为空。"
|
434 |
|
435 |
-
#: qqworld-auto-save-images.php:
|
436 |
msgid "Your server PHP version lower than 5.4, so this feature not works."
|
437 |
msgstr "服务器PHP的版本低于5.4,所以此功能无法使用。"
|
438 |
|
439 |
-
#: qqworld-auto-save-images.php:
|
440 |
msgid "Exclude Domain/Keyword"
|
441 |
msgstr "排除域名/关键词"
|
442 |
|
443 |
-
#: qqworld-auto-save-images.php:
|
444 |
msgid "Images will not be saved, if that url contains Exclude-Domain/Keyword."
|
445 |
msgstr "如果图片地址包含排除域名/关键词,则不会保存该图片。"
|
446 |
|
447 |
-
#: qqworld-auto-save-images.php:
|
448 |
msgid "Add a Domain/Keyword"
|
449 |
msgstr "添加域名/关键词"
|
450 |
|
451 |
-
#: qqworld-auto-save-images.php:
|
452 |
msgid "Format Options"
|
453 |
msgstr "格式化选项"
|
454 |
|
455 |
-
#: qqworld-auto-save-images.php:
|
456 |
msgid "Change Image Filename"
|
457 |
msgstr "更改图片文件名"
|
458 |
|
459 |
-
#: qqworld-auto-save-images.php:
|
460 |
-
msgid ""
|
461 |
-
"Recommeded choose option 2, if you choose option 3, make sure post name | "
|
462 |
-
"slug exclude Chinese or other East Asian characters. Notices: If your host "
|
463 |
-
"OS is linux, you can choose option 1 and would not cause coding mess up, "
|
464 |
-
"because of linux is using UTF8 encoding, as same as Wordpress."
|
465 |
-
msgstr ""
|
466 |
-
"推荐选择第2项,如果选择第3项,请确保文章名(Post Name | Slug)不包含中文和其"
|
467 |
-
"他东亚字符。提示:如果您的主机操作系统是Linux,可以选择第1项而不会导致乱码,"
|
468 |
-
"因为Linux的编码是UTF8,和Wordpress一样。"
|
469 |
-
|
470 |
-
#: qqworld-auto-save-images.php:587
|
471 |
msgid ""
|
472 |
"Only change remote images filename that have Non-ASCii characters (for "
|
473 |
"Windows Server)"
|
474 |
msgstr "仅修改包含非ASCii字符的远程图片文件名(用于Windows服务器)"
|
475 |
|
476 |
-
#: qqworld-auto-save-images.php:
|
477 |
msgid ""
|
478 |
"Change all remote images Filename and Alt as post name (for Linux Server)"
|
479 |
msgstr "改变所有远程图片文件名为文章名(Post Name)(用于Linux服务器)"
|
480 |
|
481 |
-
#: qqworld-auto-save-images.php:
|
482 |
msgid "Custom Filename Structure"
|
483 |
msgstr "自定文件名结构"
|
484 |
|
485 |
-
#: qqworld-auto-save-images.php:
|
486 |
msgid "Original filename or automatic changed filename."
|
487 |
msgstr "原文件名或自动更改的文件名。"
|
488 |
|
489 |
-
#: qqworld-auto-save-images.php:
|
490 |
msgid "Full date, e.g. 20150209."
|
491 |
msgstr "完整的日期,例如:20150209。"
|
492 |
|
493 |
-
#: qqworld-auto-save-images.php:
|
494 |
msgid "YYYY, e.g. 2015."
|
495 |
msgstr "YYYY,例如:2015。"
|
496 |
|
497 |
-
#: qqworld-auto-save-images.php:
|
498 |
msgid "MM, e.g. 02."
|
499 |
msgstr "MM,例如:02。"
|
500 |
|
501 |
-
#: qqworld-auto-save-images.php:
|
502 |
msgid "DD, e.g. 15."
|
503 |
msgstr "DD,例如:15。"
|
504 |
|
505 |
-
#: qqworld-auto-save-images.php:
|
506 |
msgid "HHMMSS, e.g. 182547."
|
507 |
msgstr "HHMMSS,例如:182547。"
|
508 |
|
509 |
-
#: qqworld-auto-save-images.php:
|
510 |
#, php-format
|
511 |
msgid "Unix timestamp, e.g. %s."
|
512 |
msgstr "Unix时间戳,例如:%s。"
|
513 |
|
514 |
-
#: qqworld-auto-save-images.php:
|
515 |
msgid "Change Title & Alt"
|
516 |
msgstr "更改标题和替代文本"
|
517 |
|
518 |
-
#: qqworld-auto-save-images.php:
|
519 |
msgid "Automatically add title & alt of image as post title."
|
520 |
msgstr "自动依照文章标题添加图片的标题和替代文本。"
|
521 |
|
522 |
-
#: qqworld-auto-save-images.php:
|
523 |
msgid "Keep Outside Links"
|
524 |
msgstr "保留外链"
|
525 |
|
526 |
-
#: qqworld-auto-save-images.php:
|
527 |
msgid "Keep the outside links of remote images if exist."
|
528 |
msgstr "将会保留远程图片的链接,如果存在的话。"
|
529 |
|
530 |
-
#: qqworld-auto-save-images.php:
|
531 |
msgid "Save Outside Links"
|
532 |
msgstr "保存外链"
|
533 |
|
534 |
-
#: qqworld-auto-save-images.php:
|
535 |
msgid "Save the outside links to description of attachments."
|
536 |
msgstr "保存外部链接到附件的描述。"
|
537 |
|
538 |
-
#: qqworld-auto-save-images.php:
|
539 |
msgid "Image Size"
|
540 |
msgstr "图像尺寸"
|
541 |
|
542 |
-
#: qqworld-auto-save-images.php:
|
543 |
msgid "Replace images you want size to display."
|
544 |
msgstr "替换成你想要显示的尺寸的图像。"
|
545 |
|
546 |
-
#: qqworld-auto-save-images.php:
|
547 |
#, fuzzy
|
548 |
msgid "Thumbnail"
|
549 |
msgstr ""
|
550 |
"一个数组,可以包含数个函数,每个函数返回可能的缩略图图片对象相对于时间对象的"
|
551 |
"jQuery路径。"
|
552 |
|
553 |
-
#: qqworld-auto-save-images.php:
|
554 |
msgid "Medium"
|
555 |
msgstr ""
|
556 |
|
557 |
-
#: qqworld-auto-save-images.php:
|
558 |
msgid "Large"
|
559 |
msgstr ""
|
560 |
|
561 |
-
#: qqworld-auto-save-images.php:
|
562 |
#, fuzzy
|
563 |
msgid "Full Size"
|
564 |
msgstr "链接到全尺寸图像"
|
565 |
|
566 |
-
#: qqworld-auto-save-images.php:
|
567 |
msgid "Link To"
|
568 |
msgstr "链接到"
|
569 |
|
570 |
-
#: qqworld-auto-save-images.php:
|
571 |
msgid "If you checked Keep-Outside-Links, this option will not works."
|
572 |
msgstr "如果你勾选了保留外链,本项将不起作用。"
|
573 |
|
574 |
-
#: qqworld-auto-save-images.php:
|
575 |
#, fuzzy
|
576 |
msgid "Media File"
|
577 |
msgstr "添加文件"
|
578 |
|
579 |
-
#: qqworld-auto-save-images.php:
|
580 |
#, fuzzy
|
581 |
msgid "Attachment Page"
|
582 |
msgstr "(附件)"
|
583 |
|
584 |
-
#: qqworld-auto-save-images.php:
|
585 |
msgid "None"
|
586 |
msgstr ""
|
587 |
|
588 |
-
#: qqworld-auto-save-images.php:
|
589 |
msgid "Additional Content"
|
590 |
msgstr "额外的内容"
|
591 |
|
592 |
-
#: qqworld-auto-save-images.php:
|
593 |
msgid ""
|
594 |
"This content will be displayed after the each remote images code. you can "
|
595 |
"use [Attachment ID] indicate current attachment ID."
|
596 |
msgstr "此内容将在每个远程图像编码后显示。您可以使用[附件ID]指示当前连接ID。"
|
597 |
|
598 |
-
#: qqworld-auto-save-images.php:
|
599 |
msgid "For example: [Gbuy id='[Attachment ID]']"
|
600 |
msgstr "例如:[Gbuy id='[Attachment ID]']"
|
601 |
|
602 |
-
#: qqworld-auto-save-images.php:
|
603 |
msgid ""
|
604 |
"Just for preview, The complete feature will on the Pro version. Don't worry, "
|
605 |
"other features will be free forever."
|
606 |
msgstr "仅仅用于预览,专业版将提供完整的功能。别担心,其他功能将永久免费。"
|
607 |
|
608 |
-
#: qqworld-auto-save-images.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
609 |
msgid "Enabled Watermark"
|
610 |
msgstr "启用水印"
|
611 |
|
612 |
-
#: qqworld-auto-save-images.php:
|
613 |
msgid "Use for both of remote images and the local upload."
|
614 |
msgstr "同时用于远程图片和本地上传。"
|
615 |
|
616 |
-
#: qqworld-auto-save-images.php:
|
617 |
msgid "Ignore animated GIF"
|
618 |
msgstr "忽略GIF动画"
|
619 |
|
620 |
-
#: qqworld-auto-save-images.php:
|
621 |
msgid "Filter"
|
622 |
msgstr "过滤"
|
623 |
|
624 |
-
#: qqworld-auto-save-images.php:
|
625 |
msgid "Skip images that smaller than this size."
|
626 |
msgstr "跳过比这个尺寸更小的图像。"
|
627 |
|
628 |
-
#: qqworld-auto-save-images.php:
|
629 |
msgid "Align To"
|
630 |
msgstr "对齐方式"
|
631 |
|
632 |
-
#: qqworld-auto-save-images.php:
|
633 |
msgid "Position"
|
634 |
msgstr "位置"
|
635 |
|
636 |
-
#: qqworld-auto-save-images.php:
|
637 |
msgid "You can try to drag the watermark image."
|
638 |
msgstr "你可以试着拖动水印图片。"
|
639 |
|
640 |
-
#: qqworld-auto-save-images.php:
|
641 |
-
#: qqworld-auto-save-images.php:
|
642 |
msgid "Offset"
|
643 |
msgstr "偏移"
|
644 |
|
645 |
-
#: qqworld-auto-save-images.php:
|
646 |
msgid "Opacity"
|
647 |
msgstr "不透明度"
|
648 |
|
649 |
-
#: qqworld-auto-save-images.php:
|
650 |
msgid "Upload Watermark Image"
|
651 |
msgstr "上传水印图片"
|
652 |
|
653 |
-
#: qqworld-auto-save-images.php:
|
654 |
msgid "Insert a Watermark Image"
|
655 |
msgstr "插入水印图片"
|
656 |
|
657 |
-
#: qqworld-auto-save-images.php:
|
658 |
msgid "Default Watermark"
|
659 |
msgstr "默认水印"
|
660 |
|
661 |
-
#: qqworld-auto-save-images.php:
|
662 |
-
msgid "Buy"
|
663 |
-
msgstr "购买"
|
664 |
-
|
665 |
-
#: qqworld-auto-save-images.php:812
|
666 |
-
msgid "Coming.. I don't know when, Who cares.."
|
667 |
-
msgstr "即将…我不知道什么时候,管它呢……"
|
668 |
-
|
669 |
-
#: qqworld-auto-save-images.php:826
|
670 |
msgid "Select post types"
|
671 |
msgstr "选择文章类型"
|
672 |
|
673 |
-
#: qqworld-auto-save-images.php:
|
674 |
msgid ""
|
675 |
"If you have too many posts to be scan, sometimes in process looks like "
|
676 |
"stopping, but it may be fake. please be patient."
|
@@ -678,20 +753,20 @@ msgstr ""
|
|
678 |
"如果有太多文章需要扫描,有时候在扫描过程中看起来像是停止了,但可能是假停止,"
|
679 |
"请耐心等待。"
|
680 |
|
681 |
-
#: qqworld-auto-save-images.php:
|
682 |
#, fuzzy
|
683 |
msgid "Categories"
|
684 |
msgstr "%s分类"
|
685 |
|
686 |
-
#: qqworld-auto-save-images.php:
|
687 |
msgid "Default empty to scan all categories."
|
688 |
msgstr "默认留空扫描所有分类。"
|
689 |
|
690 |
-
#: qqworld-auto-save-images.php:
|
691 |
msgid "Scope of Post ID"
|
692 |
msgstr "文章ID范围"
|
693 |
|
694 |
-
#: qqworld-auto-save-images.php:
|
695 |
msgid ""
|
696 |
"Default empty for scan all posts ID. If you want to scan posts ID from 50 to "
|
697 |
"100. please type '50' and '100' or '100' and '50', The order in which two "
|
@@ -702,12 +777,12 @@ msgstr ""
|
|
702 |
"者'100'和'50',两个数字的顺序可以颠倒。如果你只输入了1个数字,则系统只会扫描"
|
703 |
"该ID。"
|
704 |
|
705 |
-
#: qqworld-auto-save-images.php:
|
706 |
#, php-format
|
707 |
msgid "From %1$s to %2$s"
|
708 |
msgstr "从 %1$s 到 %2$s"
|
709 |
|
710 |
-
#: qqworld-auto-save-images.php:
|
711 |
msgid ""
|
712 |
"Default scan all posts. If you want to scan 50-150 posts, please type '50' "
|
713 |
"in the textfield and select '100'."
|
@@ -715,68 +790,68 @@ msgstr ""
|
|
715 |
"默认扫秒全部文章,如果想扫描50-150篇文章,请在文本框中输入“50”并在下拉菜单中"
|
716 |
"选择“100”。"
|
717 |
|
718 |
-
#: qqworld-auto-save-images.php:
|
719 |
#, php-format
|
720 |
msgid "Start from %s to Scan"
|
721 |
msgstr "从 %s 开始扫描"
|
722 |
|
723 |
-
#: qqworld-auto-save-images.php:
|
724 |
#, fuzzy
|
725 |
msgid "All"
|
726 |
msgstr "所有"
|
727 |
|
728 |
-
#: qqworld-auto-save-images.php:
|
729 |
#, fuzzy
|
730 |
msgid "Posts"
|
731 |
msgstr "热门文章"
|
732 |
|
733 |
-
#: qqworld-auto-save-images.php:
|
734 |
msgid "Any"
|
735 |
msgstr "任意"
|
736 |
|
737 |
-
#: qqworld-auto-save-images.php:
|
738 |
msgid "Order By"
|
739 |
msgstr "排序依据"
|
740 |
|
741 |
-
#: qqworld-auto-save-images.php:
|
742 |
#, fuzzy
|
743 |
msgid "Author"
|
744 |
msgstr "名称"
|
745 |
|
746 |
-
#: qqworld-auto-save-images.php:
|
747 |
#, fuzzy
|
748 |
msgid "Date"
|
749 |
msgstr "日期"
|
750 |
|
751 |
-
#: qqworld-auto-save-images.php:
|
752 |
#, fuzzy
|
753 |
msgid "Last Modified"
|
754 |
msgstr "最后回复"
|
755 |
|
756 |
-
#: qqworld-auto-save-images.php:
|
757 |
msgid "Comment Count"
|
758 |
msgstr "评论数"
|
759 |
|
760 |
-
#: qqworld-auto-save-images.php:
|
761 |
#, fuzzy
|
762 |
msgid "Order"
|
763 |
msgstr "顺序"
|
764 |
|
765 |
-
#: qqworld-auto-save-images.php:
|
766 |
msgid "Speed"
|
767 |
msgstr "速度"
|
768 |
|
769 |
-
#: qqworld-auto-save-images.php:
|
770 |
msgid "If the server is too much stress may be appropriately reduced speed."
|
771 |
msgstr "如果服务器压力过大,可以适当调低速度。"
|
772 |
|
773 |
-
#: qqworld-auto-save-images.php:
|
774 |
msgid ""
|
775 |
"Scan posts and keep remote images in all posts to local media library. Maybe "
|
776 |
"take a long time."
|
777 |
msgstr "扫描所有的文章,将所有远程图片保存到本地,可能需要很长时间。"
|
778 |
|
779 |
-
#: qqworld-auto-save-images.php:
|
780 |
msgid ""
|
781 |
"The list displayed will show you which posts including remote images, then "
|
782 |
"you can keep them to local manually via click \"Fetch\" button."
|
@@ -784,18 +859,34 @@ msgstr ""
|
|
784 |
"显示的列表中将告诉你哪些文章包含远程图片,然后你可以通过点击“抓取”按钮手动保"
|
785 |
"存。"
|
786 |
|
787 |
-
#: qqworld-auto-save-images.php:
|
788 |
msgid "Has Missing/Undownloadable images."
|
789 |
msgstr "有 不存在/不可下载 的远程图像。"
|
790 |
|
791 |
-
#: qqworld-auto-save-images.php:
|
792 |
msgid "No remote images found."
|
793 |
msgstr "没有远程图像。"
|
794 |
|
795 |
-
#: qqworld-auto-save-images.php:
|
796 |
msgid "Original Link"
|
797 |
msgstr "原始链接"
|
798 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
799 |
#~ msgid "Grabbing from Each Post"
|
800 |
#~ msgstr "从每篇文章抓取"
|
801 |
|
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: 2015-03-25 17:50+0800\n"
|
6 |
+
"PO-Revision-Date: 2015-03-25 17:50+0800\n"
|
7 |
"Last-Translator: Michael Wang <admin@qqworld.org>\n"
|
8 |
"Language-Team: QQWorld <admin@qqworld.org>\n"
|
9 |
"Language: zh_CN\n"
|
13 |
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
|
14 |
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
|
15 |
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
|
16 |
+
"X-Generator: Poedit 1.7.5\n"
|
17 |
"X-Poedit-SourceCharset: UTF-8\n"
|
18 |
"X-Poedit-Basepath: ..\n"
|
19 |
"Plural-Forms: nplurals=1; plural=0;\n"
|
20 |
"X-Poedit-SearchPath-0: .\n"
|
21 |
|
22 |
+
#: qqworld-auto-save-images.php:50
|
23 |
msgid "Michael Wang"
|
24 |
msgstr "王晓骞"
|
25 |
|
26 |
+
#: qqworld-auto-save-images.php:127
|
27 |
msgid ""
|
28 |
"Your server PHP does not support cUrl, please remove ';' from in front of "
|
29 |
"extension=php_curl.dll in the php.ini."
|
30 |
msgstr ""
|
31 |
"你的服务器PHP不支持cUrl,请在php.ini中移除extension=php_curl.dll前面的‘;’。"
|
32 |
|
33 |
+
#: qqworld-auto-save-images.php:128
|
34 |
msgid ""
|
35 |
"Your server PHP does not support GD2, please remove ';' from in front of "
|
36 |
"extension=php_gd2.dll in the <strong>php.ini</strong>."
|
37 |
msgstr ""
|
38 |
"你的服务器PHP不支持GD2,请在php.ini中移除extension=php_gd2.dll前面的‘;’。"
|
39 |
|
40 |
+
#: qqworld-auto-save-images.php:129
|
41 |
msgid ""
|
42 |
"Your server PHP does not support fopen, please set allow_url_fopen=1 in the "
|
43 |
"php.ini."
|
44 |
msgstr "你的服务器PHP不支持fopen,请在php.ini中设置allow_url_fopen=1。"
|
45 |
|
46 |
+
#: qqworld-auto-save-images.php:165
|
47 |
msgid "No taxonomies found."
|
48 |
msgstr "没有相关分类方法。"
|
49 |
|
50 |
+
#: qqworld-auto-save-images.php:173 qqworld-auto-save-images.php:372
|
51 |
+
#: qqworld-auto-save-images.php:1162
|
52 |
msgid "All remote images have been saved."
|
53 |
msgstr "已保存所有远程图像。"
|
54 |
|
55 |
+
#: qqworld-auto-save-images.php:173 qqworld-auto-save-images.php:174
|
56 |
#, php-format
|
57 |
msgid " <a href=\"%s\">View</a>"
|
58 |
msgstr " <a href=\"%s\">查看</a>"
|
59 |
|
60 |
+
#: qqworld-auto-save-images.php:174
|
61 |
msgid "Has missing images or image which could not download."
|
62 |
msgstr "内容包含 不存在/无法下载 的图像。"
|
63 |
|
64 |
+
#: qqworld-auto-save-images.php:195
|
65 |
msgid "In Process..."
|
66 |
msgstr "正在保存……"
|
67 |
|
68 |
+
#: qqworld-auto-save-images.php:196
|
69 |
msgid "Something error, please check."
|
70 |
msgstr "出错了,请检查。"
|
71 |
|
72 |
+
#: qqworld-auto-save-images.php:218
|
73 |
msgid ""
|
74 |
"Are you sure?<br />Before you click the yes button, I recommend backup site "
|
75 |
"database."
|
76 |
msgstr "你确定吗?<br />在点击确定按钮之前,我建议你备份网站的数据库。"
|
77 |
|
78 |
+
#: qqworld-auto-save-images.php:219 qqworld-auto-save-images.php:969
|
79 |
msgid "Please select post types."
|
80 |
msgstr "请选择文章类型。"
|
81 |
|
82 |
+
#: qqworld-auto-save-images.php:220
|
83 |
msgid "May be a problem with some posts: "
|
84 |
msgstr "也许一些文章有问题:"
|
85 |
|
86 |
+
#: qqworld-auto-save-images.php:221
|
87 |
#, php-format
|
88 |
msgid "No need enter \"%s\"."
|
89 |
msgstr "不需要输入“%s”。"
|
90 |
|
91 |
+
#: qqworld-auto-save-images.php:222
|
92 |
#, php-format
|
93 |
msgid "%d post has been scanned."
|
94 |
msgstr "已扫描%d篇文章。"
|
95 |
|
96 |
+
#: qqworld-auto-save-images.php:223
|
97 |
#, php-format
|
98 |
msgid "%d posts have been scanned."
|
99 |
msgstr "已扫描%d篇文章。"
|
100 |
|
101 |
+
#: qqworld-auto-save-images.php:224
|
102 |
#, php-format
|
103 |
msgid "%d post included remote images processed."
|
104 |
msgstr "已处理%d篇包含远程图像的文章。"
|
105 |
|
106 |
+
#: qqworld-auto-save-images.php:225
|
107 |
#, php-format
|
108 |
msgid "%d posts included remote images processed."
|
109 |
msgstr "已处理%d篇包含远程图像的文章。"
|
110 |
|
111 |
+
#: qqworld-auto-save-images.php:226
|
112 |
#, php-format
|
113 |
msgid "%d post has missing images couldn't be processed."
|
114 |
msgstr "%d篇包含不存在的远程图像的文章无法处理。"
|
115 |
|
116 |
+
#: qqworld-auto-save-images.php:227
|
117 |
#, php-format
|
118 |
msgid "%d posts have missing images couldn't be processed."
|
119 |
msgstr "%d篇包含不存在的远程图像的文章无法处理。"
|
120 |
|
121 |
+
#: qqworld-auto-save-images.php:228
|
122 |
#, php-format
|
123 |
msgid "found %d post including remote images."
|
124 |
msgstr "找到%d篇包含远程图像的文章。"
|
125 |
|
126 |
+
#: qqworld-auto-save-images.php:229
|
127 |
#, php-format
|
128 |
msgid "found %d posts including remote images."
|
129 |
msgstr "找到%d篇包含远程图像的文章。"
|
130 |
|
131 |
+
#: qqworld-auto-save-images.php:230
|
132 |
#, php-format
|
133 |
msgid "And with %d post has missing images."
|
134 |
msgstr "其中有%d篇文章包含不存在的远程图像。"
|
135 |
|
136 |
+
#: qqworld-auto-save-images.php:231
|
137 |
#, php-format
|
138 |
msgid "And with %d posts have missing images."
|
139 |
msgstr "其中有%d篇文章包含不存在的远程图像。"
|
140 |
|
141 |
+
#: qqworld-auto-save-images.php:232
|
142 |
msgid "No posts processed."
|
143 |
msgstr "未处理任何文章。"
|
144 |
|
145 |
+
#: qqworld-auto-save-images.php:233
|
146 |
msgid "No post has remote images found."
|
147 |
msgstr "没有文章包含远程图像。"
|
148 |
|
149 |
+
#: qqworld-auto-save-images.php:234
|
150 |
msgid "No posts found."
|
151 |
msgstr "未找到任何文章。"
|
152 |
|
153 |
+
#: qqworld-auto-save-images.php:235
|
154 |
msgid "All done."
|
155 |
msgstr "全部完成。"
|
156 |
|
157 |
+
#: qqworld-auto-save-images.php:236
|
158 |
#, fuzzy
|
159 |
msgid "Yes"
|
160 |
msgstr "是"
|
161 |
|
162 |
+
#: qqworld-auto-save-images.php:237 qqworld-auto-save-images.php:632
|
163 |
msgid "No"
|
164 |
msgstr ""
|
165 |
|
166 |
+
#: qqworld-auto-save-images.php:238
|
167 |
msgid "Scanning..."
|
168 |
msgstr "扫描中……"
|
169 |
|
170 |
+
#: qqworld-auto-save-images.php:239
|
171 |
msgid "Listing..."
|
172 |
msgstr "显示列表中……"
|
173 |
|
174 |
+
#: qqworld-auto-save-images.php:240 qqworld-auto-save-images.php:1011
|
175 |
#, fuzzy
|
176 |
msgid "ID"
|
177 |
msgstr "博客ID"
|
178 |
|
179 |
+
#: qqworld-auto-save-images.php:241
|
180 |
msgid "Post Type"
|
181 |
msgstr "文章类型"
|
182 |
|
183 |
+
#: qqworld-auto-save-images.php:242 qqworld-auto-save-images.php:1013
|
184 |
#, fuzzy
|
185 |
msgid "Title"
|
186 |
msgstr "标题"
|
187 |
|
188 |
+
#: qqworld-auto-save-images.php:243 qqworld-auto-save-images.php:991
|
189 |
#, fuzzy
|
190 |
msgid "Status"
|
191 |
msgstr "状态"
|
192 |
|
193 |
+
#: qqworld-auto-save-images.php:244
|
194 |
msgid "Control"
|
195 |
msgstr "控制"
|
196 |
|
197 |
+
#: qqworld-auto-save-images.php:245
|
198 |
#, fuzzy
|
199 |
msgid "Done"
|
200 |
msgstr "全部完成。"
|
201 |
|
202 |
+
#: qqworld-auto-save-images.php:246 qqworld-auto-save-images.php:614
|
203 |
#, fuzzy
|
204 |
msgid "Delete"
|
205 |
msgstr "删除"
|
206 |
|
207 |
+
#: qqworld-auto-save-images.php:269
|
208 |
+
msgid "Congratulation! FTP successfully connected."
|
209 |
+
msgstr "恭喜!成功连接FTP。"
|
210 |
+
|
211 |
+
#: qqworld-auto-save-images.php:271
|
212 |
+
msgid "Failed to change ftp directory, Did dirctory not exist?"
|
213 |
+
msgstr "切换FTP目录失败,目录不存在?"
|
214 |
+
|
215 |
+
#: qqworld-auto-save-images.php:274
|
216 |
+
msgid "Whoops, FTP logon has failed!"
|
217 |
+
msgstr "哎呀,登录FTP失败。"
|
218 |
+
|
219 |
+
#: qqworld-auto-save-images.php:277
|
220 |
+
msgid "Whoops, FTP connection has failed!"
|
221 |
+
msgstr "哎呀,连接FTP失败。"
|
222 |
+
|
223 |
+
#: qqworld-auto-save-images.php:372 qqworld-auto-save-images.php:406
|
224 |
msgid "Has missing images."
|
225 |
msgstr "有不存在的远程图像。"
|
226 |
|
227 |
+
#: qqworld-auto-save-images.php:406
|
228 |
msgid "Normal"
|
229 |
msgstr "正常"
|
230 |
|
231 |
+
#: qqworld-auto-save-images.php:407
|
232 |
msgid "Fetch"
|
233 |
msgstr "抓取"
|
234 |
|
235 |
+
#: qqworld-auto-save-images.php:449
|
236 |
msgid "Save Remote Images"
|
237 |
msgstr "保存远程图片"
|
238 |
|
239 |
+
#: qqworld-auto-save-images.php:460 qqworld-auto-save-images.php:503
|
240 |
#, fuzzy
|
241 |
msgid "Settings"
|
242 |
msgstr "光箱选项"
|
243 |
|
244 |
+
#: qqworld-auto-save-images.php:468
|
245 |
msgid "Auto Save Images"
|
246 |
msgstr "自动保存图片"
|
247 |
|
248 |
+
#: qqworld-auto-save-images.php:470 qqworld-auto-save-images.php:497
|
249 |
msgid "QQWorld Auto Save Images"
|
250 |
msgstr "QQWorld自动保存图片"
|
251 |
|
252 |
+
#: qqworld-auto-save-images.php:479
|
253 |
msgid "Installation"
|
254 |
msgstr "安装说明"
|
255 |
|
256 |
+
#: qqworld-auto-save-images.php:480
|
257 |
msgid ""
|
258 |
"<ol><li>Make sure the server configuration <strong>allow_url_fopen=1</"
|
259 |
"strong> in php.ini.</li><li>Warning: If your website domain has been "
|
264 |
"告:如果你的网站域名更改了,必须在数据库中将所有的图片链接更新到新域名,否则"
|
265 |
"插件会把未更改的图片再保存一次。</li></ol>"
|
266 |
|
267 |
+
#: qqworld-auto-save-images.php:484
|
268 |
msgid "Notice"
|
269 |
msgstr "注意"
|
270 |
|
271 |
+
#: qqworld-auto-save-images.php:485
|
272 |
msgid ""
|
273 |
"<ul><li>This plugin has a little problem that is all the image url must be "
|
274 |
"full url, it means must included \"http(s)://\", for example:<ul><li><img "
|
297 |
"让图片的URL完整。<br />所以,如果你碰到这样的代码,请手动将图片地址改成完整"
|
298 |
"的,或者使用采集工具自动补完图片的URL然后从外部提交给Wordpress。"
|
299 |
|
300 |
+
#: qqworld-auto-save-images.php:489
|
301 |
#, fuzzy
|
302 |
msgid "About"
|
303 |
msgstr "关于主题"
|
304 |
|
305 |
+
#: qqworld-auto-save-images.php:490
|
306 |
msgid ""
|
307 |
"<p>Hi everyone, My name is Michael Wang from china.</p><p>I made this plugin "
|
308 |
"just for play in the first place, after 1 year, oneday someone sent an email "
|
316 |
"后随着越来越多的人向我寻求帮助,我的插件也变得越来越强大。这就是我的插件,我"
|
317 |
"希望你们能喜欢它,谢谢。</p>"
|
318 |
|
319 |
+
#: qqworld-auto-save-images.php:498
|
320 |
msgid ""
|
321 |
"Automatically keep the all remote picture to the local, and automatically "
|
322 |
"set featured image."
|
323 |
msgstr ""
|
324 |
"自动保存远程图片到本地,自动设置特色图片,并且支持机器人采集软件从外部提交。"
|
325 |
|
326 |
+
#: qqworld-auto-save-images.php:504
|
327 |
+
msgid "Optimization"
|
328 |
+
msgstr "优化"
|
329 |
+
|
330 |
+
#: qqworld-auto-save-images.php:504 qqworld-auto-save-images.php:505
|
331 |
+
msgid "Preview"
|
332 |
+
msgstr "预览"
|
333 |
+
|
334 |
+
#: qqworld-auto-save-images.php:505
|
335 |
msgid "Watermark"
|
336 |
msgstr "水印"
|
337 |
|
338 |
+
#: qqworld-auto-save-images.php:506
|
|
|
|
|
|
|
|
|
339 |
msgid "Scan Posts"
|
340 |
msgstr "扫描文章"
|
341 |
|
342 |
+
#: qqworld-auto-save-images.php:509
|
343 |
msgid "General Options"
|
344 |
msgstr "常规选项"
|
345 |
|
346 |
+
#: qqworld-auto-save-images.php:513 qqworld-auto-save-images.php:515
|
347 |
+
#: qqworld-auto-save-images.php:749 qqworld-auto-save-images.php:751
|
348 |
msgid "Mode"
|
349 |
msgstr "模式"
|
350 |
|
351 |
+
#: qqworld-auto-save-images.php:518 qqworld-auto-save-images.php:1049
|
352 |
msgid "Automatic"
|
353 |
msgstr "自动"
|
354 |
|
355 |
+
#: qqworld-auto-save-images.php:519
|
356 |
msgid ""
|
357 |
"Automatically save all remote images to local media libary when you save or "
|
358 |
"publish post."
|
359 |
msgstr "在保存或发布文章时,自动将所有远程图像保存到本地媒体库。"
|
360 |
|
361 |
+
#: qqworld-auto-save-images.php:522 qqworld-auto-save-images.php:1050
|
362 |
msgid "Manual"
|
363 |
msgstr "手动"
|
364 |
|
365 |
+
#: qqworld-auto-save-images.php:523
|
366 |
msgid ""
|
367 |
"Manually save all remote images to local media libary when you click the "
|
368 |
"button on the top of editor."
|
369 |
msgstr "当单击编辑器顶部的按钮时,手动将所有远程图像保存到本地媒体库。"
|
370 |
|
371 |
+
#: qqworld-auto-save-images.php:528 qqworld-auto-save-images.php:530
|
372 |
msgid "When"
|
373 |
msgstr "什么时候"
|
374 |
|
375 |
+
#: qqworld-auto-save-images.php:533
|
376 |
msgid "Save post (Publish, save draft or pedding review)."
|
377 |
msgstr "保存文章时(发布文章,保存草稿或提交审核)。"
|
378 |
|
379 |
+
#: qqworld-auto-save-images.php:537
|
380 |
msgid "Publish post only."
|
381 |
msgstr "仅发布文章时。"
|
382 |
|
383 |
+
#: qqworld-auto-save-images.php:543 qqworld-auto-save-images.php:545
|
384 |
msgid "Remote Publishing"
|
385 |
msgstr "远程发布"
|
386 |
|
387 |
+
#: qqworld-auto-save-images.php:543
|
388 |
msgid ""
|
389 |
"Save remote images via remote publishing from IFTTT or other way using "
|
390 |
"XMLRPC. Only supports publish post."
|
391 |
msgstr "保存通过IFTTT或其他使用XMLRPC方法远程发布的远程图片。仅支持发布文章。"
|
392 |
|
393 |
+
#: qqworld-auto-save-images.php:553 qqworld-auto-save-images.php:555
|
394 |
msgid "Set Featured Image"
|
395 |
msgstr "设置特色图片"
|
396 |
|
397 |
+
#: qqworld-auto-save-images.php:553
|
398 |
msgid "Set first one of the remote images as featured image."
|
399 |
msgstr "设置远程图片中的第1个为特色图片。"
|
400 |
|
401 |
+
#: qqworld-auto-save-images.php:563
|
402 |
msgid "Filter Options"
|
403 |
msgstr "过滤选项"
|
404 |
|
405 |
+
#: qqworld-auto-save-images.php:567 qqworld-auto-save-images.php:569
|
406 |
msgid "Grabbing from Each Posts"
|
407 |
msgstr "从每篇文章抓取"
|
408 |
|
409 |
+
#: qqworld-auto-save-images.php:571
|
410 |
msgid "All Images"
|
411 |
msgstr "全部图片"
|
412 |
|
413 |
+
#: qqworld-auto-save-images.php:575
|
414 |
#, php-format
|
415 |
msgid "First %d image only"
|
416 |
msgid_plural "First %d images only"
|
417 |
msgstr[0] "前 %d 张图片"
|
418 |
|
419 |
+
#: qqworld-auto-save-images.php:582 qqworld-auto-save-images.php:584
|
420 |
msgid "Minimum Picture Size"
|
421 |
msgstr "最小图像尺寸"
|
422 |
|
423 |
+
#: qqworld-auto-save-images.php:582
|
424 |
msgid "Ignore smaller than this size picture."
|
425 |
msgstr "忽略比这个尺寸更小的图像。"
|
426 |
|
427 |
+
#: qqworld-auto-save-images.php:586 qqworld-auto-save-images.php:598
|
428 |
+
#: qqworld-auto-save-images.php:849
|
429 |
msgid "Width:"
|
430 |
msgstr "宽度:"
|
431 |
|
432 |
+
#: qqworld-auto-save-images.php:586 qqworld-auto-save-images.php:589
|
433 |
+
#: qqworld-auto-save-images.php:598 qqworld-auto-save-images.php:601
|
434 |
+
#: qqworld-auto-save-images.php:849 qqworld-auto-save-images.php:852
|
435 |
msgid "(px)"
|
436 |
msgstr "(像素)"
|
437 |
|
438 |
+
#: qqworld-auto-save-images.php:589 qqworld-auto-save-images.php:601
|
439 |
+
#: qqworld-auto-save-images.php:852
|
440 |
msgid "Height:"
|
441 |
msgstr "高度:"
|
442 |
|
443 |
+
#: qqworld-auto-save-images.php:594 qqworld-auto-save-images.php:596
|
444 |
msgid "Maximum Picture Size"
|
445 |
msgstr "最大图像尺寸"
|
446 |
|
447 |
+
#: qqworld-auto-save-images.php:594
|
448 |
msgid ""
|
449 |
"Automatic reduction is greater than the size of the picture. if you want "
|
450 |
"image width less than 800px with any size height, please set width 800 and "
|
453 |
"自动缩小大于该尺寸的图像。如果你想要宽度不超过800px和任意高度图片,请设置宽度"
|
454 |
"800,并设置高度为空。"
|
455 |
|
456 |
+
#: qqworld-auto-save-images.php:594
|
457 |
msgid "Your server PHP version lower than 5.4, so this feature not works."
|
458 |
msgstr "服务器PHP的版本低于5.4,所以此功能无法使用。"
|
459 |
|
460 |
+
#: qqworld-auto-save-images.php:606 qqworld-auto-save-images.php:608
|
461 |
msgid "Exclude Domain/Keyword"
|
462 |
msgstr "排除域名/关键词"
|
463 |
|
464 |
+
#: qqworld-auto-save-images.php:606
|
465 |
msgid "Images will not be saved, if that url contains Exclude-Domain/Keyword."
|
466 |
msgstr "如果图片地址包含排除域名/关键词,则不会保存该图片。"
|
467 |
|
468 |
+
#: qqworld-auto-save-images.php:618
|
469 |
msgid "Add a Domain/Keyword"
|
470 |
msgstr "添加域名/关键词"
|
471 |
|
472 |
+
#: qqworld-auto-save-images.php:623
|
473 |
msgid "Format Options"
|
474 |
msgstr "格式化选项"
|
475 |
|
476 |
+
#: qqworld-auto-save-images.php:627 qqworld-auto-save-images.php:630
|
477 |
msgid "Change Image Filename"
|
478 |
msgstr "更改图片文件名"
|
479 |
|
480 |
+
#: qqworld-auto-save-images.php:633
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
481 |
msgid ""
|
482 |
"Only change remote images filename that have Non-ASCii characters (for "
|
483 |
"Windows Server)"
|
484 |
msgstr "仅修改包含非ASCii字符的远程图片文件名(用于Windows服务器)"
|
485 |
|
486 |
+
#: qqworld-auto-save-images.php:634
|
487 |
msgid ""
|
488 |
"Change all remote images Filename and Alt as post name (for Linux Server)"
|
489 |
msgstr "改变所有远程图片文件名为文章名(Post Name)(用于Linux服务器)"
|
490 |
|
491 |
+
#: qqworld-auto-save-images.php:639 qqworld-auto-save-images.php:641
|
492 |
msgid "Custom Filename Structure"
|
493 |
msgstr "自定文件名结构"
|
494 |
|
495 |
+
#: qqworld-auto-save-images.php:646
|
496 |
msgid "Original filename or automatic changed filename."
|
497 |
msgstr "原文件名或自动更改的文件名。"
|
498 |
|
499 |
+
#: qqworld-auto-save-images.php:647
|
500 |
msgid "Full date, e.g. 20150209."
|
501 |
msgstr "完整的日期,例如:20150209。"
|
502 |
|
503 |
+
#: qqworld-auto-save-images.php:648
|
504 |
msgid "YYYY, e.g. 2015."
|
505 |
msgstr "YYYY,例如:2015。"
|
506 |
|
507 |
+
#: qqworld-auto-save-images.php:649
|
508 |
msgid "MM, e.g. 02."
|
509 |
msgstr "MM,例如:02。"
|
510 |
|
511 |
+
#: qqworld-auto-save-images.php:650
|
512 |
msgid "DD, e.g. 15."
|
513 |
msgstr "DD,例如:15。"
|
514 |
|
515 |
+
#: qqworld-auto-save-images.php:651
|
516 |
msgid "HHMMSS, e.g. 182547."
|
517 |
msgstr "HHMMSS,例如:182547。"
|
518 |
|
519 |
+
#: qqworld-auto-save-images.php:652
|
520 |
#, php-format
|
521 |
msgid "Unix timestamp, e.g. %s."
|
522 |
msgstr "Unix时间戳,例如:%s。"
|
523 |
|
524 |
+
#: qqworld-auto-save-images.php:657 qqworld-auto-save-images.php:659
|
525 |
msgid "Change Title & Alt"
|
526 |
msgstr "更改标题和替代文本"
|
527 |
|
528 |
+
#: qqworld-auto-save-images.php:657
|
529 |
msgid "Automatically add title & alt of image as post title."
|
530 |
msgstr "自动依照文章标题添加图片的标题和替代文本。"
|
531 |
|
532 |
+
#: qqworld-auto-save-images.php:666 qqworld-auto-save-images.php:668
|
533 |
msgid "Keep Outside Links"
|
534 |
msgstr "保留外链"
|
535 |
|
536 |
+
#: qqworld-auto-save-images.php:666
|
537 |
msgid "Keep the outside links of remote images if exist."
|
538 |
msgstr "将会保留远程图片的链接,如果存在的话。"
|
539 |
|
540 |
+
#: qqworld-auto-save-images.php:675 qqworld-auto-save-images.php:677
|
541 |
msgid "Save Outside Links"
|
542 |
msgstr "保存外链"
|
543 |
|
544 |
+
#: qqworld-auto-save-images.php:675
|
545 |
msgid "Save the outside links to description of attachments."
|
546 |
msgstr "保存外部链接到附件的描述。"
|
547 |
|
548 |
+
#: qqworld-auto-save-images.php:684 qqworld-auto-save-images.php:686
|
549 |
msgid "Image Size"
|
550 |
msgstr "图像尺寸"
|
551 |
|
552 |
+
#: qqworld-auto-save-images.php:684
|
553 |
msgid "Replace images you want size to display."
|
554 |
msgstr "替换成你想要显示的尺寸的图像。"
|
555 |
|
556 |
+
#: qqworld-auto-save-images.php:691
|
557 |
#, fuzzy
|
558 |
msgid "Thumbnail"
|
559 |
msgstr ""
|
560 |
"一个数组,可以包含数个函数,每个函数返回可能的缩略图图片对象相对于时间对象的"
|
561 |
"jQuery路径。"
|
562 |
|
563 |
+
#: qqworld-auto-save-images.php:692
|
564 |
msgid "Medium"
|
565 |
msgstr ""
|
566 |
|
567 |
+
#: qqworld-auto-save-images.php:693
|
568 |
msgid "Large"
|
569 |
msgstr ""
|
570 |
|
571 |
+
#: qqworld-auto-save-images.php:694
|
572 |
#, fuzzy
|
573 |
msgid "Full Size"
|
574 |
msgstr "链接到全尺寸图像"
|
575 |
|
576 |
+
#: qqworld-auto-save-images.php:703 qqworld-auto-save-images.php:705
|
577 |
msgid "Link To"
|
578 |
msgstr "链接到"
|
579 |
|
580 |
+
#: qqworld-auto-save-images.php:703
|
581 |
msgid "If you checked Keep-Outside-Links, this option will not works."
|
582 |
msgstr "如果你勾选了保留外链,本项将不起作用。"
|
583 |
|
584 |
+
#: qqworld-auto-save-images.php:710
|
585 |
#, fuzzy
|
586 |
msgid "Media File"
|
587 |
msgstr "添加文件"
|
588 |
|
589 |
+
#: qqworld-auto-save-images.php:711
|
590 |
#, fuzzy
|
591 |
msgid "Attachment Page"
|
592 |
msgstr "(附件)"
|
593 |
|
594 |
+
#: qqworld-auto-save-images.php:712
|
595 |
msgid "None"
|
596 |
msgstr ""
|
597 |
|
598 |
+
#: qqworld-auto-save-images.php:721 qqworld-auto-save-images.php:723
|
599 |
msgid "Additional Content"
|
600 |
msgstr "额外的内容"
|
601 |
|
602 |
+
#: qqworld-auto-save-images.php:721
|
603 |
msgid ""
|
604 |
"This content will be displayed after the each remote images code. you can "
|
605 |
"use [Attachment ID] indicate current attachment ID."
|
606 |
msgstr "此内容将在每个远程图像编码后显示。您可以使用[附件ID]指示当前连接ID。"
|
607 |
|
608 |
+
#: qqworld-auto-save-images.php:726
|
609 |
msgid "For example: [Gbuy id='[Attachment ID]']"
|
610 |
msgstr "例如:[Gbuy id='[Attachment ID]']"
|
611 |
|
612 |
+
#: qqworld-auto-save-images.php:736 qqworld-auto-save-images.php:821
|
613 |
msgid ""
|
614 |
"Just for preview, The complete feature will on the Pro version. Don't worry, "
|
615 |
"other features will be free forever."
|
616 |
msgstr "仅仅用于预览,专业版将提供完整的功能。别担心,其他功能将永久免费。"
|
617 |
|
618 |
+
#: qqworld-auto-save-images.php:740 qqworld-auto-save-images.php:742
|
619 |
+
msgid "Enabled"
|
620 |
+
msgstr "开启"
|
621 |
+
|
622 |
+
#: qqworld-auto-save-images.php:740
|
623 |
+
msgid "Use Cookie-Free Domains to display images."
|
624 |
+
msgstr "使用免Cookie域名(Cookie-Free Domains)来显示图片。"
|
625 |
+
|
626 |
+
#: qqworld-auto-save-images.php:749
|
627 |
+
msgid ""
|
628 |
+
"If you wanna use local media library, please choose the Use-local-server."
|
629 |
+
msgstr "如果你想使用本地媒体库,请选择使用本地服务器。"
|
630 |
+
|
631 |
+
#: qqworld-auto-save-images.php:755
|
632 |
+
msgid "Use local server"
|
633 |
+
msgstr "使用本地服务器"
|
634 |
+
|
635 |
+
#: qqworld-auto-save-images.php:756
|
636 |
+
msgid "Use remote server"
|
637 |
+
msgstr "使用远程服务器"
|
638 |
+
|
639 |
+
#: qqworld-auto-save-images.php:764 qqworld-auto-save-images.php:766
|
640 |
+
msgid "Domain & Folder"
|
641 |
+
msgstr "域名 & 目录"
|
642 |
+
|
643 |
+
#: qqworld-auto-save-images.php:764
|
644 |
+
msgid "Do not end with '/'."
|
645 |
+
msgstr "结尾不要有 '/'。"
|
646 |
+
|
647 |
+
#: qqworld-auto-save-images.php:772
|
648 |
+
msgid "Host"
|
649 |
+
msgstr "主机"
|
650 |
+
|
651 |
+
#: qqworld-auto-save-images.php:773
|
652 |
+
msgid "Folder (Can be empty)"
|
653 |
+
msgstr "目录(可以为空)"
|
654 |
+
|
655 |
+
#: qqworld-auto-save-images.php:779 qqworld-auto-save-images.php:781
|
656 |
+
msgid "FTP Settings"
|
657 |
+
msgstr "FTP设置"
|
658 |
+
|
659 |
+
#: qqworld-auto-save-images.php:784
|
660 |
+
msgid "IP Address"
|
661 |
+
msgstr "IP地址"
|
662 |
+
|
663 |
+
#: qqworld-auto-save-images.php:788
|
664 |
+
msgid "Port"
|
665 |
+
msgstr "端口"
|
666 |
+
|
667 |
+
#: qqworld-auto-save-images.php:792
|
668 |
+
msgid "Username"
|
669 |
+
msgstr "用户名"
|
670 |
+
|
671 |
+
#: qqworld-auto-save-images.php:796
|
672 |
+
msgid "Password"
|
673 |
+
msgstr "密码"
|
674 |
+
|
675 |
+
#: qqworld-auto-save-images.php:800
|
676 |
+
msgid "Directory"
|
677 |
+
msgstr "目录"
|
678 |
+
|
679 |
+
#: qqworld-auto-save-images.php:804
|
680 |
+
msgid "Test FTP"
|
681 |
+
msgstr "测试FTP"
|
682 |
+
|
683 |
+
#: qqworld-auto-save-images.php:810 qqworld-auto-save-images.php:939
|
684 |
+
msgid "Buy"
|
685 |
+
msgstr "购买"
|
686 |
+
|
687 |
+
#: qqworld-auto-save-images.php:811 qqworld-auto-save-images.php:940
|
688 |
+
msgid "QQWorld Auto Save Images Pro"
|
689 |
+
msgstr "QQWorld自动保存图片专业版"
|
690 |
+
|
691 |
+
#: qqworld-auto-save-images.php:825 qqworld-auto-save-images.php:827
|
692 |
msgid "Enabled Watermark"
|
693 |
msgstr "启用水印"
|
694 |
|
695 |
+
#: qqworld-auto-save-images.php:825
|
696 |
msgid "Use for both of remote images and the local upload."
|
697 |
msgstr "同时用于远程图片和本地上传。"
|
698 |
|
699 |
+
#: qqworld-auto-save-images.php:835 qqworld-auto-save-images.php:837
|
700 |
msgid "Ignore animated GIF"
|
701 |
msgstr "忽略GIF动画"
|
702 |
|
703 |
+
#: qqworld-auto-save-images.php:845 qqworld-auto-save-images.php:847
|
704 |
msgid "Filter"
|
705 |
msgstr "过滤"
|
706 |
|
707 |
+
#: qqworld-auto-save-images.php:845
|
708 |
msgid "Skip images that smaller than this size."
|
709 |
msgstr "跳过比这个尺寸更小的图像。"
|
710 |
|
711 |
+
#: qqworld-auto-save-images.php:858
|
712 |
msgid "Align To"
|
713 |
msgstr "对齐方式"
|
714 |
|
715 |
+
#: qqworld-auto-save-images.php:880
|
716 |
msgid "Position"
|
717 |
msgstr "位置"
|
718 |
|
719 |
+
#: qqworld-auto-save-images.php:880
|
720 |
msgid "You can try to drag the watermark image."
|
721 |
msgstr "你可以试着拖动水印图片。"
|
722 |
|
723 |
+
#: qqworld-auto-save-images.php:897 qqworld-auto-save-images.php:899
|
724 |
+
#: qqworld-auto-save-images.php:978
|
725 |
msgid "Offset"
|
726 |
msgstr "偏移"
|
727 |
|
728 |
+
#: qqworld-auto-save-images.php:910 qqworld-auto-save-images.php:912
|
729 |
msgid "Opacity"
|
730 |
msgstr "不透明度"
|
731 |
|
732 |
+
#: qqworld-auto-save-images.php:920 qqworld-auto-save-images.php:922
|
733 |
msgid "Upload Watermark Image"
|
734 |
msgstr "上传水印图片"
|
735 |
|
736 |
+
#: qqworld-auto-save-images.php:924
|
737 |
msgid "Insert a Watermark Image"
|
738 |
msgstr "插入水印图片"
|
739 |
|
740 |
+
#: qqworld-auto-save-images.php:935
|
741 |
msgid "Default Watermark"
|
742 |
msgstr "默认水印"
|
743 |
|
744 |
+
#: qqworld-auto-save-images.php:954
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
745 |
msgid "Select post types"
|
746 |
msgstr "选择文章类型"
|
747 |
|
748 |
+
#: qqworld-auto-save-images.php:954
|
749 |
msgid ""
|
750 |
"If you have too many posts to be scan, sometimes in process looks like "
|
751 |
"stopping, but it may be fake. please be patient."
|
753 |
"如果有太多文章需要扫描,有时候在扫描过程中看起来像是停止了,但可能是假停止,"
|
754 |
"请耐心等待。"
|
755 |
|
756 |
+
#: qqworld-auto-save-images.php:968
|
757 |
#, fuzzy
|
758 |
msgid "Categories"
|
759 |
msgstr "%s分类"
|
760 |
|
761 |
+
#: qqworld-auto-save-images.php:968
|
762 |
msgid "Default empty to scan all categories."
|
763 |
msgstr "默认留空扫描所有分类。"
|
764 |
|
765 |
+
#: qqworld-auto-save-images.php:973
|
766 |
msgid "Scope of Post ID"
|
767 |
msgstr "文章ID范围"
|
768 |
|
769 |
+
#: qqworld-auto-save-images.php:973
|
770 |
msgid ""
|
771 |
"Default empty for scan all posts ID. If you want to scan posts ID from 50 to "
|
772 |
"100. please type '50' and '100' or '100' and '50', The order in which two "
|
777 |
"者'100'和'50',两个数字的顺序可以颠倒。如果你只输入了1个数字,则系统只会扫描"
|
778 |
"该ID。"
|
779 |
|
780 |
+
#: qqworld-auto-save-images.php:974
|
781 |
#, php-format
|
782 |
msgid "From %1$s to %2$s"
|
783 |
msgstr "从 %1$s 到 %2$s"
|
784 |
|
785 |
+
#: qqworld-auto-save-images.php:978
|
786 |
msgid ""
|
787 |
"Default scan all posts. If you want to scan 50-150 posts, please type '50' "
|
788 |
"in the textfield and select '100'."
|
790 |
"默认扫秒全部文章,如果想扫描50-150篇文章,请在文本框中输入“50”并在下拉菜单中"
|
791 |
"选择“100”。"
|
792 |
|
793 |
+
#: qqworld-auto-save-images.php:980
|
794 |
#, php-format
|
795 |
msgid "Start from %s to Scan"
|
796 |
msgstr "从 %s 开始扫描"
|
797 |
|
798 |
+
#: qqworld-auto-save-images.php:982
|
799 |
#, fuzzy
|
800 |
msgid "All"
|
801 |
msgstr "所有"
|
802 |
|
803 |
+
#: qqworld-auto-save-images.php:986
|
804 |
#, fuzzy
|
805 |
msgid "Posts"
|
806 |
msgstr "热门文章"
|
807 |
|
808 |
+
#: qqworld-auto-save-images.php:996
|
809 |
msgid "Any"
|
810 |
msgstr "任意"
|
811 |
|
812 |
+
#: qqworld-auto-save-images.php:1006
|
813 |
msgid "Order By"
|
814 |
msgstr "排序依据"
|
815 |
|
816 |
+
#: qqworld-auto-save-images.php:1012
|
817 |
#, fuzzy
|
818 |
msgid "Author"
|
819 |
msgstr "名称"
|
820 |
|
821 |
+
#: qqworld-auto-save-images.php:1014
|
822 |
#, fuzzy
|
823 |
msgid "Date"
|
824 |
msgstr "日期"
|
825 |
|
826 |
+
#: qqworld-auto-save-images.php:1015
|
827 |
#, fuzzy
|
828 |
msgid "Last Modified"
|
829 |
msgstr "最后回复"
|
830 |
|
831 |
+
#: qqworld-auto-save-images.php:1016
|
832 |
msgid "Comment Count"
|
833 |
msgstr "评论数"
|
834 |
|
835 |
+
#: qqworld-auto-save-images.php:1026
|
836 |
#, fuzzy
|
837 |
msgid "Order"
|
838 |
msgstr "顺序"
|
839 |
|
840 |
+
#: qqworld-auto-save-images.php:1036
|
841 |
msgid "Speed"
|
842 |
msgstr "速度"
|
843 |
|
844 |
+
#: qqworld-auto-save-images.php:1036
|
845 |
msgid "If the server is too much stress may be appropriately reduced speed."
|
846 |
msgstr "如果服务器压力过大,可以适当调低速度。"
|
847 |
|
848 |
+
#: qqworld-auto-save-images.php:1049
|
849 |
msgid ""
|
850 |
"Scan posts and keep remote images in all posts to local media library. Maybe "
|
851 |
"take a long time."
|
852 |
msgstr "扫描所有的文章,将所有远程图片保存到本地,可能需要很长时间。"
|
853 |
|
854 |
+
#: qqworld-auto-save-images.php:1050
|
855 |
msgid ""
|
856 |
"The list displayed will show you which posts including remote images, then "
|
857 |
"you can keep them to local manually via click \"Fetch\" button."
|
859 |
"显示的列表中将告诉你哪些文章包含远程图片,然后你可以通过点击“抓取”按钮手动保"
|
860 |
"存。"
|
861 |
|
862 |
+
#: qqworld-auto-save-images.php:1159
|
863 |
msgid "Has Missing/Undownloadable images."
|
864 |
msgstr "有 不存在/不可下载 的远程图像。"
|
865 |
|
866 |
+
#: qqworld-auto-save-images.php:1166
|
867 |
msgid "No remote images found."
|
868 |
msgstr "没有远程图像。"
|
869 |
|
870 |
+
#: qqworld-auto-save-images.php:1290
|
871 |
msgid "Original Link"
|
872 |
msgstr "原始链接"
|
873 |
|
874 |
+
#~ msgid "Trial"
|
875 |
+
#~ msgstr "试用"
|
876 |
+
|
877 |
+
#~ msgid "Coming.. I don't know when, Who cares.."
|
878 |
+
#~ msgstr "即将…我不知道什么时候,管它呢……"
|
879 |
+
|
880 |
+
#~ msgid ""
|
881 |
+
#~ "Recommeded choose option 2, if you choose option 3, make sure post name | "
|
882 |
+
#~ "slug exclude Chinese or other East Asian characters. Notices: If your "
|
883 |
+
#~ "host OS is linux, you can choose option 1 and would not cause coding mess "
|
884 |
+
#~ "up, because of linux is using UTF8 encoding, as same as Wordpress."
|
885 |
+
#~ msgstr ""
|
886 |
+
#~ "推荐选择第2项,如果选择第3项,请确保文章名(Post Name | Slug)不包含中文和"
|
887 |
+
#~ "其他东亚字符。提示:如果您的主机操作系统是Linux,可以选择第1项而不会导致乱"
|
888 |
+
#~ "码,因为Linux的编码是UTF8,和Wordpress一样。"
|
889 |
+
|
890 |
#~ msgid "Grabbing from Each Post"
|
891 |
#~ msgstr "从每篇文章抓取"
|
892 |
|
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
|
@@ -30,6 +30,16 @@ class QQWorld_auto_save_images {
|
|
30 |
var $save_outside_links;
|
31 |
var $additional_content;
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
var $watermark_enabled;
|
34 |
var $ignore_animated_gif;
|
35 |
var $filter_size;
|
@@ -57,6 +67,15 @@ class QQWorld_auto_save_images {
|
|
57 |
$this->save_outside_links = isset($this->format['save-outside-links']) ? $this->format['save-outside-links'] : 'no';
|
58 |
$this->additional_content = isset($this->format['additional-content']) ? $this->format['additional-content'] : array('before'=>'', 'after'=>'');
|
59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
$this->watermark_enabled = get_option('qqworld-auto-save-images-watermark-enabled', 'no');
|
61 |
$this->ignore_animated_gif = get_option('qqworld-auto-save-images-watermark-ignore-animated-gif', 'yes');
|
62 |
$this->filter_size = get_option('qqworld-auto-save-images-watermark-filter-size', array('width'=>300, 'height'=>300));
|
@@ -77,6 +96,8 @@ class QQWorld_auto_save_images {
|
|
77 |
}
|
78 |
if ($this->remote_publishing) add_action('xmlrpc_publish_post', array($this, 'fetch_images') );
|
79 |
|
|
|
|
|
80 |
add_action( 'wp_ajax_get_scan_list', array($this, 'get_scan_list') );
|
81 |
add_action( 'wp_ajax_nopriv_get_scan_list', array($this, 'get_scan_list') );
|
82 |
add_action( 'wp_ajax_save_remote_images_get_categories_list', array($this, 'save_remote_images_get_categories_list') );
|
@@ -104,7 +125,6 @@ class QQWorld_auto_save_images {
|
|
104 |
if (strstr($screen->id, 'qqworld-auto-save-images')) {
|
105 |
settings_errors();
|
106 |
if (!function_exists('curl_init')) add_settings_error('qqworld-auto-save-images', esc_attr('needs_php_lib'), __("Your server PHP does not support cUrl, please remove ';' from in front of extension=php_curl.dll in the php.ini.", 'qqworld_auto_save_images'), 'error' );
|
107 |
-
//if (class_exists('ZipArchive')) add_settings_error('qqworld-auto-save-images', esc_attr('needs_php_lib'), __('Your server PHP does not support ZipArchive.', 'qqworld_auto_save_images'), 'error' );
|
108 |
if (!function_exists('imagecreate')) add_settings_error('qqworld-auto-save-images', esc_attr('needs_php_lib'), __("Your server PHP does not support GD2, please remove ';' from in front of extension=php_gd2.dll in the <strong>php.ini</strong>.", 'qqworld_auto_save_images'), 'error' );
|
109 |
if (!function_exists('file_get_contents')) add_settings_error('qqworld-auto-save-images', esc_attr('needs_php_lib'), __('Your server PHP does not support fopen, please set allow_url_fopen=1 in the php.ini.', 'qqworld_auto_save_images'), 'error' );
|
110 |
settings_errors('qqworld-auto-save-images');
|
@@ -235,6 +255,31 @@ class QQWorld_auto_save_images {
|
|
235 |
}
|
236 |
}
|
237 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
238 |
public function get_scan_list() {
|
239 |
if ( !current_user_can( 'manage_options' ) ) return;
|
240 |
$args = array();
|
@@ -456,7 +501,8 @@ class QQWorld_auto_save_images {
|
|
456 |
<img src="<?php echo QQWORLD_AUTO_SAVE_IMAGES_URL; ?>images/banner-772x250.png" width="772" height="250" id="banner" />
|
457 |
<ul id="qqworld-auto-save-images-tabs">
|
458 |
<li class="current"><?php _e('Settings'); ?></li>
|
459 |
-
<li><?php _e('
|
|
|
460 |
<li><?php _e('Scan Posts', 'qqworld_auto_save_images'); ?></li>
|
461 |
</ul>
|
462 |
<div class="tab-content">
|
@@ -578,7 +624,7 @@ class QQWorld_auto_save_images {
|
|
578 |
<table class="form-table">
|
579 |
<tbody>
|
580 |
<tr valign="top">
|
581 |
-
<th scope="row"><label for="auto_change_name"><?php _e('Change Image Filename', 'qqworld_auto_save_images'); ?></label
|
582 |
<td>
|
583 |
<fieldset>
|
584 |
<legend class="screen-reader-text"><span><?php _e('Change Image Filename', 'qqworld_auto_save_images'); ?></span></legend>
|
@@ -686,6 +732,88 @@ class QQWorld_auto_save_images {
|
|
686 |
<?php do_action('qqworld-auto-save-images-general-options-form'); ?>
|
687 |
<?php submit_button(); ?>
|
688 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
689 |
</form>
|
690 |
<form action="options.php" method="post" id="watermark-form">
|
691 |
<?php settings_fields('qqworld_auto_save_images_watermark'); ?>
|
@@ -809,7 +937,7 @@ class QQWorld_auto_save_images {
|
|
809 |
</tr>
|
810 |
<tr valign="top">
|
811 |
<th scope="row"><label><?php _e('Buy', 'qqworld_auto_save_images'); ?></label></th>
|
812 |
-
<td><?php _e(
|
813 |
</tr>
|
814 |
</tbody>
|
815 |
</table>
|
@@ -939,7 +1067,9 @@ class QQWorld_auto_save_images {
|
|
939 |
'qqworld_auto_save_images_maximum_picture_size',
|
940 |
'qqworld_auto_save_images_minimum_picture_size',
|
941 |
'qqworld-auto-save-images-exclude-domain',
|
942 |
-
'qqworld-auto-save-images-format'
|
|
|
|
|
943 |
),
|
944 |
'watermark' => array(
|
945 |
'qqworld-auto-save-images-watermark-enabled',
|
@@ -1319,22 +1449,24 @@ class QQWorld_auto_save_images {
|
|
1319 |
|
1320 |
public function download_image($image_url) {
|
1321 |
$file = '';
|
|
|
1322 |
// file_get_contents
|
1323 |
if (function_exists('file_get_contents')) {
|
1324 |
$file = @file_get_contents($image_url);
|
1325 |
}
|
1326 |
-
|
1327 |
// curl
|
1328 |
if (!$file && function_exists('curl_init')) {
|
1329 |
$ch = curl_init();
|
1330 |
-
$timeout = 5;
|
1331 |
curl_setopt($ch, CURLOPT_URL, $image_url);
|
1332 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
|
|
1333 |
$file = curl_exec($ch);
|
1334 |
curl_close($ch);
|
1335 |
}
|
1336 |
-
|
1337 |
// GD
|
|
|
1338 |
if (!$img && function_exists('fsockopen')) {
|
1339 |
$type = $this->fsockopen_image_header($image_url);
|
1340 |
if ($type && in_array($type, array('image/jpeg', 'image/gif', 'image/png'))) {
|
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.13
|
7 |
Author: Michael Wang
|
8 |
Author URI: http://www.qqworld.org
|
9 |
Text Domain: qqworld_auto_save_images
|
30 |
var $save_outside_links;
|
31 |
var $additional_content;
|
32 |
|
33 |
+
var $optimize;
|
34 |
+
var $optimize_enabled;
|
35 |
+
var $optimize_mode;
|
36 |
+
var $optimize_url;
|
37 |
+
var $optimize_protocol;
|
38 |
+
var $optimize_host;
|
39 |
+
var $optimize_folder;
|
40 |
+
var $ftp;
|
41 |
+
var $ftp_connection;
|
42 |
+
|
43 |
var $watermark_enabled;
|
44 |
var $ignore_animated_gif;
|
45 |
var $filter_size;
|
67 |
$this->save_outside_links = isset($this->format['save-outside-links']) ? $this->format['save-outside-links'] : 'no';
|
68 |
$this->additional_content = isset($this->format['additional-content']) ? $this->format['additional-content'] : array('before'=>'', 'after'=>'');
|
69 |
|
70 |
+
$this->optimize = get_option('qqworld-auto-save-images-optimize', array('mode' => 'local'));
|
71 |
+
$this->optimize_enabled = isset($this->optimize['enabled']) ? $this->optimize['enabled'] : '';
|
72 |
+
$this->optimize_mode = isset($this->optimize['mode']) ? $this->optimize['mode'] : 'local';
|
73 |
+
$this->optimize_url = get_option('qqworld-auto-save-images-optimize-url');
|
74 |
+
$this->optimize_protocol = isset($this->optimize_url['protocol']) ? $this->optimize_url['protocol'] : 'http';
|
75 |
+
$this->optimize_host = isset($this->optimize_url['host']) ? $this->optimize_url['host'] : '';
|
76 |
+
$this->optimize_folder = isset($this->optimize_url['folder']) ? $this->optimize_url['folder'] : '';
|
77 |
+
$this->ftp = get_option('qqworld-auto-save-images-ftp', array('ip' => '','port' => '21','username' => '','password' => '', 'directory' => '/'));
|
78 |
+
|
79 |
$this->watermark_enabled = get_option('qqworld-auto-save-images-watermark-enabled', 'no');
|
80 |
$this->ignore_animated_gif = get_option('qqworld-auto-save-images-watermark-ignore-animated-gif', 'yes');
|
81 |
$this->filter_size = get_option('qqworld-auto-save-images-watermark-filter-size', array('width'=>300, 'height'=>300));
|
96 |
}
|
97 |
if ($this->remote_publishing) add_action('xmlrpc_publish_post', array($this, 'fetch_images') );
|
98 |
|
99 |
+
add_action( 'wp_ajax_auto_save_images_test_ftp', array($this, 'test_ftp') );
|
100 |
+
add_action( 'wp_ajax_nopriv_auto_save_images_test_ftp', array($this, 'test_ftp') );
|
101 |
add_action( 'wp_ajax_get_scan_list', array($this, 'get_scan_list') );
|
102 |
add_action( 'wp_ajax_nopriv_get_scan_list', array($this, 'get_scan_list') );
|
103 |
add_action( 'wp_ajax_save_remote_images_get_categories_list', array($this, 'save_remote_images_get_categories_list') );
|
125 |
if (strstr($screen->id, 'qqworld-auto-save-images')) {
|
126 |
settings_errors();
|
127 |
if (!function_exists('curl_init')) add_settings_error('qqworld-auto-save-images', esc_attr('needs_php_lib'), __("Your server PHP does not support cUrl, please remove ';' from in front of extension=php_curl.dll in the php.ini.", 'qqworld_auto_save_images'), 'error' );
|
|
|
128 |
if (!function_exists('imagecreate')) add_settings_error('qqworld-auto-save-images', esc_attr('needs_php_lib'), __("Your server PHP does not support GD2, please remove ';' from in front of extension=php_gd2.dll in the <strong>php.ini</strong>.", 'qqworld_auto_save_images'), 'error' );
|
129 |
if (!function_exists('file_get_contents')) add_settings_error('qqworld-auto-save-images', esc_attr('needs_php_lib'), __('Your server PHP does not support fopen, please set allow_url_fopen=1 in the php.ini.', 'qqworld_auto_save_images'), 'error' );
|
130 |
settings_errors('qqworld-auto-save-images');
|
255 |
}
|
256 |
}
|
257 |
|
258 |
+
public function test_ftp() {
|
259 |
+
$ip = $this->ftp['ip'];
|
260 |
+
$port = $this->ftp['port'];
|
261 |
+
$username = $this->ftp['username'];
|
262 |
+
$password = $this->ftp['password'];
|
263 |
+
$directory = $this->ftp['directory'];
|
264 |
+
$this->ftp_connection = ftp_connect($ip, $port);
|
265 |
+
if ($this->ftp_connection) {
|
266 |
+
if (ftp_login($this->ftp_connection, $username, $password)) {
|
267 |
+
$this->ftp_mksubdirs($this->ftp_connection, '/', $directory);
|
268 |
+
if (ftp_chdir($this->ftp_connection, $directory) ) {
|
269 |
+
$result = array( 'success' => 1, 'msg' => sprintf('<span class="green">%s</span>', __('Congratulation! FTP successfully connected.', 'qqworld_auto_save_images')) );
|
270 |
+
} else {
|
271 |
+
$result = array( 'success' => 0, 'msg' => __('Failed to change ftp directory, Did dirctory not exist?', 'qqworld_auto_save_images') );
|
272 |
+
}
|
273 |
+
} else {
|
274 |
+
$result = array( 'success' => 0, 'msg' => _e('Whoops, FTP logon has failed!', 'qqworld_auto_save_images') );
|
275 |
+
}
|
276 |
+
} else {
|
277 |
+
$result = array( 'success' => 0, 'msg' => __('Whoops, FTP connection has failed!', 'qqworld_auto_save_images') );
|
278 |
+
}
|
279 |
+
echo json_encode($result);
|
280 |
+
exit;
|
281 |
+
}
|
282 |
+
|
283 |
public function get_scan_list() {
|
284 |
if ( !current_user_can( 'manage_options' ) ) return;
|
285 |
$args = array();
|
501 |
<img src="<?php echo QQWORLD_AUTO_SAVE_IMAGES_URL; ?>images/banner-772x250.png" width="772" height="250" id="banner" />
|
502 |
<ul id="qqworld-auto-save-images-tabs">
|
503 |
<li class="current"><?php _e('Settings'); ?></li>
|
504 |
+
<li><?php _e('Optimization', 'qqworld_auto_save_images'); ?> (<?php _e('Preview', 'qqworld_auto_save_images')?>)</li>
|
505 |
+
<li><?php _e('Watermark', 'qqworld_auto_save_images'); ?> (<?php _e('Preview', 'qqworld_auto_save_images')?>)</li>
|
506 |
<li><?php _e('Scan Posts', 'qqworld_auto_save_images'); ?></li>
|
507 |
</ul>
|
508 |
<div class="tab-content">
|
624 |
<table class="form-table">
|
625 |
<tbody>
|
626 |
<tr valign="top">
|
627 |
+
<th scope="row"><label for="auto_change_name"><?php _e('Change Image Filename', 'qqworld_auto_save_images'); ?></label></th>
|
628 |
<td>
|
629 |
<fieldset>
|
630 |
<legend class="screen-reader-text"><span><?php _e('Change Image Filename', 'qqworld_auto_save_images'); ?></span></legend>
|
732 |
<?php do_action('qqworld-auto-save-images-general-options-form'); ?>
|
733 |
<?php submit_button(); ?>
|
734 |
</div>
|
735 |
+
<div class="tab-content hidden">
|
736 |
+
<div class="readme"><p><strong><?php _e("Just for preview, The complete feature will on the Pro version. Don't worry, other features will be free forever.", 'qqworld_auto_save_images') ?></strong></p></div>
|
737 |
+
<table class="form-table">
|
738 |
+
<tbody>
|
739 |
+
<tr valign="top">
|
740 |
+
<th scope="row"><label for="enabled_cookie_free_domain"><?php _e('Enabled', 'qqworld_auto_save_images'); ?></label> <span class="icon help" title="<?php _e('Use Cookie-Free Domains to display images.', 'qqworld_auto_save_images'); ?>"></span></th>
|
741 |
+
<td><fieldset>
|
742 |
+
<legend class="screen-reader-text"><span><?php _e('Enabled', 'qqworld_auto_save_images'); ?></span></legend>
|
743 |
+
<label>
|
744 |
+
<input name="qqworld-auto-save-images-optimize[enabled]" type="checkbox" id="enabled_cookie_free_domain" value="yes" <?php checked('yes', $this->optimize_enabled); ?> />
|
745 |
+
</label>
|
746 |
+
</fieldset></td>
|
747 |
+
</tr>
|
748 |
+
<tr valign="top">
|
749 |
+
<th scope="row"><label for="optimize-mode"><?php _e('Mode', 'qqworld_auto_save_images'); ?></label> <span class="icon help" title="<?php _e("If you wanna use local media library, please choose the Use-local-server.", 'qqworld_auto_save_images'); ?>"></span></th>
|
750 |
+
<td><fieldset>
|
751 |
+
<legend class="screen-reader-text"><span><?php _e('Mode', 'qqworld_auto_save_images'); ?></span></legend>
|
752 |
+
<select name="qqworld-auto-save-images-optimize[mode]" id="optimize-mode">
|
753 |
+
<?php
|
754 |
+
$linkTo = array(
|
755 |
+
'local' => __('Use local server', 'qqworld_auto_save_images'),
|
756 |
+
'remote' => __('Use remote server', 'qqworld_auto_save_images'),
|
757 |
+
);
|
758 |
+
foreach ($linkTo as $value => $title) echo '<option value="'.$value.'"'.selected($value, $this->optimize_mode, false).'>'.$title.'</option>';
|
759 |
+
?>
|
760 |
+
</select>
|
761 |
+
</fieldset></td>
|
762 |
+
</tr>
|
763 |
+
<tr valign="top">
|
764 |
+
<th scope="row"><label for="host"><?php _e('Domain & Folder', 'qqworld_auto_save_images'); ?></label> <span class="icon help" title="<?php _e("Do not end with '/'.", 'qqworld_auto_save_images'); ?>"></span></th>
|
765 |
+
<td><fieldset>
|
766 |
+
<legend class="screen-reader-text"><span><?php _e('Domain & Folder', 'qqworld_auto_save_images'); ?></span></legend>
|
767 |
+
<label>
|
768 |
+
<select id="protocol" name="qqworld-auto-save-images-optimize-url[protocol]"<?php if ($this->optimize_mode=='local') echo ' style="display: none;"'; ?>>
|
769 |
+
<option value="http"<?php selected('http', $this->optimize_protocol); ?>>http://</option>
|
770 |
+
<option value="https"<?php selected('https', $this->optimize_protocol); ?>>https://</option>
|
771 |
+
</select>
|
772 |
+
<span<?php if ($this->optimize_mode!='local') echo ' style="display: none;"'; ?>>http(s):// </span><input type="text" name="qqworld-auto-save-images-optimize-url[host]" placeholder="<?php _e('Host', 'qqworld_auto_save_images'); ?>" id="host" value="<?php echo $this->optimize_host; ?>" /><span<?php if ($this->optimize_mode!='local') echo ' style="display: none;"'; ?>> /wp-contents/uploads/2014/11/example.jpg</span>
|
773 |
+
<input type="text" id="folder" name="qqworld-auto-save-images-optimize-url[folder]" placeholder="<?php _e('Folder (Can be empty)', 'qqworld_auto_save_images'); ?>" value="<?php echo $this->optimize_folder; ?>"<?php if ($this->optimize_mode=='local') echo ' style="display: none;"'; ?> />
|
774 |
+
<span id="url_example"<?php if ($this->optimize_mode=='local') echo ' style="display: none;"'; ?>>/2014/11/example.jpg</span>
|
775 |
+
</label>
|
776 |
+
</fieldset></td>
|
777 |
+
</tr>
|
778 |
+
<tr valign="top" id="ftp-settings"<?php if ($this->optimize_mode=='local') echo ' style="display: none;"'; ?>>
|
779 |
+
<th scope="row"><label for="ftp-ip"><?php _e('FTP Settings', 'qqworld_auto_save_images'); ?></label></th>
|
780 |
+
<td><fieldset>
|
781 |
+
<legend class="screen-reader-text"><span><?php _e('FTP Settings', 'qqworld_auto_save_images'); ?></span></legend>
|
782 |
+
<table id="ftp-table">
|
783 |
+
<tr>
|
784 |
+
<td><label for="ftp-ip"><?php _e('IP Address', 'qqworld_auto_save_images'); ?></label></td>
|
785 |
+
<td><input type="text" name="qqworld-auto-save-images-ftp[ip]" id="ftp-ip" value="<?php echo $this->ftp['ip']; ?>" /></td>
|
786 |
+
</tr>
|
787 |
+
<tr>
|
788 |
+
<td><label for="ftp-port"><?php _e('Port', 'qqworld_auto_save_images'); ?></label></td>
|
789 |
+
<td><input type="text" name="qqworld-auto-save-images-ftp[port]" id="ftp-port" size="5" value="<?php echo $this->ftp['port']; ?>" /></td>
|
790 |
+
</tr>
|
791 |
+
<tr>
|
792 |
+
<td><label for="ftp-username"><?php _e('Username', 'qqworld_auto_save_images'); ?></label></td>
|
793 |
+
<td><input type="text" name="qqworld-auto-save-images-ftp[username]" id="ftp-username" value="<?php echo $this->ftp['username']; ?>" /></td>
|
794 |
+
</tr>
|
795 |
+
<tr>
|
796 |
+
<td><label for="ftp-password"><?php _e('Password', 'qqworld_auto_save_images'); ?></label></td>
|
797 |
+
<td><input type="password" name="qqworld-auto-save-images-ftp[password]" id="ftp-password" value="<?php echo $this->ftp['password']; ?>" /></td>
|
798 |
+
</tr>
|
799 |
+
<tr>
|
800 |
+
<td><label for="ftp-directory"><?php _e('Directory', 'qqworld_auto_save_images'); ?></label></td>
|
801 |
+
<td><input type="text" name="qqworld-auto-save-images-ftp[directory]" id="ftp-directory" value="<?php echo $this->ftp['directory']; ?>" /></td>
|
802 |
+
</tr>
|
803 |
+
<tr>
|
804 |
+
<td colspan="2"><input type="button" id="test-ftp" class="button" value="<?php _e('Test FTP', 'qqworld_auto_save_images'); ?>" /></td>
|
805 |
+
</tr>
|
806 |
+
</table>
|
807 |
+
</fieldset></td>
|
808 |
+
</tr>
|
809 |
+
<tr valign="top">
|
810 |
+
<th scope="row"><label><?php _e('Buy', 'qqworld_auto_save_images'); ?></label></th>
|
811 |
+
<td><a href="http://www.qqworld.org/products/qqworld-auto-save-images-pro" target="_blank"><?php _e('QQWorld Auto Save Images Pro', 'qqworld_auto_save_images'); ?></a></td>
|
812 |
+
</tr>
|
813 |
+
</tbody>
|
814 |
+
</table>
|
815 |
+
<?php submit_button(); ?>
|
816 |
+
</div>
|
817 |
</form>
|
818 |
<form action="options.php" method="post" id="watermark-form">
|
819 |
<?php settings_fields('qqworld_auto_save_images_watermark'); ?>
|
937 |
</tr>
|
938 |
<tr valign="top">
|
939 |
<th scope="row"><label><?php _e('Buy', 'qqworld_auto_save_images'); ?></label></th>
|
940 |
+
<td><a href="http://www.qqworld.org/products/qqworld-auto-save-images-pro" target="_blank"><?php _e('QQWorld Auto Save Images Pro', 'qqworld_auto_save_images'); ?></a></td>
|
941 |
</tr>
|
942 |
</tbody>
|
943 |
</table>
|
1067 |
'qqworld_auto_save_images_maximum_picture_size',
|
1068 |
'qqworld_auto_save_images_minimum_picture_size',
|
1069 |
'qqworld-auto-save-images-exclude-domain',
|
1070 |
+
'qqworld-auto-save-images-format',
|
1071 |
+
'qqworld-auto-save-images-optimize',
|
1072 |
+
'qqworld-auto-save-images-ftp'
|
1073 |
),
|
1074 |
'watermark' => array(
|
1075 |
'qqworld-auto-save-images-watermark-enabled',
|
1449 |
|
1450 |
public function download_image($image_url) {
|
1451 |
$file = '';
|
1452 |
+
|
1453 |
// file_get_contents
|
1454 |
if (function_exists('file_get_contents')) {
|
1455 |
$file = @file_get_contents($image_url);
|
1456 |
}
|
1457 |
+
|
1458 |
// curl
|
1459 |
if (!$file && function_exists('curl_init')) {
|
1460 |
$ch = curl_init();
|
|
|
1461 |
curl_setopt($ch, CURLOPT_URL, $image_url);
|
1462 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
1463 |
+
//curl_setopt($ch, CURLOPT_TIMEOUT, 5);
|
1464 |
$file = curl_exec($ch);
|
1465 |
curl_close($ch);
|
1466 |
}
|
1467 |
+
|
1468 |
// GD
|
1469 |
+
$img = @imagecreatefromstring($file);
|
1470 |
if (!$img && function_exists('fsockopen')) {
|
1471 |
$type = $this->fsockopen_image_header($image_url);
|
1472 |
if ($type && in_array($type, array('image/jpeg', 'image/gif', 'image/png'))) {
|