Version Description
Download this release
Release Info
Developer | qqworld |
Plugin | QQWorld Auto Save Images |
Version | 1.7.5 |
Comparing to | |
See all releases |
Code changes from version 1.7.4 to 1.7.5
- js/admin.js +4 -0
- js/manual.js +8 -6
- lang/qqworld_auto_save_images-zh_CN.mo +0 -0
- lang/qqworld_auto_save_images-zh_CN.po +194 -129
- qqworld-auto-save-images.php +132 -8
js/admin.js
CHANGED
@@ -462,6 +462,10 @@ QQWorld_auto_save_images.scan_posts = function() {
|
|
462 |
|
463 |
$(document).on('change', '#watermark-opacity', _this.action.set_watermark_opacity).on('keyup', '#watermark-opacity', _this.action.set_watermark_opacity);
|
464 |
|
|
|
|
|
|
|
|
|
465 |
// watermark postion
|
466 |
$(document).on('click', 'input[name="qqworld-auto-save-images-watermark-align-to"]', function() {
|
467 |
var id = $(this).attr('id'),
|
462 |
|
463 |
$(document).on('change', '#watermark-opacity', _this.action.set_watermark_opacity).on('keyup', '#watermark-opacity', _this.action.set_watermark_opacity);
|
464 |
|
465 |
+
$(document).on('click', '#for-watermark-image', function() {
|
466 |
+
$('#upload-watermark-image').click();
|
467 |
+
});
|
468 |
+
|
469 |
// watermark postion
|
470 |
$(document).on('click', 'input[name="qqworld-auto-save-images-watermark-align-to"]', function() {
|
471 |
var id = $(this).attr('id'),
|
js/manual.js
CHANGED
@@ -10,6 +10,12 @@ jQuery(function($) {
|
|
10 |
var id = tinyMCE.activeEditor.id;
|
11 |
mode = $('#'+id).is(':visible') ? 'text' : 'virtual';
|
12 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
switch (mode) {
|
14 |
case 'text':
|
15 |
$('#save-remote-images-button').data('noty', noty({
|
@@ -53,9 +59,7 @@ jQuery(function($) {
|
|
53 |
var n = noty(options);
|
54 |
if (respond.content) $('#content').val(respond.content);
|
55 |
},
|
56 |
-
error:
|
57 |
-
console.log(1);
|
58 |
-
}
|
59 |
});
|
60 |
break;
|
61 |
case 'virtual':
|
@@ -92,9 +96,7 @@ jQuery(function($) {
|
|
92 |
});
|
93 |
if (respond.content) tinyMCE.activeEditor.setContent(respond.content);
|
94 |
},
|
95 |
-
error:
|
96 |
-
console.log(1);
|
97 |
-
}
|
98 |
});
|
99 |
break;
|
100 |
}
|
10 |
var id = tinyMCE.activeEditor.id;
|
11 |
mode = $('#'+id).is(':visible') ? 'text' : 'virtual';
|
12 |
}
|
13 |
+
var catch_error = function(XMLHttpRequest, textStatus, errorThrown) {
|
14 |
+
console.log('XMLHttpRequest:');
|
15 |
+
console.log(XMLHttpRequest);
|
16 |
+
console.log('textStatus: ' + textStatus);
|
17 |
+
console.log('errorThrown: ' + errorThrown);
|
18 |
+
};
|
19 |
switch (mode) {
|
20 |
case 'text':
|
21 |
$('#save-remote-images-button').data('noty', noty({
|
59 |
var n = noty(options);
|
60 |
if (respond.content) $('#content').val(respond.content);
|
61 |
},
|
62 |
+
error: catch_error
|
|
|
|
|
63 |
});
|
64 |
break;
|
65 |
case 'virtual':
|
96 |
});
|
97 |
if (respond.content) tinyMCE.activeEditor.setContent(respond.content);
|
98 |
},
|
99 |
+
error: catch_error
|
|
|
|
|
100 |
});
|
101 |
break;
|
102 |
}
|
lang/qqworld_auto_save_images-zh_CN.mo
CHANGED
Binary file
|
lang/qqworld_auto_save_images-zh_CN.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: QQworld Auto Save Images\n"
|
4 |
"Report-Msgid-Bugs-To: http://www.qqworld.org\n"
|
5 |
-
"POT-Creation-Date: 2014-10-
|
6 |
-
"PO-Revision-Date: 2014-10-
|
7 |
"Last-Translator: Michael Wang <admin@qqworld.org>\n"
|
8 |
"Language-Team: QQWorld <admin@qqworld.org>\n"
|
9 |
"Language: zh_CN\n"
|
@@ -21,15 +21,16 @@ 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 "Notice:"
|
30 |
-
msgstr ""
|
31 |
|
32 |
-
#: qqworld-auto-save-images.php:
|
33 |
#, php-format
|
34 |
msgid ""
|
35 |
"Ever since the QQWorld-Auto-Save-Image v1.7.2 released, the plugin core had "
|
@@ -38,260 +39,271 @@ msgstr ""
|
|
38 |
"自动 QQWorld自动保存图片 v1.7.2发布,插件核心有较大更新,请重新<a href=\"%s"
|
39 |
"\">设置</a>。"
|
40 |
|
41 |
-
#: qqworld-auto-save-images.php:
|
42 |
msgid "No taxonomies found."
|
43 |
msgstr "没有相关分类方法。"
|
44 |
|
45 |
-
#: qqworld-auto-save-images.php:
|
46 |
-
#: qqworld-auto-save-images.php:
|
47 |
msgid "All remote images have been saved."
|
48 |
msgstr "已保存所有远程图像。"
|
49 |
|
50 |
-
#: qqworld-auto-save-images.php:
|
51 |
#, php-format
|
52 |
msgid " <a href=\"%s\">View</a>"
|
53 |
msgstr " <a href=\"%s\">查看</a>"
|
54 |
|
55 |
-
#: qqworld-auto-save-images.php:
|
56 |
msgid "Has missing images or image which could not download."
|
57 |
msgstr "内容包含 不存在/无法下载 的图像。"
|
58 |
|
59 |
-
#: qqworld-auto-save-images.php:
|
60 |
msgid "In Process..."
|
61 |
msgstr "正在保存……"
|
62 |
|
63 |
-
#: qqworld-auto-save-images.php:
|
64 |
msgid ""
|
65 |
"Are you sure?<br />Before you click the yes button, I recommend backup site "
|
66 |
"database."
|
67 |
msgstr "你确定吗?<br />在点击确定按钮之前,我建议你备份网站的数据库。"
|
68 |
|
69 |
-
#: qqworld-auto-save-images.php:
|
70 |
msgid "Please select post types."
|
71 |
msgstr "请选择文章类型。"
|
72 |
|
73 |
-
#: qqworld-auto-save-images.php:
|
74 |
msgid "May be a problem with some posts: "
|
75 |
msgstr "也许一些文章有问题:"
|
76 |
|
77 |
-
#: qqworld-auto-save-images.php:
|
78 |
#, php-format
|
79 |
msgid "%d post has been scanned."
|
80 |
msgstr "已扫描%d篇文章。"
|
81 |
|
82 |
-
#: qqworld-auto-save-images.php:
|
83 |
#, php-format
|
84 |
msgid "%d posts have been scanned."
|
85 |
msgstr "已扫描%d篇文章。"
|
86 |
|
87 |
-
#: qqworld-auto-save-images.php:
|
88 |
#, php-format
|
89 |
msgid "%d post included remote images processed."
|
90 |
msgstr "已处理%d篇包含远程图像的文章。"
|
91 |
|
92 |
-
#: qqworld-auto-save-images.php:
|
93 |
#, php-format
|
94 |
msgid "%d posts included remote images processed."
|
95 |
msgstr "已处理%d篇包含远程图像的文章。"
|
96 |
|
97 |
-
#: qqworld-auto-save-images.php:
|
98 |
#, php-format
|
99 |
msgid "%d post has missing images couldn't be processed."
|
100 |
msgstr "%d篇包含不存在的远程图像的文章无法处理。"
|
101 |
|
102 |
-
#: qqworld-auto-save-images.php:
|
103 |
#, php-format
|
104 |
msgid "%d posts have missing images couldn't be processed."
|
105 |
msgstr "%d篇包含不存在的远程图像的文章无法处理。"
|
106 |
|
107 |
-
#: qqworld-auto-save-images.php:
|
108 |
#, php-format
|
109 |
msgid "found %d post including remote images."
|
110 |
msgstr "找到%d篇包含远程图像的文章。"
|
111 |
|
112 |
-
#: qqworld-auto-save-images.php:
|
113 |
#, php-format
|
114 |
msgid "found %d posts including remote images."
|
115 |
msgstr "找到%d篇包含远程图像的文章。"
|
116 |
|
117 |
-
#: qqworld-auto-save-images.php:
|
118 |
#, php-format
|
119 |
msgid "And with %d post has missing images."
|
120 |
msgstr "其中有%d篇文章包含不存在的远程图像。"
|
121 |
|
122 |
-
#: qqworld-auto-save-images.php:
|
123 |
#, php-format
|
124 |
msgid "And with %d posts have missing images."
|
125 |
msgstr "其中有%d篇文章包含不存在的远程图像。"
|
126 |
|
127 |
-
#: qqworld-auto-save-images.php:
|
128 |
msgid "No posts processed."
|
129 |
msgstr "未处理任何文章。"
|
130 |
|
131 |
-
#: qqworld-auto-save-images.php:
|
132 |
msgid "No post has remote images found."
|
133 |
msgstr "没有文章包含远程图像。"
|
134 |
|
135 |
-
#: qqworld-auto-save-images.php:
|
136 |
msgid "No posts found."
|
137 |
msgstr "未找到任何文章。"
|
138 |
|
139 |
-
#: qqworld-auto-save-images.php:
|
140 |
msgid "All done."
|
141 |
msgstr "全部完成。"
|
142 |
|
143 |
-
#: qqworld-auto-save-images.php:
|
|
|
144 |
msgid "Yes"
|
145 |
-
msgstr ""
|
146 |
|
147 |
-
#: qqworld-auto-save-images.php:
|
148 |
msgid "No"
|
149 |
msgstr ""
|
150 |
|
151 |
-
#: qqworld-auto-save-images.php:
|
152 |
msgid "Scanning..."
|
153 |
msgstr "扫描中……"
|
154 |
|
155 |
-
#: qqworld-auto-save-images.php:
|
156 |
msgid "Listing..."
|
157 |
msgstr "显示列表中……"
|
158 |
|
159 |
-
#: qqworld-auto-save-images.php:
|
|
|
160 |
msgid "ID"
|
161 |
-
msgstr ""
|
162 |
|
163 |
-
#: qqworld-auto-save-images.php:
|
164 |
msgid "Post Type"
|
165 |
msgstr "文章类型"
|
166 |
|
167 |
-
#: qqworld-auto-save-images.php:
|
|
|
168 |
msgid "Title"
|
169 |
-
msgstr ""
|
170 |
|
171 |
-
#: qqworld-auto-save-images.php:
|
|
|
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 |
msgid "Done"
|
181 |
-
msgstr ""
|
182 |
|
183 |
-
#: qqworld-auto-save-images.php:
|
|
|
184 |
msgid "Delete"
|
185 |
-
msgstr ""
|
186 |
|
187 |
-
#: qqworld-auto-save-images.php:
|
188 |
msgid "Has missing images."
|
189 |
msgstr "有不存在的远程图像。"
|
190 |
|
191 |
-
#: qqworld-auto-save-images.php:
|
192 |
msgid "Normal"
|
193 |
msgstr "正常"
|
194 |
|
195 |
-
#: qqworld-auto-save-images.php:
|
196 |
msgid "Fetch"
|
197 |
msgstr "抓取"
|
198 |
|
199 |
-
#: qqworld-auto-save-images.php:
|
200 |
msgid "Save Remote Images"
|
201 |
msgstr "保存远程图片"
|
202 |
|
203 |
-
#: qqworld-auto-save-images.php:
|
|
|
204 |
msgid "Settings"
|
205 |
-
msgstr ""
|
206 |
|
207 |
-
#: qqworld-auto-save-images.php:
|
208 |
msgid "Auto Save Images"
|
209 |
msgstr "自动保存图片"
|
210 |
|
211 |
-
#: qqworld-auto-save-images.php:
|
212 |
msgid "QQWorld Auto Save Images"
|
213 |
msgstr "QQWorld自动保存图片"
|
214 |
|
215 |
-
#: qqworld-auto-save-images.php:
|
216 |
msgid ""
|
217 |
"Automatically keep the all remote picture to the local, and automatically "
|
218 |
"set featured image."
|
219 |
msgstr ""
|
220 |
"自动保存远程图片到本地,自动设置特色图片,并且支持机器人采集软件从外部提交。"
|
221 |
|
222 |
-
#: qqworld-auto-save-images.php:
|
223 |
msgid "Watermark"
|
224 |
msgstr "水印"
|
225 |
|
226 |
-
#: qqworld-auto-save-images.php:
|
227 |
msgid "Trial"
|
228 |
msgstr "试用"
|
229 |
|
230 |
-
#: qqworld-auto-save-images.php:
|
231 |
msgid "Scan Posts"
|
232 |
msgstr "扫描文章"
|
233 |
|
234 |
-
#: qqworld-auto-save-images.php:
|
|
|
|
|
|
|
|
|
235 |
msgid "Mode"
|
236 |
msgstr "模式"
|
237 |
|
238 |
-
#: qqworld-auto-save-images.php:
|
239 |
-
#: qqworld-auto-save-images.php:
|
240 |
-
#: qqworld-auto-save-images.php:
|
241 |
msgid "Automatic"
|
242 |
msgstr "自动"
|
243 |
|
244 |
-
#: qqworld-auto-save-images.php:
|
245 |
msgid ""
|
246 |
"Automatically save all remote images to local media libary when you save or "
|
247 |
"publish post."
|
248 |
msgstr "在保存或发布文章时,自动将所有远程图像保存到本地媒体库。"
|
249 |
|
250 |
-
#: qqworld-auto-save-images.php:
|
251 |
msgid "Manual"
|
252 |
msgstr "手动"
|
253 |
|
254 |
-
#: qqworld-auto-save-images.php:
|
255 |
msgid ""
|
256 |
"Manually save all remote images to local media libary when you click the "
|
257 |
"button on the top of editor."
|
258 |
msgstr "当单击编辑器顶部的按钮时,手动将所有远程图像保存到本地媒体库。"
|
259 |
|
260 |
-
#: qqworld-auto-save-images.php:
|
261 |
msgid "When"
|
262 |
msgstr "什么时候"
|
263 |
|
264 |
-
#: qqworld-auto-save-images.php:
|
265 |
msgid "Save post (Publish, save draft or pedding review)."
|
266 |
msgstr "保存文章时(发布文章,保存草稿或提交审核)。"
|
267 |
|
268 |
-
#: qqworld-auto-save-images.php:
|
269 |
msgid "Publish post only."
|
270 |
msgstr "仅发布文章时。"
|
271 |
|
272 |
-
#: qqworld-auto-save-images.php:
|
273 |
msgid "Remote Publishing"
|
274 |
msgstr "远程发布"
|
275 |
|
276 |
-
#: qqworld-auto-save-images.php:
|
277 |
msgid ""
|
278 |
"Save remote images via remote publishing from IFTTT or other way using "
|
279 |
"XMLRPC."
|
280 |
msgstr "保存通过IFTTT或其他使用XMLRPC方法远程发布的远程图片。"
|
281 |
|
282 |
-
#: qqworld-auto-save-images.php:
|
283 |
msgid "Set Featured Image"
|
284 |
msgstr "设置特色图片"
|
285 |
|
286 |
-
#: qqworld-auto-save-images.php:
|
287 |
msgid "Set first one of the remote images as featured image."
|
288 |
msgstr "设置远程图片中的第1个为特色图片。"
|
289 |
|
290 |
-
#: qqworld-auto-save-images.php:
|
291 |
msgid "Change Image Filename"
|
292 |
msgstr "更改图片文件名"
|
293 |
|
294 |
-
#: qqworld-auto-save-images.php:
|
295 |
msgid ""
|
296 |
"If you checked this, when the remote image filename have Chinese or other "
|
297 |
"East Asian characters. system will automatically change image filename. I "
|
@@ -300,98 +312,148 @@ msgstr ""
|
|
300 |
"如果勾选了此项,当远程图片名包含中文或其他东亚字符的时候,将自动更改图片文件"
|
301 |
"名。建议开启。"
|
302 |
|
303 |
-
#: qqworld-auto-save-images.php:
|
304 |
msgid "Exclude Domain/Keyword"
|
305 |
msgstr "排除域名/关键词"
|
306 |
|
307 |
-
#: qqworld-auto-save-images.php:
|
308 |
msgid "Images will not be saved, if that url contains Exclude-Domain/Keyword."
|
309 |
msgstr "如果图片地址包含排除域名/关键词,则不会保存该图片。"
|
310 |
|
311 |
-
#: qqworld-auto-save-images.php:
|
312 |
msgid "Add a Domain/Keyword"
|
313 |
msgstr "添加域名/关键词"
|
314 |
|
315 |
-
#: qqworld-auto-save-images.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
316 |
msgid ""
|
317 |
"Just for preview, The complete feature will on the Pro version. Don't worry, "
|
318 |
"other features will be free forever."
|
319 |
msgstr "仅仅用于预览,专业版将提供完整的功能。别担心,其他功能将永久免费。"
|
320 |
|
321 |
-
#: qqworld-auto-save-images.php:
|
322 |
msgid "Enabled Watermark"
|
323 |
msgstr "启用水印"
|
324 |
|
325 |
-
#: qqworld-auto-save-images.php:
|
326 |
msgid "Use for both of remote images and the local upload."
|
327 |
msgstr "同时用于远程图片和本地上传。"
|
328 |
|
329 |
-
#: qqworld-auto-save-images.php:
|
330 |
msgid "Filter"
|
331 |
msgstr "过滤"
|
332 |
|
333 |
-
#: qqworld-auto-save-images.php:
|
334 |
msgid "Skip images that smaller than this size."
|
335 |
msgstr "跳过比这个尺寸更小的图像。"
|
336 |
|
337 |
-
#: qqworld-auto-save-images.php:
|
338 |
msgid "Width:"
|
339 |
msgstr "宽度:"
|
340 |
|
341 |
-
#: qqworld-auto-save-images.php:
|
342 |
msgid "(px)"
|
343 |
msgstr "(像素)"
|
344 |
|
345 |
-
#: qqworld-auto-save-images.php:
|
346 |
msgid "Height:"
|
347 |
msgstr "高度:"
|
348 |
|
349 |
-
#: qqworld-auto-save-images.php:
|
350 |
msgid "Align To"
|
351 |
msgstr "对齐方式"
|
352 |
|
353 |
-
#: qqworld-auto-save-images.php:
|
354 |
msgid "Position"
|
355 |
msgstr "位置"
|
356 |
|
357 |
-
#: qqworld-auto-save-images.php:
|
358 |
msgid "You can try to drag the watermark image."
|
359 |
msgstr "你可以试着拖动水印图片。"
|
360 |
|
361 |
-
#: qqworld-auto-save-images.php:
|
362 |
-
#: qqworld-auto-save-images.php:
|
363 |
msgid "Offset"
|
364 |
msgstr "偏移"
|
365 |
|
366 |
-
#: qqworld-auto-save-images.php:
|
367 |
msgid "Opacity"
|
368 |
msgstr "不透明度"
|
369 |
|
370 |
-
#: qqworld-auto-save-images.php:
|
371 |
msgid "Upload Watermark Image"
|
372 |
msgstr "上传水印图片"
|
373 |
|
374 |
-
#: qqworld-auto-save-images.php:
|
375 |
msgid "Insert a Watermark Image"
|
376 |
msgstr "插入水印图片"
|
377 |
|
378 |
-
#: qqworld-auto-save-images.php:
|
379 |
msgid "Default Watermark"
|
380 |
msgstr "默认水印"
|
381 |
|
382 |
-
#: qqworld-auto-save-images.php:
|
383 |
msgid "Buy"
|
384 |
msgstr "购买"
|
385 |
|
386 |
-
#: qqworld-auto-save-images.php:
|
387 |
msgid "Coming.. I don't know when, Who cares.."
|
388 |
msgstr "即将…我不知道什么时候,管它呢……"
|
389 |
|
390 |
-
#: qqworld-auto-save-images.php:
|
391 |
msgid "Select post types"
|
392 |
msgstr "选择文章类型"
|
393 |
|
394 |
-
#: qqworld-auto-save-images.php:
|
395 |
msgid ""
|
396 |
"If you have too many posts to be scan, sometimes in process looks like "
|
397 |
"stopping, but it may be fake. please be patient."
|
@@ -399,19 +461,20 @@ msgstr ""
|
|
399 |
"如果有太多文章需要扫描,有时候在扫描过程中看起来像是停止了,但可能是假停止,"
|
400 |
"请耐心等待。"
|
401 |
|
402 |
-
#: qqworld-auto-save-images.php:
|
|
|
403 |
msgid "Categories"
|
404 |
-
msgstr ""
|
405 |
|
406 |
-
#: qqworld-auto-save-images.php:
|
407 |
msgid "Default empty to scan all categories."
|
408 |
msgstr "默认留空扫描所有分类。"
|
409 |
|
410 |
-
#: qqworld-auto-save-images.php:
|
411 |
msgid "Scope of Post ID"
|
412 |
msgstr "文章ID范围"
|
413 |
|
414 |
-
#: qqworld-auto-save-images.php:
|
415 |
msgid ""
|
416 |
"Default empty for scan all posts ID. If you want to scan posts ID from 50 to "
|
417 |
"100. please type '50' and '100' or '100' and '50', The order in which two "
|
@@ -422,12 +485,12 @@ msgstr ""
|
|
422 |
"者'100'和'50',两个数字的顺序可以颠倒。如果你只输入了1个数字,则系统只会扫描"
|
423 |
"该ID。"
|
424 |
|
425 |
-
#: qqworld-auto-save-images.php:
|
426 |
#, php-format
|
427 |
msgid "From %1$s to %2$s"
|
428 |
msgstr "从 %1$s 到 %2$s"
|
429 |
|
430 |
-
#: qqworld-auto-save-images.php:
|
431 |
msgid ""
|
432 |
"Default scan all posts. If you want to scan 50-150 posts, please type '50' "
|
433 |
"in the textfield and select '100'."
|
@@ -435,62 +498,67 @@ msgstr ""
|
|
435 |
"默认扫秒全部文章,如果想扫描50-150篇文章,请在文本框中输入“50”并在下拉菜单中"
|
436 |
"选择“100”。"
|
437 |
|
438 |
-
#: qqworld-auto-save-images.php:
|
439 |
#, php-format
|
440 |
msgid "Start from %s to Scan"
|
441 |
msgstr "从 %s 开始扫描"
|
442 |
|
443 |
-
#: qqworld-auto-save-images.php:
|
|
|
444 |
msgid "All"
|
445 |
-
msgstr ""
|
446 |
|
447 |
-
#: qqworld-auto-save-images.php:
|
|
|
448 |
msgid "Posts"
|
449 |
-
msgstr ""
|
450 |
|
451 |
-
#: qqworld-auto-save-images.php:
|
452 |
msgid "Any"
|
453 |
msgstr "任意"
|
454 |
|
455 |
-
#: qqworld-auto-save-images.php:
|
456 |
msgid "Order By"
|
457 |
msgstr "排序依据"
|
458 |
|
459 |
-
#: qqworld-auto-save-images.php:
|
|
|
460 |
msgid "Author"
|
461 |
-
msgstr ""
|
462 |
|
463 |
-
#: qqworld-auto-save-images.php:
|
|
|
464 |
msgid "Date"
|
465 |
-
msgstr ""
|
466 |
|
467 |
-
#: qqworld-auto-save-images.php:
|
468 |
msgid "Last Modified"
|
469 |
msgstr ""
|
470 |
|
471 |
-
#: qqworld-auto-save-images.php:
|
472 |
msgid "Comment Count"
|
473 |
msgstr "评论数"
|
474 |
|
475 |
-
#: qqworld-auto-save-images.php:
|
|
|
476 |
msgid "Order"
|
477 |
-
msgstr ""
|
478 |
|
479 |
-
#: qqworld-auto-save-images.php:
|
480 |
msgid "Speed"
|
481 |
msgstr "速度"
|
482 |
|
483 |
-
#: qqworld-auto-save-images.php:
|
484 |
msgid "If the server is too much stress may be appropriately reduced speed."
|
485 |
msgstr "如果服务器压力过大,可以适当调低速度。"
|
486 |
|
487 |
-
#: qqworld-auto-save-images.php:
|
488 |
msgid ""
|
489 |
"Scan posts and keep remote images in all posts to local media library. Maybe "
|
490 |
"take a long time."
|
491 |
msgstr "扫描所有的文章,将所有远程图片保存到本地,可能需要很长时间。"
|
492 |
|
493 |
-
#: qqworld-auto-save-images.php:
|
494 |
msgid ""
|
495 |
"The list displayed will show you which posts including remote images, then "
|
496 |
"you can keep them to local manually via click \"Fetch\" button."
|
@@ -498,11 +566,11 @@ msgstr ""
|
|
498 |
"显示的列表中将告诉你哪些文章包含远程图片,然后你可以通过点击“抓取”按钮手动保"
|
499 |
"存。"
|
500 |
|
501 |
-
#: qqworld-auto-save-images.php:
|
502 |
msgid "Has Missing/Undownloadable images."
|
503 |
msgstr "有 不存在/不可下载 的远程图像。"
|
504 |
|
505 |
-
#: qqworld-auto-save-images.php:
|
506 |
msgid "No remote images found."
|
507 |
msgstr "没有远程图像。"
|
508 |
|
@@ -518,9 +586,6 @@ msgstr "没有远程图像。"
|
|
518 |
#~ msgid "Text"
|
519 |
#~ msgstr "文本"
|
520 |
|
521 |
-
#~ msgid "Image"
|
522 |
-
#~ msgstr "图像"
|
523 |
-
|
524 |
#, fuzzy
|
525 |
#~ msgid "Change Image File Name"
|
526 |
#~ msgstr "更改图片文件名"
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: QQworld Auto Save Images\n"
|
4 |
"Report-Msgid-Bugs-To: http://www.qqworld.org\n"
|
5 |
+
"POT-Creation-Date: 2014-10-20 20:44+0800\n"
|
6 |
+
"PO-Revision-Date: 2014-10-20 20:45+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:30
|
25 |
msgid "Michael Wang"
|
26 |
msgstr "王晓骞"
|
27 |
|
28 |
+
#: qqworld-auto-save-images.php:83
|
29 |
+
#, fuzzy
|
30 |
msgid "Notice:"
|
31 |
+
msgstr "注意,必须选择父规格名才能使其有效。"
|
32 |
|
33 |
+
#: qqworld-auto-save-images.php:84
|
34 |
#, php-format
|
35 |
msgid ""
|
36 |
"Ever since the QQWorld-Auto-Save-Image v1.7.2 released, the plugin core had "
|
39 |
"自动 QQWorld自动保存图片 v1.7.2发布,插件核心有较大更新,请重新<a href=\"%s"
|
40 |
"\">设置</a>。"
|
41 |
|
42 |
+
#: qqworld-auto-save-images.php:100
|
43 |
msgid "No taxonomies found."
|
44 |
msgstr "没有相关分类方法。"
|
45 |
|
46 |
+
#: qqworld-auto-save-images.php:108 qqworld-auto-save-images.php:281
|
47 |
+
#: qqworld-auto-save-images.php:839
|
48 |
msgid "All remote images have been saved."
|
49 |
msgstr "已保存所有远程图像。"
|
50 |
|
51 |
+
#: qqworld-auto-save-images.php:108 qqworld-auto-save-images.php:109
|
52 |
#, php-format
|
53 |
msgid " <a href=\"%s\">View</a>"
|
54 |
msgstr " <a href=\"%s\">查看</a>"
|
55 |
|
56 |
+
#: qqworld-auto-save-images.php:109
|
57 |
msgid "Has missing images or image which could not download."
|
58 |
msgstr "内容包含 不存在/无法下载 的图像。"
|
59 |
|
60 |
+
#: qqworld-auto-save-images.php:130
|
61 |
msgid "In Process..."
|
62 |
msgstr "正在保存……"
|
63 |
|
64 |
+
#: qqworld-auto-save-images.php:152
|
65 |
msgid ""
|
66 |
"Are you sure?<br />Before you click the yes button, I recommend backup site "
|
67 |
"database."
|
68 |
msgstr "你确定吗?<br />在点击确定按钮之前,我建议你备份网站的数据库。"
|
69 |
|
70 |
+
#: qqworld-auto-save-images.php:153 qqworld-auto-save-images.php:663
|
71 |
msgid "Please select post types."
|
72 |
msgstr "请选择文章类型。"
|
73 |
|
74 |
+
#: qqworld-auto-save-images.php:154
|
75 |
msgid "May be a problem with some posts: "
|
76 |
msgstr "也许一些文章有问题:"
|
77 |
|
78 |
+
#: qqworld-auto-save-images.php:155
|
79 |
#, php-format
|
80 |
msgid "%d post has been scanned."
|
81 |
msgstr "已扫描%d篇文章。"
|
82 |
|
83 |
+
#: qqworld-auto-save-images.php:156
|
84 |
#, php-format
|
85 |
msgid "%d posts have been scanned."
|
86 |
msgstr "已扫描%d篇文章。"
|
87 |
|
88 |
+
#: qqworld-auto-save-images.php:157
|
89 |
#, php-format
|
90 |
msgid "%d post included remote images processed."
|
91 |
msgstr "已处理%d篇包含远程图像的文章。"
|
92 |
|
93 |
+
#: qqworld-auto-save-images.php:158
|
94 |
#, php-format
|
95 |
msgid "%d posts included remote images processed."
|
96 |
msgstr "已处理%d篇包含远程图像的文章。"
|
97 |
|
98 |
+
#: qqworld-auto-save-images.php:159
|
99 |
#, php-format
|
100 |
msgid "%d post has missing images couldn't be processed."
|
101 |
msgstr "%d篇包含不存在的远程图像的文章无法处理。"
|
102 |
|
103 |
+
#: qqworld-auto-save-images.php:160
|
104 |
#, php-format
|
105 |
msgid "%d posts have missing images couldn't be processed."
|
106 |
msgstr "%d篇包含不存在的远程图像的文章无法处理。"
|
107 |
|
108 |
+
#: qqworld-auto-save-images.php:161
|
109 |
#, php-format
|
110 |
msgid "found %d post including remote images."
|
111 |
msgstr "找到%d篇包含远程图像的文章。"
|
112 |
|
113 |
+
#: qqworld-auto-save-images.php:162
|
114 |
#, php-format
|
115 |
msgid "found %d posts including remote images."
|
116 |
msgstr "找到%d篇包含远程图像的文章。"
|
117 |
|
118 |
+
#: qqworld-auto-save-images.php:163
|
119 |
#, php-format
|
120 |
msgid "And with %d post has missing images."
|
121 |
msgstr "其中有%d篇文章包含不存在的远程图像。"
|
122 |
|
123 |
+
#: qqworld-auto-save-images.php:164
|
124 |
#, php-format
|
125 |
msgid "And with %d posts have missing images."
|
126 |
msgstr "其中有%d篇文章包含不存在的远程图像。"
|
127 |
|
128 |
+
#: qqworld-auto-save-images.php:165
|
129 |
msgid "No posts processed."
|
130 |
msgstr "未处理任何文章。"
|
131 |
|
132 |
+
#: qqworld-auto-save-images.php:166
|
133 |
msgid "No post has remote images found."
|
134 |
msgstr "没有文章包含远程图像。"
|
135 |
|
136 |
+
#: qqworld-auto-save-images.php:167
|
137 |
msgid "No posts found."
|
138 |
msgstr "未找到任何文章。"
|
139 |
|
140 |
+
#: qqworld-auto-save-images.php:168
|
141 |
msgid "All done."
|
142 |
msgstr "全部完成。"
|
143 |
|
144 |
+
#: qqworld-auto-save-images.php:169
|
145 |
+
#, fuzzy
|
146 |
msgid "Yes"
|
147 |
+
msgstr "你确定吗?在你点击确定按钮之前,我建议你备份网站的数据库。"
|
148 |
|
149 |
+
#: qqworld-auto-save-images.php:170
|
150 |
msgid "No"
|
151 |
msgstr ""
|
152 |
|
153 |
+
#: qqworld-auto-save-images.php:171
|
154 |
msgid "Scanning..."
|
155 |
msgstr "扫描中……"
|
156 |
|
157 |
+
#: qqworld-auto-save-images.php:172
|
158 |
msgid "Listing..."
|
159 |
msgstr "显示列表中……"
|
160 |
|
161 |
+
#: qqworld-auto-save-images.php:173 qqworld-auto-save-images.php:705
|
162 |
+
#, fuzzy
|
163 |
msgid "ID"
|
164 |
+
msgstr "博客ID"
|
165 |
|
166 |
+
#: qqworld-auto-save-images.php:174
|
167 |
msgid "Post Type"
|
168 |
msgstr "文章类型"
|
169 |
|
170 |
+
#: qqworld-auto-save-images.php:175 qqworld-auto-save-images.php:707
|
171 |
+
#, fuzzy
|
172 |
msgid "Title"
|
173 |
+
msgstr "标题"
|
174 |
|
175 |
+
#: qqworld-auto-save-images.php:176 qqworld-auto-save-images.php:685
|
176 |
+
#, fuzzy
|
177 |
msgid "Status"
|
178 |
+
msgstr "状态"
|
179 |
|
180 |
+
#: qqworld-auto-save-images.php:177
|
181 |
msgid "Control"
|
182 |
msgstr "控制"
|
183 |
|
184 |
+
#: qqworld-auto-save-images.php:178
|
185 |
+
#, fuzzy
|
186 |
msgid "Done"
|
187 |
+
msgstr "全部完成。"
|
188 |
|
189 |
+
#: qqworld-auto-save-images.php:179 qqworld-auto-save-images.php:468
|
190 |
+
#, fuzzy
|
191 |
msgid "Delete"
|
192 |
+
msgstr "删除"
|
193 |
|
194 |
+
#: qqworld-auto-save-images.php:281 qqworld-auto-save-images.php:315
|
195 |
msgid "Has missing images."
|
196 |
msgstr "有不存在的远程图像。"
|
197 |
|
198 |
+
#: qqworld-auto-save-images.php:315
|
199 |
msgid "Normal"
|
200 |
msgstr "正常"
|
201 |
|
202 |
+
#: qqworld-auto-save-images.php:316
|
203 |
msgid "Fetch"
|
204 |
msgstr "抓取"
|
205 |
|
206 |
+
#: qqworld-auto-save-images.php:358
|
207 |
msgid "Save Remote Images"
|
208 |
msgstr "保存远程图片"
|
209 |
|
210 |
+
#: qqworld-auto-save-images.php:369 qqworld-auto-save-images.php:391
|
211 |
+
#, fuzzy
|
212 |
msgid "Settings"
|
213 |
+
msgstr "光箱选项"
|
214 |
|
215 |
+
#: qqworld-auto-save-images.php:376
|
216 |
msgid "Auto Save Images"
|
217 |
msgstr "自动保存图片"
|
218 |
|
219 |
+
#: qqworld-auto-save-images.php:378 qqworld-auto-save-images.php:385
|
220 |
msgid "QQWorld Auto Save Images"
|
221 |
msgstr "QQWorld自动保存图片"
|
222 |
|
223 |
+
#: qqworld-auto-save-images.php:386
|
224 |
msgid ""
|
225 |
"Automatically keep the all remote picture to the local, and automatically "
|
226 |
"set featured image."
|
227 |
msgstr ""
|
228 |
"自动保存远程图片到本地,自动设置特色图片,并且支持机器人采集软件从外部提交。"
|
229 |
|
230 |
+
#: qqworld-auto-save-images.php:392
|
231 |
msgid "Watermark"
|
232 |
msgstr "水印"
|
233 |
|
234 |
+
#: qqworld-auto-save-images.php:392
|
235 |
msgid "Trial"
|
236 |
msgstr "试用"
|
237 |
|
238 |
+
#: qqworld-auto-save-images.php:393
|
239 |
msgid "Scan Posts"
|
240 |
msgstr "扫描文章"
|
241 |
|
242 |
+
#: qqworld-auto-save-images.php:396
|
243 |
+
msgid "General Options"
|
244 |
+
msgstr "常规选项"
|
245 |
+
|
246 |
+
#: qqworld-auto-save-images.php:400 qqworld-auto-save-images.php:402
|
247 |
msgid "Mode"
|
248 |
msgstr "模式"
|
249 |
|
250 |
+
#: qqworld-auto-save-images.php:405 qqworld-auto-save-images.php:434
|
251 |
+
#: qqworld-auto-save-images.php:444 qqworld-auto-save-images.php:454
|
252 |
+
#: qqworld-auto-save-images.php:743
|
253 |
msgid "Automatic"
|
254 |
msgstr "自动"
|
255 |
|
256 |
+
#: qqworld-auto-save-images.php:406
|
257 |
msgid ""
|
258 |
"Automatically save all remote images to local media libary when you save or "
|
259 |
"publish post."
|
260 |
msgstr "在保存或发布文章时,自动将所有远程图像保存到本地媒体库。"
|
261 |
|
262 |
+
#: qqworld-auto-save-images.php:409 qqworld-auto-save-images.php:744
|
263 |
msgid "Manual"
|
264 |
msgstr "手动"
|
265 |
|
266 |
+
#: qqworld-auto-save-images.php:410
|
267 |
msgid ""
|
268 |
"Manually save all remote images to local media libary when you click the "
|
269 |
"button on the top of editor."
|
270 |
msgstr "当单击编辑器顶部的按钮时,手动将所有远程图像保存到本地媒体库。"
|
271 |
|
272 |
+
#: qqworld-auto-save-images.php:415 qqworld-auto-save-images.php:417
|
273 |
msgid "When"
|
274 |
msgstr "什么时候"
|
275 |
|
276 |
+
#: qqworld-auto-save-images.php:420
|
277 |
msgid "Save post (Publish, save draft or pedding review)."
|
278 |
msgstr "保存文章时(发布文章,保存草稿或提交审核)。"
|
279 |
|
280 |
+
#: qqworld-auto-save-images.php:424
|
281 |
msgid "Publish post only."
|
282 |
msgstr "仅发布文章时。"
|
283 |
|
284 |
+
#: qqworld-auto-save-images.php:430 qqworld-auto-save-images.php:432
|
285 |
msgid "Remote Publishing"
|
286 |
msgstr "远程发布"
|
287 |
|
288 |
+
#: qqworld-auto-save-images.php:430
|
289 |
msgid ""
|
290 |
"Save remote images via remote publishing from IFTTT or other way using "
|
291 |
"XMLRPC."
|
292 |
msgstr "保存通过IFTTT或其他使用XMLRPC方法远程发布的远程图片。"
|
293 |
|
294 |
+
#: qqworld-auto-save-images.php:440 qqworld-auto-save-images.php:442
|
295 |
msgid "Set Featured Image"
|
296 |
msgstr "设置特色图片"
|
297 |
|
298 |
+
#: qqworld-auto-save-images.php:440
|
299 |
msgid "Set first one of the remote images as featured image."
|
300 |
msgstr "设置远程图片中的第1个为特色图片。"
|
301 |
|
302 |
+
#: qqworld-auto-save-images.php:450 qqworld-auto-save-images.php:452
|
303 |
msgid "Change Image Filename"
|
304 |
msgstr "更改图片文件名"
|
305 |
|
306 |
+
#: qqworld-auto-save-images.php:450
|
307 |
msgid ""
|
308 |
"If you checked this, when the remote image filename have Chinese or other "
|
309 |
"East Asian characters. system will automatically change image filename. I "
|
312 |
"如果勾选了此项,当远程图片名包含中文或其他东亚字符的时候,将自动更改图片文件"
|
313 |
"名。建议开启。"
|
314 |
|
315 |
+
#: qqworld-auto-save-images.php:460 qqworld-auto-save-images.php:462
|
316 |
msgid "Exclude Domain/Keyword"
|
317 |
msgstr "排除域名/关键词"
|
318 |
|
319 |
+
#: qqworld-auto-save-images.php:460
|
320 |
msgid "Images will not be saved, if that url contains Exclude-Domain/Keyword."
|
321 |
msgstr "如果图片地址包含排除域名/关键词,则不会保存该图片。"
|
322 |
|
323 |
+
#: qqworld-auto-save-images.php:472
|
324 |
msgid "Add a Domain/Keyword"
|
325 |
msgstr "添加域名/关键词"
|
326 |
|
327 |
+
#: qqworld-auto-save-images.php:477
|
328 |
+
msgid "Format Options"
|
329 |
+
msgstr "格式化选项"
|
330 |
+
|
331 |
+
#: qqworld-auto-save-images.php:481 qqworld-auto-save-images.php:483
|
332 |
+
msgid "Image Size"
|
333 |
+
msgstr "图像尺寸"
|
334 |
+
|
335 |
+
#: qqworld-auto-save-images.php:481
|
336 |
+
msgid "Replace images you want size to display."
|
337 |
+
msgstr "替换成你想要显示的尺寸的图像。"
|
338 |
+
|
339 |
+
#: qqworld-auto-save-images.php:488
|
340 |
+
#, fuzzy
|
341 |
+
msgid "Thumbnail"
|
342 |
+
msgstr ""
|
343 |
+
"一个数组,可以包含数个函数,每个函数返回可能的缩略图图片对象相对于时间对象的"
|
344 |
+
"jQuery路径。"
|
345 |
+
|
346 |
+
#: qqworld-auto-save-images.php:489
|
347 |
+
msgid "Medium"
|
348 |
+
msgstr ""
|
349 |
+
|
350 |
+
#: qqworld-auto-save-images.php:490
|
351 |
+
msgid "Large"
|
352 |
+
msgstr ""
|
353 |
+
|
354 |
+
#: qqworld-auto-save-images.php:491
|
355 |
+
#, fuzzy
|
356 |
+
msgid "Full Size"
|
357 |
+
msgstr "链接到全尺寸图像"
|
358 |
+
|
359 |
+
#: qqworld-auto-save-images.php:500 qqworld-auto-save-images.php:502
|
360 |
+
msgid "Link To"
|
361 |
+
msgstr "链接到"
|
362 |
+
|
363 |
+
#: qqworld-auto-save-images.php:507
|
364 |
+
#, fuzzy
|
365 |
+
msgid "Media File"
|
366 |
+
msgstr "添加文件"
|
367 |
+
|
368 |
+
#: qqworld-auto-save-images.php:508
|
369 |
+
#, fuzzy
|
370 |
+
msgid "Attachment Page"
|
371 |
+
msgstr "(附件)"
|
372 |
+
|
373 |
+
#: qqworld-auto-save-images.php:509
|
374 |
+
msgid "None"
|
375 |
+
msgstr ""
|
376 |
+
|
377 |
+
#: qqworld-auto-save-images.php:525
|
378 |
msgid ""
|
379 |
"Just for preview, The complete feature will on the Pro version. Don't worry, "
|
380 |
"other features will be free forever."
|
381 |
msgstr "仅仅用于预览,专业版将提供完整的功能。别担心,其他功能将永久免费。"
|
382 |
|
383 |
+
#: qqworld-auto-save-images.php:529 qqworld-auto-save-images.php:531
|
384 |
msgid "Enabled Watermark"
|
385 |
msgstr "启用水印"
|
386 |
|
387 |
+
#: qqworld-auto-save-images.php:529
|
388 |
msgid "Use for both of remote images and the local upload."
|
389 |
msgstr "同时用于远程图片和本地上传。"
|
390 |
|
391 |
+
#: qqworld-auto-save-images.php:539 qqworld-auto-save-images.php:541
|
392 |
msgid "Filter"
|
393 |
msgstr "过滤"
|
394 |
|
395 |
+
#: qqworld-auto-save-images.php:539
|
396 |
msgid "Skip images that smaller than this size."
|
397 |
msgstr "跳过比这个尺寸更小的图像。"
|
398 |
|
399 |
+
#: qqworld-auto-save-images.php:543
|
400 |
msgid "Width:"
|
401 |
msgstr "宽度:"
|
402 |
|
403 |
+
#: qqworld-auto-save-images.php:543 qqworld-auto-save-images.php:546
|
404 |
msgid "(px)"
|
405 |
msgstr "(像素)"
|
406 |
|
407 |
+
#: qqworld-auto-save-images.php:546
|
408 |
msgid "Height:"
|
409 |
msgstr "高度:"
|
410 |
|
411 |
+
#: qqworld-auto-save-images.php:552
|
412 |
msgid "Align To"
|
413 |
msgstr "对齐方式"
|
414 |
|
415 |
+
#: qqworld-auto-save-images.php:574
|
416 |
msgid "Position"
|
417 |
msgstr "位置"
|
418 |
|
419 |
+
#: qqworld-auto-save-images.php:574
|
420 |
msgid "You can try to drag the watermark image."
|
421 |
msgstr "你可以试着拖动水印图片。"
|
422 |
|
423 |
+
#: qqworld-auto-save-images.php:591 qqworld-auto-save-images.php:593
|
424 |
+
#: qqworld-auto-save-images.php:672
|
425 |
msgid "Offset"
|
426 |
msgstr "偏移"
|
427 |
|
428 |
+
#: qqworld-auto-save-images.php:604 qqworld-auto-save-images.php:606
|
429 |
msgid "Opacity"
|
430 |
msgstr "不透明度"
|
431 |
|
432 |
+
#: qqworld-auto-save-images.php:614 qqworld-auto-save-images.php:616
|
433 |
msgid "Upload Watermark Image"
|
434 |
msgstr "上传水印图片"
|
435 |
|
436 |
+
#: qqworld-auto-save-images.php:618
|
437 |
msgid "Insert a Watermark Image"
|
438 |
msgstr "插入水印图片"
|
439 |
|
440 |
+
#: qqworld-auto-save-images.php:629
|
441 |
msgid "Default Watermark"
|
442 |
msgstr "默认水印"
|
443 |
|
444 |
+
#: qqworld-auto-save-images.php:633
|
445 |
msgid "Buy"
|
446 |
msgstr "购买"
|
447 |
|
448 |
+
#: qqworld-auto-save-images.php:634
|
449 |
msgid "Coming.. I don't know when, Who cares.."
|
450 |
msgstr "即将…我不知道什么时候,管它呢……"
|
451 |
|
452 |
+
#: qqworld-auto-save-images.php:648
|
453 |
msgid "Select post types"
|
454 |
msgstr "选择文章类型"
|
455 |
|
456 |
+
#: qqworld-auto-save-images.php:648
|
457 |
msgid ""
|
458 |
"If you have too many posts to be scan, sometimes in process looks like "
|
459 |
"stopping, but it may be fake. please be patient."
|
461 |
"如果有太多文章需要扫描,有时候在扫描过程中看起来像是停止了,但可能是假停止,"
|
462 |
"请耐心等待。"
|
463 |
|
464 |
+
#: qqworld-auto-save-images.php:662
|
465 |
+
#, fuzzy
|
466 |
msgid "Categories"
|
467 |
+
msgstr "%s分类"
|
468 |
|
469 |
+
#: qqworld-auto-save-images.php:662
|
470 |
msgid "Default empty to scan all categories."
|
471 |
msgstr "默认留空扫描所有分类。"
|
472 |
|
473 |
+
#: qqworld-auto-save-images.php:667
|
474 |
msgid "Scope of Post ID"
|
475 |
msgstr "文章ID范围"
|
476 |
|
477 |
+
#: qqworld-auto-save-images.php:667
|
478 |
msgid ""
|
479 |
"Default empty for scan all posts ID. If you want to scan posts ID from 50 to "
|
480 |
"100. please type '50' and '100' or '100' and '50', The order in which two "
|
485 |
"者'100'和'50',两个数字的顺序可以颠倒。如果你只输入了1个数字,则系统只会扫描"
|
486 |
"该ID。"
|
487 |
|
488 |
+
#: qqworld-auto-save-images.php:668
|
489 |
#, php-format
|
490 |
msgid "From %1$s to %2$s"
|
491 |
msgstr "从 %1$s 到 %2$s"
|
492 |
|
493 |
+
#: qqworld-auto-save-images.php:672
|
494 |
msgid ""
|
495 |
"Default scan all posts. If you want to scan 50-150 posts, please type '50' "
|
496 |
"in the textfield and select '100'."
|
498 |
"默认扫秒全部文章,如果想扫描50-150篇文章,请在文本框中输入“50”并在下拉菜单中"
|
499 |
"选择“100”。"
|
500 |
|
501 |
+
#: qqworld-auto-save-images.php:674
|
502 |
#, php-format
|
503 |
msgid "Start from %s to Scan"
|
504 |
msgstr "从 %s 开始扫描"
|
505 |
|
506 |
+
#: qqworld-auto-save-images.php:676
|
507 |
+
#, fuzzy
|
508 |
msgid "All"
|
509 |
+
msgstr "所有"
|
510 |
|
511 |
+
#: qqworld-auto-save-images.php:680
|
512 |
+
#, fuzzy
|
513 |
msgid "Posts"
|
514 |
+
msgstr "热门文章"
|
515 |
|
516 |
+
#: qqworld-auto-save-images.php:690
|
517 |
msgid "Any"
|
518 |
msgstr "任意"
|
519 |
|
520 |
+
#: qqworld-auto-save-images.php:700
|
521 |
msgid "Order By"
|
522 |
msgstr "排序依据"
|
523 |
|
524 |
+
#: qqworld-auto-save-images.php:706
|
525 |
+
#, fuzzy
|
526 |
msgid "Author"
|
527 |
+
msgstr "作者"
|
528 |
|
529 |
+
#: qqworld-auto-save-images.php:708
|
530 |
+
#, fuzzy
|
531 |
msgid "Date"
|
532 |
+
msgstr "发布日期"
|
533 |
|
534 |
+
#: qqworld-auto-save-images.php:709
|
535 |
msgid "Last Modified"
|
536 |
msgstr ""
|
537 |
|
538 |
+
#: qqworld-auto-save-images.php:710
|
539 |
msgid "Comment Count"
|
540 |
msgstr "评论数"
|
541 |
|
542 |
+
#: qqworld-auto-save-images.php:720
|
543 |
+
#, fuzzy
|
544 |
msgid "Order"
|
545 |
+
msgstr "顺序"
|
546 |
|
547 |
+
#: qqworld-auto-save-images.php:730
|
548 |
msgid "Speed"
|
549 |
msgstr "速度"
|
550 |
|
551 |
+
#: qqworld-auto-save-images.php:730
|
552 |
msgid "If the server is too much stress may be appropriately reduced speed."
|
553 |
msgstr "如果服务器压力过大,可以适当调低速度。"
|
554 |
|
555 |
+
#: qqworld-auto-save-images.php:743
|
556 |
msgid ""
|
557 |
"Scan posts and keep remote images in all posts to local media library. Maybe "
|
558 |
"take a long time."
|
559 |
msgstr "扫描所有的文章,将所有远程图片保存到本地,可能需要很长时间。"
|
560 |
|
561 |
+
#: qqworld-auto-save-images.php:744
|
562 |
msgid ""
|
563 |
"The list displayed will show you which posts including remote images, then "
|
564 |
"you can keep them to local manually via click \"Fetch\" button."
|
566 |
"显示的列表中将告诉你哪些文章包含远程图片,然后你可以通过点击“抓取”按钮手动保"
|
567 |
"存。"
|
568 |
|
569 |
+
#: qqworld-auto-save-images.php:836
|
570 |
msgid "Has Missing/Undownloadable images."
|
571 |
msgstr "有 不存在/不可下载 的远程图像。"
|
572 |
|
573 |
+
#: qqworld-auto-save-images.php:843
|
574 |
msgid "No remote images found."
|
575 |
msgstr "没有远程图像。"
|
576 |
|
586 |
#~ msgid "Text"
|
587 |
#~ msgstr "文本"
|
588 |
|
|
|
|
|
|
|
589 |
#, fuzzy
|
590 |
#~ msgid "Change Image File Name"
|
591 |
#~ msgstr "更改图片文件名"
|
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 $exclude_domain;
|
|
|
22 |
|
23 |
var $watermark_enabled;
|
24 |
var $filter_size;
|
@@ -33,6 +34,7 @@ class QQWorld_auto_save_images {
|
|
33 |
$this->featured_image = get_option('qqworld_auto_save_images_set_featured_image', 'yes');
|
34 |
$this->change_image_name = get_option('qqworld_auto_save_images_auto_change_name', 'yes');
|
35 |
$this->exclude_domain = get_option('qqworld-auto-save-images-exclude-domain');
|
|
|
36 |
|
37 |
$this->watermark_enabled = get_option('qqworld-auto-save-images-watermark-enabled', 'no');
|
38 |
$this->filter_size = get_option('qqworld-auto-save-images-watermark-filter-size', array('width'=>300, 'height'=>300));
|
@@ -391,6 +393,7 @@ class QQWorld_auto_save_images {
|
|
391 |
<li><?php _e('Scan Posts', 'qqworld_auto_save_images'); ?></li>
|
392 |
</ul>
|
393 |
<div class="tab-content">
|
|
|
394 |
<table class="form-table">
|
395 |
<tbody>
|
396 |
<tr valign="top">
|
@@ -471,6 +474,48 @@ class QQWorld_auto_save_images {
|
|
471 |
</tr>
|
472 |
</tbody>
|
473 |
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
474 |
<?php submit_button(); ?>
|
475 |
</div>
|
476 |
</form>
|
@@ -566,10 +611,10 @@ class QQWorld_auto_save_images {
|
|
566 |
</td>
|
567 |
</tr>
|
568 |
<tr valign="top">
|
569 |
-
<th scope="row"><label><?php _e('Upload Watermark Image', 'qqworld_auto_save_images'); ?></label></th>
|
570 |
<td><fieldset>
|
571 |
<legend class="screen-reader-text"><span><?php _e('Upload Watermark Image', 'qqworld_auto_save_images'); ?></span></legend>
|
572 |
-
<label for="
|
573 |
<a href="javascript:" id="upload-watermark-image" title="<?php _e('Insert a Watermark Image', 'qqworld_auto_save_images'); ?>">
|
574 |
<?php
|
575 |
if ($this->watermark_image) :
|
@@ -578,7 +623,7 @@ class QQWorld_auto_save_images {
|
|
578 |
<img src="<?php echo QQWORLD_AUTO_SAVE_IMAGES_URL; ?>images/watermark.png" width="205" height="61" />
|
579 |
<?php endif; ?>
|
580 |
</a>
|
581 |
-
<input name="qqworld-auto-save-images-watermark-image" type="hidden" title="" value="<?php echo $this->watermark_image; ?>" />
|
582 |
</label>
|
583 |
</fieldset>
|
584 |
<input type="button" class="button<?php if (!$this->watermark_image) echo ' hidden'; ?>" id="default-watermark" value="<?php _e('Default Watermark', 'qqworld_auto_save_images'); ?>">
|
@@ -711,6 +756,7 @@ class QQWorld_auto_save_images {
|
|
711 |
register_setting('qqworld_auto_save_images_settings', 'qqworld_auto_save_images_set_featured_image');
|
712 |
register_setting('qqworld_auto_save_images_settings', 'qqworld_auto_save_images_auto_change_name');
|
713 |
register_setting('qqworld_auto_save_images_settings', 'qqworld-auto-save-images-exclude-domain');
|
|
|
714 |
|
715 |
register_setting('qqworld_auto_save_images_watermark', 'qqworld-auto-save-images-watermark-enabled');
|
716 |
register_setting('qqworld_auto_save_images_watermark', 'qqworld-auto-save-images-watermark-filter-size');
|
@@ -844,8 +890,7 @@ class QQWorld_auto_save_images {
|
|
844 |
if($pos===false){
|
845 |
$this->has_remote_image = 1;
|
846 |
if ($action=="save" && $res=$this->save_images($image_url,$post_id)) {
|
847 |
-
$
|
848 |
-
$content=str_replace($image_url,$replace,$content);
|
849 |
}
|
850 |
}
|
851 |
}
|
@@ -854,6 +899,82 @@ class QQWorld_auto_save_images {
|
|
854 |
return $content;
|
855 |
}
|
856 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
857 |
public function change_images_filename($name, $extension) {
|
858 |
if ($this->change_image_name) {
|
859 |
preg_match( '/^[\x7f-\xff]+$/', $name, $match );
|
@@ -888,8 +1009,11 @@ class QQWorld_auto_save_images {
|
|
888 |
$img_name = $this->change_images_filename($match[1], $match[2]);
|
889 |
}
|
890 |
$res=wp_upload_bits($img_name,'',$file);
|
891 |
-
$
|
892 |
-
|
|
|
|
|
|
|
893 |
return $res;
|
894 |
} else {
|
895 |
$this->has_missing_image = 1;
|
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.5
|
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 $exclude_domain;
|
22 |
+
var $format;
|
23 |
|
24 |
var $watermark_enabled;
|
25 |
var $filter_size;
|
34 |
$this->featured_image = get_option('qqworld_auto_save_images_set_featured_image', 'yes');
|
35 |
$this->change_image_name = get_option('qqworld_auto_save_images_auto_change_name', 'yes');
|
36 |
$this->exclude_domain = get_option('qqworld-auto-save-images-exclude-domain');
|
37 |
+
$this->format = get_option('qqworld-auto-save-images-format', array('size'=>'full', 'link-to'=>'none'));
|
38 |
|
39 |
$this->watermark_enabled = get_option('qqworld-auto-save-images-watermark-enabled', 'no');
|
40 |
$this->filter_size = get_option('qqworld-auto-save-images-watermark-filter-size', array('width'=>300, 'height'=>300));
|
393 |
<li><?php _e('Scan Posts', 'qqworld_auto_save_images'); ?></li>
|
394 |
</ul>
|
395 |
<div class="tab-content">
|
396 |
+
<h2><?php _e('General Options', 'qqworld_auto_save_images'); ?></h2>
|
397 |
<table class="form-table">
|
398 |
<tbody>
|
399 |
<tr valign="top">
|
474 |
</tr>
|
475 |
</tbody>
|
476 |
</table>
|
477 |
+
<h2><?php _e('Format Options', 'qqworld_auto_save_images'); ?></h2>
|
478 |
+
<table class="form-table">
|
479 |
+
<tbody>
|
480 |
+
<tr valign="top">
|
481 |
+
<th scope="row"><label><?php _e('Image Size', 'qqworld_auto_save_images'); ?></label> <span class="icon help" title="<?php _e("Replace images you want size to display.", 'qqworld_auto_save_images'); ?>"></span></th>
|
482 |
+
<td><fieldset>
|
483 |
+
<legend class="screen-reader-text"><span><?php _e('Image Size', 'qqworld_auto_save_images'); ?></span></legend>
|
484 |
+
<label>
|
485 |
+
<select name="qqworld-auto-save-images-format[size]">
|
486 |
+
<?php
|
487 |
+
$sizes = apply_filters( 'image_size_names_choose', array(
|
488 |
+
'thumbnail' => __('Thumbnail'),
|
489 |
+
'medium' => __('Medium'),
|
490 |
+
'large' => __('Large'),
|
491 |
+
'full' => __('Full Size')
|
492 |
+
) );
|
493 |
+
foreach ($sizes as $value => $title) echo '<option value="'.$value.'"'.selected($value, $this->format['size'], false).'>'.$title.'</option>';
|
494 |
+
?>
|
495 |
+
</select>
|
496 |
+
</label>
|
497 |
+
</fieldset></td>
|
498 |
+
</tr>
|
499 |
+
<tr valign="top">
|
500 |
+
<th scope="row"><label><?php _e('Link To', 'qqworld_auto_save_images'); ?></label></th>
|
501 |
+
<td><fieldset>
|
502 |
+
<legend class="screen-reader-text"><span><?php _e('Link To', 'qqworld_auto_save_images'); ?></span></legend>
|
503 |
+
<label>
|
504 |
+
<select name="qqworld-auto-save-images-format[link-to]">
|
505 |
+
<?php
|
506 |
+
$linkTo = array(
|
507 |
+
'file' => __('Media File'),
|
508 |
+
'post' => __('Attachment Page'),
|
509 |
+
'none' => __('None')
|
510 |
+
);
|
511 |
+
foreach ($linkTo as $value => $title) echo '<option value="'.$value.'"'.selected($value, $this->format['link-to'], false).'>'.$title.'</option>';
|
512 |
+
?>
|
513 |
+
</select>
|
514 |
+
</label>
|
515 |
+
</fieldset></td>
|
516 |
+
</tr>
|
517 |
+
</tbody>
|
518 |
+
</table>
|
519 |
<?php submit_button(); ?>
|
520 |
</div>
|
521 |
</form>
|
611 |
</td>
|
612 |
</tr>
|
613 |
<tr valign="top">
|
614 |
+
<th scope="row"><label id="for-watermark-image" for="watermark-image"><?php _e('Upload Watermark Image', 'qqworld_auto_save_images'); ?></label></th>
|
615 |
<td><fieldset>
|
616 |
<legend class="screen-reader-text"><span><?php _e('Upload Watermark Image', 'qqworld_auto_save_images'); ?></span></legend>
|
617 |
+
<label for="watermark-image">
|
618 |
<a href="javascript:" id="upload-watermark-image" title="<?php _e('Insert a Watermark Image', 'qqworld_auto_save_images'); ?>">
|
619 |
<?php
|
620 |
if ($this->watermark_image) :
|
623 |
<img src="<?php echo QQWORLD_AUTO_SAVE_IMAGES_URL; ?>images/watermark.png" width="205" height="61" />
|
624 |
<?php endif; ?>
|
625 |
</a>
|
626 |
+
<input name="qqworld-auto-save-images-watermark-image" id="watermark-image" type="hidden" title="" value="<?php echo $this->watermark_image; ?>" />
|
627 |
</label>
|
628 |
</fieldset>
|
629 |
<input type="button" class="button<?php if (!$this->watermark_image) echo ' hidden'; ?>" id="default-watermark" value="<?php _e('Default Watermark', 'qqworld_auto_save_images'); ?>">
|
756 |
register_setting('qqworld_auto_save_images_settings', 'qqworld_auto_save_images_set_featured_image');
|
757 |
register_setting('qqworld_auto_save_images_settings', 'qqworld_auto_save_images_auto_change_name');
|
758 |
register_setting('qqworld_auto_save_images_settings', 'qqworld-auto-save-images-exclude-domain');
|
759 |
+
register_setting('qqworld_auto_save_images_settings', 'qqworld-auto-save-images-format');
|
760 |
|
761 |
register_setting('qqworld_auto_save_images_watermark', 'qqworld-auto-save-images-watermark-enabled');
|
762 |
register_setting('qqworld_auto_save_images_watermark', 'qqworld-auto-save-images-watermark-filter-size');
|
890 |
if($pos===false){
|
891 |
$this->has_remote_image = 1;
|
892 |
if ($action=="save" && $res=$this->save_images($image_url,$post_id)) {
|
893 |
+
$content = $this->format($image_url, $res, $content);
|
|
|
894 |
}
|
895 |
}
|
896 |
}
|
899 |
return $content;
|
900 |
}
|
901 |
|
902 |
+
public function encode_pattern($str) {
|
903 |
+
$str = str_replace('(', '\(', $str);
|
904 |
+
$str = str_replace(')', '\)', $str);
|
905 |
+
$str = str_replace('+', '\+', $str);
|
906 |
+
$str = str_replace('.', '\.', $str);
|
907 |
+
$str = str_replace('?', '\?', $str);
|
908 |
+
$str = str_replace('/', '\/', $str);
|
909 |
+
$str = str_replace('^', '\^', $str);
|
910 |
+
$str = str_replace('$', '\$', $str);
|
911 |
+
$str = str_replace('|', '\|', $str);
|
912 |
+
return $str;
|
913 |
+
}
|
914 |
+
|
915 |
+
public function format($image_url, $res, $content) {
|
916 |
+
$no_match = false;
|
917 |
+
$attachment_id = $res['id'];
|
918 |
+
$url_path = str_replace(basename($res['file']), '', $res['url']);
|
919 |
+
$size = isset($res['sizes'][$this->format['size']]) ? $this->format['size'] : 'full';
|
920 |
+
if ($size == 'full') {
|
921 |
+
$src = $res['url'];
|
922 |
+
$width = $res['width'];
|
923 |
+
$height = $res['height'];
|
924 |
+
} else {
|
925 |
+
$src = $url_path . $res['sizes'][$size]['file'];
|
926 |
+
$width = $res['sizes'][$size]['width'];
|
927 |
+
$height = $res['sizes'][$size]['height'];
|
928 |
+
}
|
929 |
+
$pattern_image_url = $this->encode_pattern($image_url);
|
930 |
+
$pattern = '/<a\s[^>]*href=(\"??)([^\" >]*?)\\1[^>]*>?<img.*?src=[\"|\\\']'.$pattern_image_url.'[\"|\\\'].*?>?<\/a>/i';
|
931 |
+
if ( preg_match($pattern, $content, $matches) ) {
|
932 |
+
$args = $this->set_img_metadata($matches[0], $attachment_id);
|
933 |
+
} else {
|
934 |
+
$pattern = '/<img.*?src=[\"|\\\']'.$pattern_image_url.'[\"|\\\'].*?>/i';
|
935 |
+
if ( preg_match($pattern, $content, $matches) ) {
|
936 |
+
$args = $this->set_img_metadata($matches[0], $attachment_id);
|
937 |
+
} else {
|
938 |
+
$pattern = '/'.$pattern_image_url.'/i';
|
939 |
+
$no_match = true;
|
940 |
+
}
|
941 |
+
}
|
942 |
+
$alt = isset($args['alt']) ? ' alt="'.$args['alt'].'"' : '';
|
943 |
+
$img = '<img class="size-'.$size.' wp-image-'.$attachment_id.'" src="'.$src.'" width="'.$width.'" height="'.$height.'"'.$alt.' />';
|
944 |
+
switch ($this->format['link-to']) {
|
945 |
+
case 'none':
|
946 |
+
$replace = $img; break;
|
947 |
+
case 'file':
|
948 |
+
$replace = '<a href="'.$res['url'].'">'.$img.'</a>';
|
949 |
+
break;
|
950 |
+
case 'post':
|
951 |
+
$replace = '<a href="'.get_permalink($attachment_id).'">'.$img.'</a>';
|
952 |
+
break;
|
953 |
+
}
|
954 |
+
if ($no_match) $replace = $res['url'];
|
955 |
+
$content = preg_replace($pattern, $replace, $content);
|
956 |
+
return $content;
|
957 |
+
}
|
958 |
+
|
959 |
+
public function set_img_metadata($img, $attachment_id) {
|
960 |
+
$pattern = '/<img.*?alt=[\"|\\\'](.*?)[\"|\\\'].*?>/i';
|
961 |
+
$alt = preg_match($pattern, $img, $matches) ? $matches[1] : null;
|
962 |
+
if ($alt) update_post_meta($attachment_id, '_wp_attachment_image_alt', $alt);
|
963 |
+
$pattern = '/<img.*?title=[\"|\\\'](.*?)[\"|\\\'].*?>/i';
|
964 |
+
$title = preg_match($pattern, $img, $matches)? $matches[1] : null;
|
965 |
+
if ($title) {
|
966 |
+
$attachment = array(
|
967 |
+
'ID' => $attachment_id,
|
968 |
+
'post_title' => $title
|
969 |
+
);
|
970 |
+
wp_update_post($attachment);
|
971 |
+
}
|
972 |
+
return array(
|
973 |
+
'alt' => $alt,
|
974 |
+
'title' => $title
|
975 |
+
);
|
976 |
+
}
|
977 |
+
|
978 |
public function change_images_filename($name, $extension) {
|
979 |
if ($this->change_image_name) {
|
980 |
preg_match( '/^[\x7f-\xff]+$/', $name, $match );
|
1009 |
$img_name = $this->change_images_filename($match[1], $match[2]);
|
1010 |
}
|
1011 |
$res=wp_upload_bits($img_name,'',$file);
|
1012 |
+
$attachment_id = $this->insert_attachment($res['file'], $post_id);
|
1013 |
+
$res['id'] = $attachment_id;
|
1014 |
+
$meta_data = wp_get_attachment_metadata($attachment_id);
|
1015 |
+
$res = array_merge($res, $meta_data);
|
1016 |
+
if( !has_post_thumbnail($post_id) && $this->featured_image=='yes' ) set_post_thumbnail( $post_id, $attachment_id );
|
1017 |
return $res;
|
1018 |
} else {
|
1019 |
$this->has_missing_image = 1;
|