Version Description
- Added: Ability to re-optimize images with errors.
- Fixed: Some bugs
- Added: An alternative server for image optimization. Now you can select an alternative optimization server if the current server is unavailable.
- Fixed: Problems with translations
Download this release
Release Info
Developer | webcraftic |
Plugin | Robin image optimizer — save money on image compression |
Version | 1.0.8 |
Comparing to | |
See all releases |
Code changes from version 1.0.7 to 1.0.8
- admin/activation.php +1 -0
- admin/assets/css/base-statistic.css +8 -0
- admin/assets/css/base-statistic.less +9 -0
- admin/boot.php +42 -0
- admin/pages/settings.php +20 -0
- admin/pages/statistic.php +11 -2
- includes/class.plugin.php +27 -6
- includes/classes/class.attachment.php +19 -8
- includes/classes/class.backup.php +1 -1
- includes/classes/class.image-processor-abstract.php +6 -3
- includes/classes/class.image-processor-smushpro.php +85 -0
- includes/classes/class.media-library.php +36 -5
- languages/robin-image-optimizer-ru_RU.mo +0 -0
- languages/robin-image-optimizer-ru_RU.po +610 -502
- languages/robin-image-optimizer.pot +0 -447
- readme.txt +11 -2
- robin-image-optimizer.php +3 -3
- updates/010008.php +13 -0
- updates/index.php +0 -0
admin/activation.php
CHANGED
@@ -23,6 +23,7 @@
|
|
23 |
*/
|
24 |
public function activate()
|
25 |
{
|
|
|
26 |
WIO_Plugin::app()->updateOption('backup_origin_images', 1);
|
27 |
WIO_Plugin::app()->updateOption('save_exif_data', 1);
|
28 |
}
|
23 |
*/
|
24 |
public function activate()
|
25 |
{
|
26 |
+
WIO_Plugin::app()->updateOption('image_optimization_server', 'resmush');
|
27 |
WIO_Plugin::app()->updateOption('backup_origin_images', 1);
|
28 |
WIO_Plugin::app()->updateOption('save_exif_data', 1);
|
29 |
}
|
admin/assets/css/base-statistic.css
CHANGED
@@ -35,6 +35,14 @@
|
|
35 |
#WBCR .wio-clear {
|
36 |
clear: both;
|
37 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
#WBCR .wio-columns {
|
39 |
overflow: hidden;
|
40 |
padding: 15px 0;
|
35 |
#WBCR .wio-clear {
|
36 |
clear: both;
|
37 |
}
|
38 |
+
#WBCR .wio-warning-message {
|
39 |
+
padding: 20px;
|
40 |
+
border: 1px dashed #bfbfbf;
|
41 |
+
background: #ffffff;
|
42 |
+
margin-bottom: 40px;
|
43 |
+
font-size: 15px;
|
44 |
+
color: #828282;
|
45 |
+
}
|
46 |
#WBCR .wio-columns {
|
47 |
overflow: hidden;
|
48 |
padding: 15px 0;
|
admin/assets/css/base-statistic.less
CHANGED
@@ -14,6 +14,15 @@
|
|
14 |
clear: both;
|
15 |
}
|
16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
.wio-columns {
|
18 |
overflow: hidden;
|
19 |
padding: 15px 0;
|
14 |
clear: both;
|
15 |
}
|
16 |
|
17 |
+
.wio-warning-message {
|
18 |
+
padding: 20px;
|
19 |
+
border: 1px dashed #bfbfbf;
|
20 |
+
background: #ffffff;
|
21 |
+
margin-bottom: 40px;
|
22 |
+
font-size: 15px;
|
23 |
+
color: #828282;
|
24 |
+
}
|
25 |
+
|
26 |
.wio-columns {
|
27 |
overflow: hidden;
|
28 |
padding: 15px 0;
|
admin/boot.php
CHANGED
@@ -29,5 +29,47 @@
|
|
29 |
|
30 |
add_filter('wbcr_factory_pages_407_imppage_rating_widget_url', 'wio_rating_widget_url', 10, 2);
|
31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
|
33 |
|
29 |
|
30 |
add_filter('wbcr_factory_pages_407_imppage_rating_widget_url', 'wio_rating_widget_url', 10, 2);
|
31 |
|
32 |
+
/**
|
33 |
+
* Widget with the offer to buy Clearfy Business
|
34 |
+
*
|
35 |
+
* @param array $widgets
|
36 |
+
* @param string $position
|
37 |
+
* @param Wbcr_Factory406_Plugin $plugin
|
38 |
+
*/
|
39 |
+
function wio_donate_widget($widgets, $position, $plugin)
|
40 |
+
{
|
41 |
+
if( $plugin->getPluginName() == WIO_Plugin::app()->getPluginName() ) {
|
42 |
+
$buy_premium_url = 'https://clearfy.pro/pricing/?utm_source=wordpress.org&utm_campaign=wbcr_robin_image_optimizer&utm_content=widget';
|
43 |
+
|
44 |
+
ob_start();
|
45 |
+
?>
|
46 |
+
<div id="wbcr-clr-go-to-premium-widget" class="wbcr-factory-sidebar-widget">
|
47 |
+
<p>
|
48 |
+
<strong><?php _e('Donation', 'clearfy'); ?></strong>
|
49 |
+
</p>
|
50 |
+
|
51 |
+
<div class="wbcr-clr-go-to-premium-widget-body">
|
52 |
+
<p><?php _e('<b>Clearfy Business</b> is a paid package of components for the popular free WordPress plugin named Clearfy. You get access to all paid components at one price.', 'clearfy') ?></p>
|
53 |
+
|
54 |
+
<p><?php _e('Paid license guarantees that you can download and update existing and future paid components of the plugin.', 'clearfy') ?></p>
|
55 |
+
<a href="<?= $buy_premium_url ?>" class="wbcr-clr-purchase-premium" target="_blank" rel="noopener">
|
56 |
+
<span class="btn btn-gold btn-inner-wrap">
|
57 |
+
<i class="fa fa-star"></i> <?php printf(__('Upgrade to Clearfy Business for $%s', 'clearfy'), 19) ?>
|
58 |
+
<i class="fa fa-star"></i>
|
59 |
+
</span>
|
60 |
+
</a>
|
61 |
+
</div>
|
62 |
+
</div>
|
63 |
+
<?php
|
64 |
+
|
65 |
+
$widgets['donate_widget'] = ob_get_contents();
|
66 |
+
ob_end_clean();
|
67 |
+
}
|
68 |
+
|
69 |
+
return $widgets;
|
70 |
+
}
|
71 |
+
|
72 |
+
add_filter('wbcr_factory_pages_407_imppage_get_widgets', 'wio_donate_widget', 10, 3);
|
73 |
+
|
74 |
|
75 |
|
admin/pages/settings.php
CHANGED
@@ -166,6 +166,26 @@
|
|
166 |
'type' => 'html',
|
167 |
'html' => '<div class="wbcr-factory-page-group-header"><strong>' . __( 'Main Settings', 'robin-image-optimizer' ) . '</strong><p>' . __( 'This section you can set main images optimization settings.', 'robin-image-optimizer' ) . '</p></div>'
|
168 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
|
170 |
// Радио переключатель
|
171 |
$options[] = array(
|
166 |
'type' => 'html',
|
167 |
'html' => '<div class="wbcr-factory-page-group-header"><strong>' . __( 'Main Settings', 'robin-image-optimizer' ) . '</strong><p>' . __( 'This section you can set main images optimization settings.', 'robin-image-optimizer' ) . '</p></div>'
|
168 |
);
|
169 |
+
|
170 |
+
$options[] = array(
|
171 |
+
'type' => 'dropdown',
|
172 |
+
'name' => 'image_optimization_server',
|
173 |
+
'title' => __('Optimization server', 'robin-image-optimizer'),
|
174 |
+
'data' => array(
|
175 |
+
array(
|
176 |
+
'resmush',
|
177 |
+
__('Server 1 (recommended) - image size limit up to 5 MB', 'robin-image-optimizer'),
|
178 |
+
|
179 |
+
),
|
180 |
+
array(
|
181 |
+
'smushpro',
|
182 |
+
__('Server 2 - image size limit up to 1 MB', 'robin-image-optimizer')
|
183 |
+
)
|
184 |
+
),
|
185 |
+
'layout' => array('hint-type' => 'icon', 'hint-icon-color' => 'grey'),
|
186 |
+
'hint' => __('We use several free servers for image optimization and can’t fully guarantee their stable performance. The server can be not available in some countries due to the political reasons. There is a solution: if one of the servers is not available or can’t optimize the image, you can try to switch to the alternative server. Each server has individual limitations for image weight and optimization level. By default, you have the best server with minimum limitations.', 'robin-image-optimizer'),
|
187 |
+
'default' => 'resmush',
|
188 |
+
);
|
189 |
|
190 |
// Радио переключатель
|
191 |
$options[] = array(
|
admin/pages/statistic.php
CHANGED
@@ -100,6 +100,8 @@
|
|
100 |
*/
|
101 |
public function ajaxProcessImages() {
|
102 |
$cron_mode = (bool) $_REQUEST['cron_mode'];
|
|
|
|
|
103 |
if ( $cron_mode ) {
|
104 |
$cron_running = WIO_Plugin::app()->getOption( 'cron_running', false );
|
105 |
if ( $cron_running ) {
|
@@ -111,7 +113,6 @@
|
|
111 |
die();
|
112 |
}
|
113 |
$max_process_per_request = 5;
|
114 |
-
$media_library = WIO_Plugin::app()->getMediaLibrary();
|
115 |
$optimized_data = $media_library->processUnoptimizedAttachments( $max_process_per_request );
|
116 |
|
117 |
// если изображения закончились - посылаем команду завершения
|
@@ -169,7 +170,15 @@
|
|
169 |
</div>
|
170 |
|
171 |
<div class="wbcr-factory-page-group-body" style="padding:20px">
|
172 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
173 |
<div class="wio-columns wio-page-statistic">
|
174 |
|
175 |
<div>
|
100 |
*/
|
101 |
public function ajaxProcessImages() {
|
102 |
$cron_mode = (bool) $_REQUEST['cron_mode'];
|
103 |
+
$media_library = WIO_Plugin::app()->getMediaLibrary();
|
104 |
+
$media_library->resetCurrentErrors(); // сбрасываем текущие ошибки оптимизации
|
105 |
if ( $cron_mode ) {
|
106 |
$cron_running = WIO_Plugin::app()->getOption( 'cron_running', false );
|
107 |
if ( $cron_running ) {
|
113 |
die();
|
114 |
}
|
115 |
$max_process_per_request = 5;
|
|
|
116 |
$optimized_data = $media_library->processUnoptimizedAttachments( $max_process_per_request );
|
117 |
|
118 |
// если изображения закончились - посылаем команду завершения
|
170 |
</div>
|
171 |
|
172 |
<div class="wbcr-factory-page-group-body" style="padding:20px">
|
173 |
+
<div class="wio-warning-message">
|
174 |
+
<?php
|
175 |
+
if($this->plugin->getOption('image_optimization_server', 'resmush') == 'resmush'){
|
176 |
+
echo __('There are limitations for the specified server (server 1) – you can’t optimize images with the size greater than <span style="color:red">5MB</span>. But you can enable the “Resizing large images” feature to reduce the image weight due to the proportional resizing before sending the file to the optimization server. ', 'robin-image-optimizer');
|
177 |
+
} else {
|
178 |
+
echo __('There are limitations for the specified server (server 2) – you can’t optimize images with the size greater than <span style="color:red">1MB</span>. But you can enable the “Resizing large images” feature to reduce the image weight due to the proportional resizing before sending the file to the optimization server. Note: this server supports only one compression mode – “Normal”.', 'robin-image-optimizer');
|
179 |
+
}
|
180 |
+
?>
|
181 |
+
</div>
|
182 |
<div class="wio-columns wio-page-statistic">
|
183 |
|
184 |
<div>
|
includes/class.plugin.php
CHANGED
@@ -115,6 +115,7 @@
|
|
115 |
require_once( WIO_PLUGIN_DIR . '/includes/classes/class.media-library.php' );
|
116 |
require_once( WIO_PLUGIN_DIR . '/includes/classes/class.image-processor-abstract.php' );
|
117 |
require_once( WIO_PLUGIN_DIR . '/includes/classes/class.image-processor-resmush.php' ); // resmush api
|
|
|
118 |
require_once( WIO_PLUGIN_DIR . '/includes/classes/class.cron.php' );
|
119 |
require_once( WIO_PLUGIN_DIR . '/includes/classes/class.image-statistic.php' );
|
120 |
require_once( WIO_PLUGIN_DIR . '/includes/classes/class.backup.php' );
|
@@ -139,12 +140,21 @@
|
|
139 |
return self::$app;
|
140 |
}
|
141 |
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
protected function setTextDomain() {
|
146 |
// Localization plugin
|
147 |
-
load_plugin_textdomain('robin-image-optimizer', false, dirname(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
}
|
149 |
|
150 |
/**
|
@@ -207,7 +217,18 @@
|
|
207 |
*/
|
208 |
public function getImageProcessor() {
|
209 |
if ( ! $this->image_processor ) {
|
210 |
-
$this->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
211 |
}
|
212 |
return $this->image_processor;
|
213 |
}
|
115 |
require_once( WIO_PLUGIN_DIR . '/includes/classes/class.media-library.php' );
|
116 |
require_once( WIO_PLUGIN_DIR . '/includes/classes/class.image-processor-abstract.php' );
|
117 |
require_once( WIO_PLUGIN_DIR . '/includes/classes/class.image-processor-resmush.php' ); // resmush api
|
118 |
+
require_once( WIO_PLUGIN_DIR . '/includes/classes/class.image-processor-smushpro.php' ); // smushpro api
|
119 |
require_once( WIO_PLUGIN_DIR . '/includes/classes/class.cron.php' );
|
120 |
require_once( WIO_PLUGIN_DIR . '/includes/classes/class.image-statistic.php' );
|
121 |
require_once( WIO_PLUGIN_DIR . '/includes/classes/class.backup.php' );
|
140 |
return self::$app;
|
141 |
}
|
142 |
|
143 |
+
// todo: перенести этот медот в фреймворк
|
144 |
+
protected function setTextDomain()
|
145 |
+
{
|
|
|
146 |
// Localization plugin
|
147 |
+
//load_plugin_textdomain('robin-image-optimizer', false, dirname(WIO_PLUGIN_BASE) . '/languages/');
|
148 |
+
|
149 |
+
$domain = 'robin-image-optimizer';
|
150 |
+
$locale = apply_filters('plugin_locale', is_admin()
|
151 |
+
? get_user_locale()
|
152 |
+
: get_locale(), $domain);
|
153 |
+
$mofile = $domain . '-' . $locale . '.mo';
|
154 |
+
|
155 |
+
if( !load_textdomain($domain, WIO_PLUGIN_DIR . '/languages/' . $mofile) ) {
|
156 |
+
load_muplugin_textdomain($domain);
|
157 |
+
}
|
158 |
}
|
159 |
|
160 |
/**
|
217 |
*/
|
218 |
public function getImageProcessor() {
|
219 |
if ( ! $this->image_processor ) {
|
220 |
+
$server = $this->getOption( 'image_optimization_server' , 'resmush' );
|
221 |
+
switch( $server ) {
|
222 |
+
case 'resmush':
|
223 |
+
$this->image_processor = new WIO_Image_Processor_Resmush();
|
224 |
+
break;
|
225 |
+
case 'smushpro':
|
226 |
+
$this->image_processor = new WIO_Image_Processor_Smushpro();
|
227 |
+
break;
|
228 |
+
default:
|
229 |
+
$this->image_processor = new WIO_Image_Processor_Resmush();
|
230 |
+
break;
|
231 |
+
}
|
232 |
}
|
233 |
return $this->image_processor;
|
234 |
}
|
includes/classes/class.attachment.php
CHANGED
@@ -123,15 +123,18 @@
|
|
123 |
'quality' => $image_processor->quality( $optimization_level ),
|
124 |
'save_exif' => WIO_Plugin::app()->getOption( 'save_exif_data' , false ),
|
125 |
) );
|
|
|
126 |
// проверяем на ошибку
|
127 |
if ( is_wp_error( $optimized_img_data ) ) {
|
128 |
$errors_count++;
|
129 |
$error_msg = $optimized_img_data->get_error_message();
|
130 |
$this->writeLog( $error_msg );
|
131 |
update_post_meta( $this->get( 'id' ), 'wio_error', $error_msg );
|
|
|
|
|
132 |
} else {
|
133 |
//скачиваем и заменяем картинку
|
134 |
-
$image_downloaded = $this->replaceOriginalFile( $optimized_img_data
|
135 |
if ( $image_downloaded ) {
|
136 |
// оптимизируем дополнительные размеры
|
137 |
$optimized_img_sizes_data = $this->optimizeImageSizes();
|
@@ -154,9 +157,10 @@
|
|
154 |
update_post_meta( $this->get( 'id' ), 'wio_backuped', $is_image_backuped );
|
155 |
|
156 |
delete_post_meta( $this->get( 'id' ), 'wio_error' );
|
|
|
157 |
} else {
|
158 |
$errors_count++;
|
159 |
-
$error_msg = __( '
|
160 |
$this->writeLog( $error_msg );
|
161 |
update_post_meta( $this->get( 'id' ), 'wio_error', $error_msg );
|
162 |
}
|
@@ -232,7 +236,7 @@
|
|
232 |
$errors_count++;
|
233 |
} else {
|
234 |
//скачиваем и заменяем картинку
|
235 |
-
$this->replaceOriginalFile( $optimized_img_data
|
236 |
|
237 |
//просчитываем статистику
|
238 |
$original_size += $optimized_img_data['src_size'];
|
@@ -266,13 +270,20 @@
|
|
266 |
/**
|
267 |
* Заменяет оригинальный файл на оптимизированный
|
268 |
*
|
269 |
-
* @param
|
270 |
* @param string $image_size Размер(thumbnail, medium ... )
|
271 |
*/
|
272 |
-
public function replaceOriginalFile( $
|
273 |
-
|
274 |
-
|
275 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
276 |
if ( ! $optimized_file ) {
|
277 |
return false;
|
278 |
}
|
123 |
'quality' => $image_processor->quality( $optimization_level ),
|
124 |
'save_exif' => WIO_Plugin::app()->getOption( 'save_exif_data' , false ),
|
125 |
) );
|
126 |
+
|
127 |
// проверяем на ошибку
|
128 |
if ( is_wp_error( $optimized_img_data ) ) {
|
129 |
$errors_count++;
|
130 |
$error_msg = $optimized_img_data->get_error_message();
|
131 |
$this->writeLog( $error_msg );
|
132 |
update_post_meta( $this->get( 'id' ), 'wio_error', $error_msg );
|
133 |
+
update_post_meta( $this->get( 'id' ), 'wio_current_error', 1 ); // флаг временной ошибки в пределах текущего цикла
|
134 |
+
delete_post_meta( $this->get( 'id' ), 'wio_optimization_level' );
|
135 |
} else {
|
136 |
//скачиваем и заменяем картинку
|
137 |
+
$image_downloaded = $this->replaceOriginalFile( $optimized_img_data );
|
138 |
if ( $image_downloaded ) {
|
139 |
// оптимизируем дополнительные размеры
|
140 |
$optimized_img_sizes_data = $this->optimizeImageSizes();
|
157 |
update_post_meta( $this->get( 'id' ), 'wio_backuped', $is_image_backuped );
|
158 |
|
159 |
delete_post_meta( $this->get( 'id' ), 'wio_error' );
|
160 |
+
delete_post_meta( $this->get( 'id' ), 'wio_current_error' );
|
161 |
} else {
|
162 |
$errors_count++;
|
163 |
+
$error_msg = __( 'Failed to get optimized image from remote server', 'robin-image-optimizer' );
|
164 |
$this->writeLog( $error_msg );
|
165 |
update_post_meta( $this->get( 'id' ), 'wio_error', $error_msg );
|
166 |
}
|
236 |
$errors_count++;
|
237 |
} else {
|
238 |
//скачиваем и заменяем картинку
|
239 |
+
$this->replaceOriginalFile( $optimized_img_data, $image_size );
|
240 |
|
241 |
//просчитываем статистику
|
242 |
$original_size += $optimized_img_data['src_size'];
|
270 |
/**
|
271 |
* Заменяет оригинальный файл на оптимизированный
|
272 |
*
|
273 |
+
* @param array $optimized_img_data результат оптимизации ввиде массива данных
|
274 |
* @param string $image_size Размер(thumbnail, medium ... )
|
275 |
*/
|
276 |
+
public function replaceOriginalFile( $optimized_img_data, $image_size = '' ) {
|
277 |
+
$optimized_img_url = $optimized_img_data['optimized_img_url'];
|
278 |
+
if ( isset( $optimized_img_data['not_need_download'] ) and $optimized_img_data['not_need_download'] ) {
|
279 |
+
$optimized_file = $optimized_img_url;
|
280 |
+
} else {
|
281 |
+
$optimized_file = $this->remoteDownloadImage( $optimized_img_url );
|
282 |
+
}
|
283 |
+
if ( isset( $optimized_img_data['not_need_replace'] ) and $optimized_img_data['not_need_replace'] ) {
|
284 |
+
// если картинка уже оптимизирована и провайдер её не может уменьшить - он может вернуть положительный ответ, но без самой картинки. В таком случае ничего заменять не надо
|
285 |
+
return true;
|
286 |
+
}
|
287 |
if ( ! $optimized_file ) {
|
288 |
return false;
|
289 |
}
|
includes/classes/class.backup.php
CHANGED
@@ -257,7 +257,7 @@
|
|
257 |
} else {
|
258 |
$restored = false;
|
259 |
$logger = WIO_Plugin::app()->getLogger();
|
260 |
-
$error_msg = __( '
|
261 |
$logger->add( $error_msg . 'Attachment_id: ' . $wio_attachment->get( 'id' ) . ' file: ' . $backup_file );
|
262 |
}
|
263 |
return $restored;
|
257 |
} else {
|
258 |
$restored = false;
|
259 |
$logger = WIO_Plugin::app()->getLogger();
|
260 |
+
$error_msg = __( 'Unable to restore from a backup. There is no file.', 'robin-image-optimizer' );
|
261 |
$logger->add( $error_msg . 'Attachment_id: ' . $wio_attachment->get( 'id' ) . ' file: ' . $backup_file );
|
262 |
}
|
263 |
return $restored;
|
includes/classes/class.image-processor-abstract.php
CHANGED
@@ -34,10 +34,10 @@
|
|
34 |
* @param $url URL для запроса
|
35 |
* @return string
|
36 |
*/
|
37 |
-
protected function request( $url, $post_fields = false ) {
|
38 |
// проверяем, доступен ли CURL
|
39 |
if ( function_exists( 'curl_version' ) ) {
|
40 |
-
return $this->curlRequest( $url, $post_fields );
|
41 |
} else {
|
42 |
return file_get_contents( $url );
|
43 |
}
|
@@ -49,7 +49,7 @@
|
|
49 |
* @param $url URL для запроса
|
50 |
* @return string|WP_Error
|
51 |
*/
|
52 |
-
protected function curlRequest( $url, $post_fields = false ) {
|
53 |
$ch = curl_init();
|
54 |
$timeout = 5;
|
55 |
curl_setopt( $ch, CURLOPT_URL, $url );
|
@@ -59,6 +59,9 @@
|
|
59 |
curl_setopt( $ch, CURLOPT_POST, 1 );
|
60 |
curl_setopt( $ch, CURLOPT_POSTFIELDS, $post_fields );
|
61 |
}
|
|
|
|
|
|
|
62 |
$responce = curl_exec( $ch );
|
63 |
|
64 |
if( curl_errno( $ch ) ) {
|
34 |
* @param $url URL для запроса
|
35 |
* @return string
|
36 |
*/
|
37 |
+
protected function request( $url, $post_fields = false, $headers = false ) {
|
38 |
// проверяем, доступен ли CURL
|
39 |
if ( function_exists( 'curl_version' ) ) {
|
40 |
+
return $this->curlRequest( $url, $post_fields, $headers );
|
41 |
} else {
|
42 |
return file_get_contents( $url );
|
43 |
}
|
49 |
* @param $url URL для запроса
|
50 |
* @return string|WP_Error
|
51 |
*/
|
52 |
+
protected function curlRequest( $url, $post_fields = false, $headers = false ) {
|
53 |
$ch = curl_init();
|
54 |
$timeout = 5;
|
55 |
curl_setopt( $ch, CURLOPT_URL, $url );
|
59 |
curl_setopt( $ch, CURLOPT_POST, 1 );
|
60 |
curl_setopt( $ch, CURLOPT_POSTFIELDS, $post_fields );
|
61 |
}
|
62 |
+
if ( $headers ) {
|
63 |
+
curl_setopt( $ch, CURLOPT_HTTPHEADER, $headers );
|
64 |
+
}
|
65 |
$responce = curl_exec( $ch );
|
66 |
|
67 |
if( curl_errno( $ch ) ) {
|
includes/classes/class.image-processor-smushpro.php
ADDED
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
// Exit if accessed directly
|
4 |
+
if( ! defined( 'ABSPATH' ) ) {
|
5 |
+
exit;
|
6 |
+
}
|
7 |
+
|
8 |
+
/**
|
9 |
+
* Класс для оптимизации изображений через API сервиса smushpro.wpmudev.org
|
10 |
+
* @see https://smushpro.wpmudev.org/
|
11 |
+
* @author Eugene Jokerov <jokerov@gmail.com>
|
12 |
+
* @copyright (c) 2018, Webcraftic
|
13 |
+
* @version 1.0
|
14 |
+
*/
|
15 |
+
class WIO_Image_Processor_Smushpro extends WIO_Image_Processor_Abstract {
|
16 |
+
|
17 |
+
/**
|
18 |
+
* @var string
|
19 |
+
*/
|
20 |
+
protected $api_url = 'https://smushpro.wpmudev.org/1.0/';
|
21 |
+
|
22 |
+
/**
|
23 |
+
* Оптимизация изображения
|
24 |
+
*
|
25 |
+
* @param array $params входные параметры оптимизации изображения
|
26 |
+
* @return array|WP_Error
|
27 |
+
*/
|
28 |
+
public function process( $params ) {
|
29 |
+
/**
|
30 |
+
* @var array параметры оптимизации по умолчанию
|
31 |
+
*/
|
32 |
+
$default_params = array(
|
33 |
+
'image_url' => '', // ссылка на исходное изображение
|
34 |
+
'save_exif' => false, // сохранять ли EXIF данные
|
35 |
+
);
|
36 |
+
$params = wp_parse_args( $params, $default_params );
|
37 |
+
$headers = array();
|
38 |
+
if ( $params['save_exif'] ) {
|
39 |
+
$headers[] = 'exif: true';
|
40 |
+
}
|
41 |
+
if ( function_exists( 'curl_version' ) ) {
|
42 |
+
if ( ! is_file( $params['image_path'] ) ) {
|
43 |
+
return new WP_Error( 'api_error', __( 'file not found', 'robin-image-optimizer' ) );
|
44 |
+
}
|
45 |
+
$img_file = file_get_contents( $params['image_path'] );
|
46 |
+
$responce = $this->request( $this->api_url, $img_file, $headers );
|
47 |
+
} else {
|
48 |
+
return new WP_Error( 'curl_error', __( 'curl not work', 'robin-image-optimizer' ) );
|
49 |
+
}
|
50 |
+
$optimized_image_data = array();
|
51 |
+
if ( is_wp_error( $responce ) ) {
|
52 |
+
$optimized_image_data = $responce;
|
53 |
+
} else {
|
54 |
+
$responce = json_decode( $responce );
|
55 |
+
if ( ! isset( $responce->success ) or ! $responce->success ) {
|
56 |
+
$optimized_image_data = new WP_Error( 'api_error', $responce->data );
|
57 |
+
} else {
|
58 |
+
$image_data = isset( $responce->data->image ) ? base64_decode( $responce->data->image ) : false;
|
59 |
+
$optimized_image_data = array(
|
60 |
+
'optimized_img_url' => $image_data,
|
61 |
+
'src_size' => $responce->data->before_size,
|
62 |
+
'optimized_size' => $responce->data->after_size,
|
63 |
+
'optimized_percent' => $responce->data->compression,
|
64 |
+
'not_need_download' => true,
|
65 |
+
);
|
66 |
+
if ( ! $image_data ) {
|
67 |
+
$optimized_image_data['not_need_replace'] = true;
|
68 |
+
}
|
69 |
+
}
|
70 |
+
}
|
71 |
+
|
72 |
+
return $optimized_image_data;
|
73 |
+
}
|
74 |
+
|
75 |
+
/**
|
76 |
+
* Качество изображения
|
77 |
+
* Для этого провайдера оно не применяется
|
78 |
+
*
|
79 |
+
* @param mixed $quality качество
|
80 |
+
* @return int
|
81 |
+
*/
|
82 |
+
public function quality( $quality = 100 ) {
|
83 |
+
return 100;
|
84 |
+
}
|
85 |
+
}
|
includes/classes/class.media-library.php
CHANGED
@@ -150,6 +150,7 @@
|
|
150 |
{
|
151 |
$backup = WIO_Plugin::app()->getBackup();
|
152 |
$backup_origin_images = WIO_Plugin::app()->getOption('backup_origin_images', false);
|
|
|
153 |
if( $backup_origin_images and !$backup->isBackupWritable() ) {
|
154 |
return array(
|
155 |
'end' => true,
|
@@ -168,12 +169,25 @@
|
|
168 |
'post_mime_type' => array('image/jpeg', 'image/gif', 'image/png'),
|
169 |
'posts_per_page' => 1,
|
170 |
'meta_query' => array(
|
|
|
171 |
array(
|
172 |
-
'
|
173 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
),
|
175 |
array(
|
176 |
-
'key' => '
|
177 |
'compare' => 'NOT EXISTS',
|
178 |
),
|
179 |
)
|
@@ -227,6 +241,23 @@
|
|
227 |
return $responce;
|
228 |
}
|
229 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
230 |
/**
|
231 |
* Восстановление из резервной копии
|
232 |
*
|
@@ -430,9 +461,9 @@
|
|
430 |
if( $optimization_level == 'normal' ) {
|
431 |
echo __('Normal', 'robin-image-optimizer');
|
432 |
} else if( $optimization_level == 'aggresive' ) {
|
433 |
-
echo __('
|
434 |
} else {
|
435 |
-
echo __('
|
436 |
}
|
437 |
}
|
438 |
?>
|
150 |
{
|
151 |
$backup = WIO_Plugin::app()->getBackup();
|
152 |
$backup_origin_images = WIO_Plugin::app()->getOption('backup_origin_images', false);
|
153 |
+
$optimization_level = WIO_Plugin::app()->getOption( 'image_optimization_level' , 'normal' );
|
154 |
if( $backup_origin_images and !$backup->isBackupWritable() ) {
|
155 |
return array(
|
156 |
'end' => true,
|
169 |
'post_mime_type' => array('image/jpeg', 'image/gif', 'image/png'),
|
170 |
'posts_per_page' => 1,
|
171 |
'meta_query' => array(
|
172 |
+
'relation' => 'AND',
|
173 |
array(
|
174 |
+
'relation' => 'OR',
|
175 |
+
array(
|
176 |
+
'key' => 'wio_optimized',
|
177 |
+
'compare' => 'NOT EXISTS',
|
178 |
+
),
|
179 |
+
array(
|
180 |
+
'key' => 'wio_optimization_level',
|
181 |
+
'value' => $optimization_level,
|
182 |
+
'compare' => '!=',
|
183 |
+
),
|
184 |
+
array(
|
185 |
+
'key' => 'wio_error',
|
186 |
+
'compare' => 'EXISTS',
|
187 |
+
),
|
188 |
),
|
189 |
array(
|
190 |
+
'key' => 'wio_current_error',
|
191 |
'compare' => 'NOT EXISTS',
|
192 |
),
|
193 |
)
|
241 |
return $responce;
|
242 |
}
|
243 |
|
244 |
+
/**
|
245 |
+
* Сбрасывает текущие ошибки оптимизации
|
246 |
+
* Позволяет изображениям, которые оптимизированы с ошибкой, заново пройти оптимизацию.
|
247 |
+
*
|
248 |
+
* @return void
|
249 |
+
*/
|
250 |
+
public function resetCurrentErrors() {
|
251 |
+
global $wpdb;
|
252 |
+
$wpdb->delete(
|
253 |
+
$wpdb->postmeta,
|
254 |
+
array(
|
255 |
+
'meta_key' => 'wio_current_error',
|
256 |
+
),
|
257 |
+
array( '%s' )
|
258 |
+
);
|
259 |
+
}
|
260 |
+
|
261 |
/**
|
262 |
* Восстановление из резервной копии
|
263 |
*
|
461 |
if( $optimization_level == 'normal' ) {
|
462 |
echo __('Normal', 'robin-image-optimizer');
|
463 |
} else if( $optimization_level == 'aggresive' ) {
|
464 |
+
echo __('Medium', 'robin-image-optimizer');
|
465 |
} else {
|
466 |
+
echo __('High', 'robin-image-optimizer');
|
467 |
}
|
468 |
}
|
469 |
?>
|
languages/robin-image-optimizer-ru_RU.mo
CHANGED
Binary file
|
languages/robin-image-optimizer-ru_RU.po
CHANGED
@@ -1,502 +1,610 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: Image optimizer\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2018-
|
6 |
-
"PO-Revision-Date: 2018-
|
7 |
-
"Last-Translator: Alexander Parfilov <alexparfilov@gmail.com>\n"
|
8 |
-
"Language-Team:
|
9 |
-
"Language: ru_RU\n"
|
10 |
-
"
|
11 |
-
"
|
12 |
-
"
|
13 |
-
"
|
14 |
-
"
|
15 |
-
"
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
"
|
39 |
-
"
|
40 |
-
|
41 |
-
|
42 |
-
"
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
"
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
#:
|
72 |
-
msgid "
|
73 |
-
msgstr "
|
74 |
-
|
75 |
-
#: admin/pages/settings.php:
|
76 |
-
msgid ""
|
77 |
-
"
|
78 |
-
"
|
79 |
-
"
|
80 |
-
"
|
81 |
-
|
82 |
-
"
|
83 |
-
"
|
84 |
-
|
85 |
-
"
|
86 |
-
"
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
"
|
96 |
-
"
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
"
|
113 |
-
"
|
114 |
-
"
|
115 |
-
"
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
#: admin/pages/settings.php:
|
142 |
-
msgid "
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
"
|
148 |
-
|
149 |
-
|
150 |
-
"
|
151 |
-
"
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
"
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
"
|
166 |
-
"
|
167 |
-
|
168 |
-
|
169 |
-
"
|
170 |
-
"
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
msgstr ""
|
181 |
-
"
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
"
|
191 |
-
"
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
"
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
msgstr "
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
"
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
"
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
"
|
222 |
-
"
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
#: admin/pages/settings.php:
|
229 |
-
msgid "
|
230 |
-
msgstr "
|
231 |
-
|
232 |
-
#: admin/pages/settings.php:
|
233 |
-
msgid "
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
"
|
239 |
-
"
|
240 |
-
|
241 |
-
"
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
msgstr "
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
msgstr "
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
"
|
290 |
-
msgstr ""
|
291 |
-
|
292 |
-
|
293 |
-
"
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
"
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
#: admin/pages/settings.php:
|
327 |
-
msgid "
|
328 |
-
msgstr "
|
329 |
-
|
330 |
-
#: admin/pages/
|
331 |
-
msgid "
|
332 |
-
msgstr "
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
"
|
342 |
-
msgstr ""
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
"
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
#: admin/pages/statistic.php:
|
382 |
-
msgid "
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
"
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
#: admin/pages/statistic.php:
|
396 |
-
msgid "
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
#: admin/pages/statistic.php:
|
412 |
-
msgid "
|
413 |
-
msgstr "Вы
|
414 |
-
|
415 |
-
#: admin/pages/statistic.php:
|
416 |
-
msgid "
|
417 |
-
msgstr "
|
418 |
-
|
419 |
-
#: admin/pages/statistic.php:
|
420 |
-
msgid "
|
421 |
-
msgstr "
|
422 |
-
|
423 |
-
#:
|
424 |
-
msgid "
|
425 |
-
msgstr "
|
426 |
-
|
427 |
-
#:
|
428 |
-
msgid "
|
429 |
-
msgstr "
|
430 |
-
|
431 |
-
#:
|
432 |
-
msgid "
|
433 |
-
msgstr "
|
434 |
-
|
435 |
-
#:
|
436 |
-
msgid "
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
#:
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
#:
|
477 |
-
msgid "
|
478 |
-
msgstr "
|
479 |
-
|
480 |
-
#:
|
481 |
-
msgid "
|
482 |
-
msgstr "
|
483 |
-
|
484 |
-
#:
|
485 |
-
msgid "
|
486 |
-
msgstr "
|
487 |
-
|
488 |
-
#: includes/
|
489 |
-
msgid "
|
490 |
-
msgstr "
|
491 |
-
|
492 |
-
|
493 |
-
msgid ""
|
494 |
-
"
|
495 |
-
|
496 |
-
|
497 |
-
"
|
498 |
-
"
|
499 |
-
|
500 |
-
|
501 |
-
msgid "
|
502 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Image optimizer\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2018-08-26 01:25+0300\n"
|
6 |
+
"PO-Revision-Date: 2018-08-26 01:34+0300\n"
|
7 |
+
"Last-Translator: Alexander Parfilov <alexparfilov@gmail.com>\n"
|
8 |
+
"Language-Team: \n"
|
9 |
+
"Language: ru_RU\n"
|
10 |
+
"MIME-Version: 1.0\n"
|
11 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
+
"Content-Transfer-Encoding: 8bit\n"
|
13 |
+
"X-Generator: Poedit 2.1.1\n"
|
14 |
+
"X-Poedit-Basepath: ..\n"
|
15 |
+
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
16 |
+
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
17 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
18 |
+
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c\n"
|
19 |
+
"X-Poedit-SearchPath-0: .\n"
|
20 |
+
"X-Poedit-SearchPathExcluded-0: libs\n"
|
21 |
+
"X-Poedit-SearchPathExcluded-1: .git\n"
|
22 |
+
|
23 |
+
#: admin/pages/log.php:41 admin/pages/log.php:84 admin/pages/log.php:95
|
24 |
+
#: admin/pages/settings.php:257
|
25 |
+
msgid "Error Log"
|
26 |
+
msgstr "Журнал ошибок"
|
27 |
+
|
28 |
+
#: admin/pages/log.php:83 admin/pages/statistic.php:84
|
29 |
+
#: includes/classes/class.media-library.php:387
|
30 |
+
msgid "Image optimizer"
|
31 |
+
msgstr "Оптим. изображений"
|
32 |
+
|
33 |
+
#: admin/pages/log.php:98
|
34 |
+
msgid ""
|
35 |
+
"In this section, you can track image optimization errors. Sending this log "
|
36 |
+
"to us, will help in solving possible optimization issues."
|
37 |
+
msgstr ""
|
38 |
+
"В этом разделе вы можете отследить ошибки оптимизации изображений. Отправка "
|
39 |
+
"этого лога нам, поможет в решении возможных проблем с оптимизацией."
|
40 |
+
|
41 |
+
#: admin/pages/settings.php:40 admin/pages/settings.php:167
|
42 |
+
msgid "Main Settings"
|
43 |
+
msgstr "Основные настройки"
|
44 |
+
|
45 |
+
#: admin/pages/settings.php:143
|
46 |
+
msgid "Folder wp-content/uploads/ is unavailable for writing"
|
47 |
+
msgstr "Папка wp-content/uploads/ недоступна для записи"
|
48 |
+
|
49 |
+
#: admin/pages/settings.php:147
|
50 |
+
msgid "Folder wp-content/uploads/wio-backup/ is unavailable for writing"
|
51 |
+
msgstr "Папка wp-content/uploads/wio-backup/ недоступна для записи"
|
52 |
+
|
53 |
+
#: admin/pages/settings.php:150
|
54 |
+
msgid "Cron is disabled in wp-config.php"
|
55 |
+
msgstr "Crom отключен в wp-config.php"
|
56 |
+
|
57 |
+
#: admin/pages/settings.php:167
|
58 |
+
msgid "This section you can set main images optimization settings."
|
59 |
+
msgstr ""
|
60 |
+
"В этом разделе вы можете настроить основные параметры оптимизации "
|
61 |
+
"изображений."
|
62 |
+
|
63 |
+
#: admin/pages/settings.php:173
|
64 |
+
msgid "Optimization server"
|
65 |
+
msgstr "Сервер оптимизации"
|
66 |
+
|
67 |
+
#: admin/pages/settings.php:177
|
68 |
+
msgid "Server 1 (recommended) - image size limit up to 5 MB"
|
69 |
+
msgstr "Сервер 1 (рекомендуется) - вес изображений не должен превышать 5МБ"
|
70 |
+
|
71 |
+
#: admin/pages/settings.php:182
|
72 |
+
msgid "Server 2 - image size limit up to 1 MB"
|
73 |
+
msgstr "Сервер 2 - вес изображений не должен превышать 1МБ"
|
74 |
+
|
75 |
+
#: admin/pages/settings.php:186
|
76 |
+
msgid ""
|
77 |
+
"We use several free servers for image optimization and can’t fully guarantee "
|
78 |
+
"their stable performance. The server can be not available in some countries "
|
79 |
+
"due to the political reasons. There is a solution: if one of the servers is "
|
80 |
+
"not available or can’t optimize the image, you can try to switch to the "
|
81 |
+
"alternative server. Each server has individual limitations for image weight "
|
82 |
+
"and optimization level. By default, you have the best server with minimum "
|
83 |
+
"limitations."
|
84 |
+
msgstr ""
|
85 |
+
"Мы используем несколько бесплатных серверов для оптимизации изображений и не "
|
86 |
+
"можем полностью гарантировать их работу. В некоторых странах сервер может "
|
87 |
+
"быть недоступен из-за политических причин. Мы предусмотрели несколько "
|
88 |
+
"вариантов, в случае если один из серверов недоступен или не может "
|
89 |
+
"оптимизировать изображения, вы можете попробовать переключиться на "
|
90 |
+
"альтернативный сервер. Каждый сервер имеет индивидуальные ограничения на вес "
|
91 |
+
"оптимизированных изображений и на уровень оптимизации. По умолчанию всегда "
|
92 |
+
"установлен самый лучший сервер с наименьшими ограничениями."
|
93 |
+
|
94 |
+
#: admin/pages/settings.php:195
|
95 |
+
msgid "Compression mode"
|
96 |
+
msgstr "Режим сжатия"
|
97 |
+
|
98 |
+
#: admin/pages/settings.php:199 admin/pages/statistic.php:353
|
99 |
+
#: includes/classes/class.media-library.php:462
|
100 |
+
#: includes/classes/class.media-library.php:489
|
101 |
+
msgid "Normal"
|
102 |
+
msgstr "Нормальный"
|
103 |
+
|
104 |
+
#: admin/pages/settings.php:200
|
105 |
+
msgid ""
|
106 |
+
"This mode provides lossless compression and your images will be optimized "
|
107 |
+
"without visible changes. If you want an ideal image quality, we recommend "
|
108 |
+
"this mode. The size of the files will be reduced approximately 2 times. If "
|
109 |
+
"this is not enough for you, try other modes."
|
110 |
+
msgstr ""
|
111 |
+
"Этот режим обеспечивает сжатие без потерь и ваши изображения будут "
|
112 |
+
"оптимизированы без видимых изменений. Если вы хотите идеальное качество "
|
113 |
+
"изображений, мы рекомендуем этот режим. Размер фалов уменьшится "
|
114 |
+
"приблизительно в 2 раза. Если вам этого недостаточно, попробуйте другие "
|
115 |
+
"режимы."
|
116 |
+
|
117 |
+
#: admin/pages/settings.php:204 admin/pages/statistic.php:354
|
118 |
+
#: includes/classes/class.media-library.php:464
|
119 |
+
#: includes/classes/class.media-library.php:495
|
120 |
+
msgid "Medium"
|
121 |
+
msgstr "Средний"
|
122 |
+
|
123 |
+
#: admin/pages/settings.php:205
|
124 |
+
msgid ""
|
125 |
+
"This mode provides an ideal optimization of your images without significant "
|
126 |
+
"quality loss. The file size will be reduced approximately 5 times with a "
|
127 |
+
"slight decrease in image quality. In most cases that cannot be seen with the "
|
128 |
+
"naked eye."
|
129 |
+
msgstr ""
|
130 |
+
"Этот режим обеспечивает идеальную оптимизацию ваших изображений без "
|
131 |
+
"существенных потерь качества. Размер файлов уменьшиться приблизительно в 5 "
|
132 |
+
"раз при незначительном снижении качества изображений. Чаще всего, "
|
133 |
+
"невооружённым взглядом это даже не заметно."
|
134 |
+
|
135 |
+
#: admin/pages/settings.php:209 admin/pages/statistic.php:355
|
136 |
+
#: includes/classes/class.media-library.php:466
|
137 |
+
#: includes/classes/class.media-library.php:501
|
138 |
+
msgid "High"
|
139 |
+
msgstr "Высокий"
|
140 |
+
|
141 |
+
#: admin/pages/settings.php:210
|
142 |
+
msgid ""
|
143 |
+
"This mode will use all available optimization methods for maximum image "
|
144 |
+
"compression. The file size will be reduced approximately 7 times. The "
|
145 |
+
"quality of some images may deteriorate slightly. Use this mode if you need "
|
146 |
+
"the maximum weight reduction, and you are ready to accept the loss of image "
|
147 |
+
"quality."
|
148 |
+
msgstr ""
|
149 |
+
"Этот режим будет использовать все доступные методы оптимизации для "
|
150 |
+
"максимального сжатия изображения. Размер файлов уменьшится приблизительно в "
|
151 |
+
"7 раз. Качество некоторых изображений может немного ухудшиться. Используйте "
|
152 |
+
"этот режим, если вам требуется максимальное снижение веса, и вы готовы "
|
153 |
+
"смириться с потерей качества изображений."
|
154 |
+
|
155 |
+
#: admin/pages/settings.php:214
|
156 |
+
msgid "Select the compression mode appropriate for your case."
|
157 |
+
msgstr "Выберите режим сжатия, подходящий для вашей ситуации."
|
158 |
+
|
159 |
+
#: admin/pages/settings.php:235
|
160 |
+
msgid "Auto optimization on upload"
|
161 |
+
msgstr "Автоматическая оптимизация изображений при загрузке"
|
162 |
+
|
163 |
+
#: admin/pages/settings.php:237
|
164 |
+
msgid ""
|
165 |
+
"Automatically compress all images that you upload directly to the WordPress "
|
166 |
+
"media library, when editing pages and posts or using themes and plugins."
|
167 |
+
msgstr ""
|
168 |
+
"Автоматическое сжатие всех изображений, которые вы загружаете в "
|
169 |
+
"медиабиблиотеку WordPress напрямую, при редактировании страниц и записей или "
|
170 |
+
"с использованием тем и плагинов."
|
171 |
+
|
172 |
+
#: admin/pages/settings.php:246
|
173 |
+
msgid "Backup images"
|
174 |
+
msgstr "Резервное копирование изображений"
|
175 |
+
|
176 |
+
#: admin/pages/settings.php:248
|
177 |
+
msgid ""
|
178 |
+
"Before optimizing, all your images will be saved in a separate folder for "
|
179 |
+
"future recovery."
|
180 |
+
msgstr ""
|
181 |
+
"Перед началом оптимизации, все ваши изображения будут сохранены в отдельной "
|
182 |
+
"папке для возможности восстановления в будущем."
|
183 |
+
|
184 |
+
#: admin/pages/settings.php:259
|
185 |
+
msgid "Enable error logging. The log will be displayed on a separate tab."
|
186 |
+
msgstr ""
|
187 |
+
"Включить ведение журнала ошибок. Он будет отображаться на отдельной вкладке."
|
188 |
+
|
189 |
+
#: admin/pages/settings.php:274
|
190 |
+
msgid "Leave EXIF data"
|
191 |
+
msgstr "Оставлять данные EXIF"
|
192 |
+
|
193 |
+
#: admin/pages/settings.php:276
|
194 |
+
msgid ""
|
195 |
+
"EXIF is information stored in photos: camera model, shutter speed, exposure "
|
196 |
+
"compensation, ISO, GPS, etc. By default, the plugin removes EXIF extended "
|
197 |
+
"data. If your project is dedicated to photography and you need to display "
|
198 |
+
"this data, then enable this option."
|
199 |
+
msgstr ""
|
200 |
+
"EXIF - это информация, хранящаяся в фотографиях: модель камеры, скорость "
|
201 |
+
"затвора, компенсация экспозиции, ISO, GPS и т. Д. По умолчанию плагин "
|
202 |
+
"удаляет расширенные данные EXIF. Если ваш проект посвящён фотографии и вам "
|
203 |
+
"нужно отображать эти данные, то включите эту опцию."
|
204 |
+
|
205 |
+
#: admin/pages/settings.php:282
|
206 |
+
msgid "Optimization"
|
207 |
+
msgstr "Оптимизация"
|
208 |
+
|
209 |
+
#: admin/pages/settings.php:282
|
210 |
+
msgid "Here you can specify additional image optimization options."
|
211 |
+
msgstr ""
|
212 |
+
"Здесь вы можете задать дополнительные параметры оптимизации изображений."
|
213 |
+
|
214 |
+
#: admin/pages/settings.php:290
|
215 |
+
msgid "Resizing large images"
|
216 |
+
msgstr "Изменение размера больших изображений"
|
217 |
+
|
218 |
+
#: admin/pages/settings.php:292
|
219 |
+
msgid ""
|
220 |
+
"When you upload images from a camera or stock, they may be too high "
|
221 |
+
"resolution and it is not necessary for web. The option allows you to "
|
222 |
+
"automatically change images resolution on upload."
|
223 |
+
msgstr ""
|
224 |
+
"Когда вы закачиваете изображения с камеры или фотостока, они могут быть "
|
225 |
+
"слишком высокого разрешения и для веба это не нужно. Опция позволяет "
|
226 |
+
"автоматически изменять разрешение изображений при загрузке."
|
227 |
+
|
228 |
+
#: admin/pages/settings.php:308
|
229 |
+
msgid "Enter the maximum size (px)"
|
230 |
+
msgstr "Введите максимальный размер (px)"
|
231 |
+
|
232 |
+
#: admin/pages/settings.php:310
|
233 |
+
msgid ""
|
234 |
+
"Set the maximum images resolution on the long side. For horizontal images, "
|
235 |
+
"this will be the width, and for vertical images - the height. The resolution "
|
236 |
+
"of the images will be changed proportionally according to the set value."
|
237 |
+
msgstr ""
|
238 |
+
"Задайте максимальное разрешение изображений по длинной стороне. Для "
|
239 |
+
"горизонтальных изображений это будет ширина, а для вертикальных — высота. "
|
240 |
+
"Разрешение изображений будет изменено пропорционально в соответствии с "
|
241 |
+
"заданным значением."
|
242 |
+
|
243 |
+
#: admin/pages/settings.php:328
|
244 |
+
msgid "Optimize thumbnails"
|
245 |
+
msgstr "Оптимизировать миниатюры"
|
246 |
+
|
247 |
+
#: admin/pages/settings.php:331
|
248 |
+
msgid ""
|
249 |
+
"Choose which sizes of thumbnails should be optimized and uncheck those that "
|
250 |
+
"do not need optimization."
|
251 |
+
msgstr ""
|
252 |
+
"Выберите какие размеры миниатюр следует оптимизировать и снимите галочки с "
|
253 |
+
"тех, оптимизация которых не нужна."
|
254 |
+
|
255 |
+
#: admin/pages/settings.php:338
|
256 |
+
msgid "Scheduled optimization"
|
257 |
+
msgstr "Оптимизация по расписанию"
|
258 |
+
|
259 |
+
#: admin/pages/settings.php:338
|
260 |
+
msgid "Schedule your images optimization."
|
261 |
+
msgstr "Настройка оптимизации изображений по расписанию."
|
262 |
+
|
263 |
+
#: admin/pages/settings.php:346
|
264 |
+
msgid "Enable Scheduled Optimization"
|
265 |
+
msgstr "Включить оптимизацию по расписанию"
|
266 |
+
|
267 |
+
#: admin/pages/settings.php:348
|
268 |
+
msgid ""
|
269 |
+
"You can enable image optimization on schedule. The plugin will optimize "
|
270 |
+
"specified number of images automatically after selected time."
|
271 |
+
msgstr ""
|
272 |
+
"Вы можете включить оптимизацию изображений по расписанию. Через выбранное "
|
273 |
+
"время плагин будет оптимизировать заданное количество изображений "
|
274 |
+
"автоматически."
|
275 |
+
|
276 |
+
#: admin/pages/settings.php:363 includes/classes/class.cron.php:56
|
277 |
+
msgid "1 min"
|
278 |
+
msgstr "1 мин"
|
279 |
+
|
280 |
+
#: admin/pages/settings.php:364 includes/classes/class.cron.php:60
|
281 |
+
msgid "2 min"
|
282 |
+
msgstr "2 мин"
|
283 |
+
|
284 |
+
#: admin/pages/settings.php:365 includes/classes/class.cron.php:64
|
285 |
+
msgid "5 min"
|
286 |
+
msgstr "5 мин"
|
287 |
+
|
288 |
+
#: admin/pages/settings.php:366 includes/classes/class.cron.php:68
|
289 |
+
msgid "10 min"
|
290 |
+
msgstr "10 мин"
|
291 |
+
|
292 |
+
#: admin/pages/settings.php:367 includes/classes/class.cron.php:72
|
293 |
+
msgid "30 min"
|
294 |
+
msgstr "30 мин"
|
295 |
+
|
296 |
+
#: admin/pages/settings.php:368
|
297 |
+
msgid "Hour"
|
298 |
+
msgstr "1 час"
|
299 |
+
|
300 |
+
#: admin/pages/settings.php:369
|
301 |
+
msgid "Day"
|
302 |
+
msgstr "1 день"
|
303 |
+
|
304 |
+
#: admin/pages/settings.php:372
|
305 |
+
msgid "Run every"
|
306 |
+
msgstr "Запускать через"
|
307 |
+
|
308 |
+
#: admin/pages/settings.php:373
|
309 |
+
msgid "Select time at which the task will be repeated."
|
310 |
+
msgstr "Выберите время, через которое будет повторяться задание."
|
311 |
+
|
312 |
+
#: admin/pages/settings.php:380
|
313 |
+
msgid "Images per iteration"
|
314 |
+
msgstr "Количество изображений за итерацию"
|
315 |
+
|
316 |
+
#: admin/pages/settings.php:382
|
317 |
+
msgid ""
|
318 |
+
"Specify the number of images that will be optimized during the job. For "
|
319 |
+
"example, if you enter 5 and select 5 min, the plugin will optimize 5 images "
|
320 |
+
"every 5 minutes."
|
321 |
+
msgstr ""
|
322 |
+
"Задайте количество изображений, которое будут оптимизировано во время "
|
323 |
+
"выполнения задания. Например, если вы введёте 5 и выберете 5 мин., то плагин "
|
324 |
+
"будет оптимизировать 5 изображений каждые 5 минут."
|
325 |
+
|
326 |
+
#: admin/pages/settings.php:411
|
327 |
+
msgid "Manage backups"
|
328 |
+
msgstr "Управление резервными копиями"
|
329 |
+
|
330 |
+
#: admin/pages/settings.php:412
|
331 |
+
msgid "You can restore the original images from a backup or clear them."
|
332 |
+
msgstr ""
|
333 |
+
"Вы можете восстановить оригинальные изображения из резервной копии или "
|
334 |
+
"очистить их."
|
335 |
+
|
336 |
+
#: admin/pages/settings.php:419
|
337 |
+
msgid "Are you sure?"
|
338 |
+
msgstr "Вы уверены?"
|
339 |
+
|
340 |
+
#: admin/pages/settings.php:419
|
341 |
+
msgid "Restore"
|
342 |
+
msgstr "Восстановить"
|
343 |
+
|
344 |
+
#: admin/pages/settings.php:420
|
345 |
+
msgid "Are you sure that you want to clear image backups folder?"
|
346 |
+
msgstr ""
|
347 |
+
"Вы действительно хотите очистить папку с резервными копиями изображений?"
|
348 |
+
|
349 |
+
#: admin/pages/settings.php:420
|
350 |
+
msgid "Clear Backup"
|
351 |
+
msgstr "Очистить резервные копии"
|
352 |
+
|
353 |
+
#: admin/pages/settings.php:427
|
354 |
+
msgid "Restore completed."
|
355 |
+
msgstr "Восстановление завершено."
|
356 |
+
|
357 |
+
#: admin/pages/settings.php:428
|
358 |
+
msgid "The backup folder was cleared."
|
359 |
+
msgstr "Папка с резервными копиями очищена."
|
360 |
+
|
361 |
+
#: admin/pages/statistic.php:46
|
362 |
+
msgid "Robin image optimizer"
|
363 |
+
msgstr ""
|
364 |
+
|
365 |
+
#: admin/pages/statistic.php:85
|
366 |
+
msgid "General"
|
367 |
+
msgstr "Основные"
|
368 |
+
|
369 |
+
#: admin/pages/statistic.php:165
|
370 |
+
msgid "Image optimization dashboard"
|
371 |
+
msgstr "Панель управления оптимизацией изображений"
|
372 |
+
|
373 |
+
#: admin/pages/statistic.php:168
|
374 |
+
msgid ""
|
375 |
+
"Monitor image optimization statistics and run on demand or scheduled "
|
376 |
+
"optimization."
|
377 |
+
msgstr ""
|
378 |
+
"Отслеживайте статистику оптимизации изображений и запускайте оптимизацию по "
|
379 |
+
"требованию или по расписанию."
|
380 |
+
|
381 |
+
#: admin/pages/statistic.php:176
|
382 |
+
msgid ""
|
383 |
+
"There are limitations for the specified server (server 1) – you can’t "
|
384 |
+
"optimize images with the size greater than <span style=\"color:red\">5MB</"
|
385 |
+
"span>. But you can enable the “Resizing large images” feature to reduce the "
|
386 |
+
"image weight due to the proportional resizing before sending the file to the "
|
387 |
+
"optimization server. "
|
388 |
+
msgstr ""
|
389 |
+
"Для выбранного вами сервера (сервер 1) есть ограничения, вы не можете "
|
390 |
+
"оптимизировать изображения весом более <span style=\"color:red\">5МБ</span>. "
|
391 |
+
"Но вы можете включить опцию \"Изменение размера больших изображений\", чтобы "
|
392 |
+
"уменьшить вес изображений за счет пропорционального изменения размера, до "
|
393 |
+
"его отправки на сервер оптимизации"
|
394 |
+
|
395 |
+
#: admin/pages/statistic.php:178
|
396 |
+
msgid ""
|
397 |
+
"There are limitations for the specified server (server 2) – you can’t "
|
398 |
+
"optimize images with the size greater than <span style=\"color:red\">1MB</"
|
399 |
+
"span>. But you can enable the “Resizing large images” feature to reduce the "
|
400 |
+
"image weight due to the proportional resizing before sending the file to the "
|
401 |
+
"optimization server. Note: this server supports only one compression mode – "
|
402 |
+
"“Normal”."
|
403 |
+
msgstr ""
|
404 |
+
"Для выбранного вами сервера (сервер 2) есть ограничения, вы не можете "
|
405 |
+
"оптимизировать изображения весом более <span style=\"color:red\">1МБ</span>. "
|
406 |
+
"Но вы можете включить опцию \"Изменение размера больших изображений\", чтобы "
|
407 |
+
"уменьшить вес изображений за счет пропорционального изменения размера, до "
|
408 |
+
"его отправки на сервер оптимизации. Также данный сервер поддерживает только "
|
409 |
+
"один режим сжатия \"Нормальный\"."
|
410 |
+
|
411 |
+
#: admin/pages/statistic.php:189
|
412 |
+
msgid "You optimized"
|
413 |
+
msgstr "Вы оптимизировали"
|
414 |
+
|
415 |
+
#: admin/pages/statistic.php:189
|
416 |
+
msgid "of your website's images"
|
417 |
+
msgstr "изображений сайта"
|
418 |
+
|
419 |
+
#: admin/pages/statistic.php:196 admin/pages/statistic.php:321
|
420 |
+
msgid "Unoptimized"
|
421 |
+
msgstr "Не оптимизировано"
|
422 |
+
|
423 |
+
#: admin/pages/statistic.php:197 admin/pages/statistic.php:322
|
424 |
+
msgid "Optimized"
|
425 |
+
msgstr "Оптимизировано"
|
426 |
+
|
427 |
+
#: admin/pages/statistic.php:198 admin/pages/statistic.php:323
|
428 |
+
msgid "Error"
|
429 |
+
msgstr "Ошибка"
|
430 |
+
|
431 |
+
#: admin/pages/statistic.php:201
|
432 |
+
msgid "Statistics"
|
433 |
+
msgstr "Статистика"
|
434 |
+
|
435 |
+
#: admin/pages/statistic.php:207
|
436 |
+
msgid ""
|
437 |
+
"that's the number of original images<br> you optimized with Image Optimizer"
|
438 |
+
msgstr ""
|
439 |
+
"количество исходных изображений<br> которые вы оптимизировали с Image "
|
440 |
+
"Optimizer"
|
441 |
+
|
442 |
+
#: admin/pages/statistic.php:213 admin/pages/statistic.php:327
|
443 |
+
msgid "Original size"
|
444 |
+
msgstr "Оригинальный размер"
|
445 |
+
|
446 |
+
#: admin/pages/statistic.php:218 admin/pages/statistic.php:332
|
447 |
+
msgid "Optimized size"
|
448 |
+
msgstr "Оптимизированный размер"
|
449 |
+
|
450 |
+
#: admin/pages/statistic.php:229
|
451 |
+
msgid "that's the size you saved <br>by using Image Optimizer"
|
452 |
+
msgstr ""
|
453 |
+
"вы сохранили благодаря<br>\n"
|
454 |
+
"Image Optimizer"
|
455 |
+
|
456 |
+
#: admin/pages/statistic.php:241 admin/pages/statistic.php:345
|
457 |
+
msgid "All images from the media library are optimized."
|
458 |
+
msgstr "Все изображения из медиабиблиотеки оптимизированы."
|
459 |
+
|
460 |
+
#: admin/pages/statistic.php:243 admin/pages/statistic.php:347
|
461 |
+
msgid "Optimization in progress. Remained"
|
462 |
+
msgstr "Идёт оптимизация. Осталось"
|
463 |
+
|
464 |
+
#: admin/pages/statistic.php:243
|
465 |
+
msgid "images."
|
466 |
+
msgstr "изображений."
|
467 |
+
|
468 |
+
#: admin/pages/statistic.php:263 admin/pages/statistic.php:271
|
469 |
+
msgid "Run"
|
470 |
+
msgstr "Запустить"
|
471 |
+
|
472 |
+
#: admin/pages/statistic.php:269 admin/pages/statistic.php:275
|
473 |
+
msgid "Stop"
|
474 |
+
msgstr "Остановить"
|
475 |
+
|
476 |
+
#: admin/pages/statistic.php:275
|
477 |
+
msgid "Do you want to start optimization without backup?"
|
478 |
+
msgstr "Вы хотите начать оптимизацию без возможности восстановления?"
|
479 |
+
|
480 |
+
#: admin/pages/statistic.php:275
|
481 |
+
msgid "Resume"
|
482 |
+
msgstr "Возобновить"
|
483 |
+
|
484 |
+
#: admin/pages/statistic.php:310
|
485 |
+
msgid "Images optimization"
|
486 |
+
msgstr "Оптимизация изображений"
|
487 |
+
|
488 |
+
#: includes/class.plugin.php:85
|
489 |
+
msgid "An invalid instance of the class was passed."
|
490 |
+
msgstr "Был принят недопустимый экземпляр класса."
|
491 |
+
|
492 |
+
#: includes/classes/class.attachment.php:163
|
493 |
+
msgid "Failed to get optimized image from remote server"
|
494 |
+
msgstr "Не удалось получить оптимизированное изображение с удаленного сервера"
|
495 |
+
|
496 |
+
#: includes/classes/class.backup.php:77
|
497 |
+
msgid "Unable to create backup folder."
|
498 |
+
msgstr "Невозможно создать папку для резервного копирования."
|
499 |
+
|
500 |
+
#: includes/classes/class.backup.php:132
|
501 |
+
msgid "Unable to create backup subfolder."
|
502 |
+
msgstr "Невозможно создать подпапку для резервного копирования."
|
503 |
+
|
504 |
+
#: includes/classes/class.backup.php:260
|
505 |
+
msgid "Unable to restore from a backup. There is no file."
|
506 |
+
msgstr "Не удалось восстановить из резервной копии. Нет файла."
|
507 |
+
|
508 |
+
#: includes/classes/class.cron.php:76
|
509 |
+
msgid "60 min"
|
510 |
+
msgstr "60 мин"
|
511 |
+
|
512 |
+
#: includes/classes/class.cron.php:80
|
513 |
+
msgid "daily"
|
514 |
+
msgstr "ежедневно"
|
515 |
+
|
516 |
+
#: includes/classes/class.image-processor-smushpro.php:43
|
517 |
+
msgid "file not found"
|
518 |
+
msgstr "файл не найден"
|
519 |
+
|
520 |
+
#: includes/classes/class.image-processor-smushpro.php:48
|
521 |
+
msgid "curl not work"
|
522 |
+
msgstr "curl не работает"
|
523 |
+
|
524 |
+
#: includes/classes/class.media-library.php:157
|
525 |
+
msgid "No access for writing backups."
|
526 |
+
msgstr "Нет доступа для записи резервных копий."
|
527 |
+
|
528 |
+
#: includes/classes/class.media-library.php:163
|
529 |
+
msgid "The uploads folder is not writable."
|
530 |
+
msgstr "Папка uploads недоступна для записи."
|
531 |
+
|
532 |
+
#: includes/classes/class.media-library.php:445
|
533 |
+
msgid "New Filesize:"
|
534 |
+
msgstr "Новый размер:"
|
535 |
+
|
536 |
+
#: includes/classes/class.media-library.php:448
|
537 |
+
msgid "Original Saving:"
|
538 |
+
msgstr "Сжатие:"
|
539 |
+
|
540 |
+
#: includes/classes/class.media-library.php:454
|
541 |
+
msgid "Original Filesize:"
|
542 |
+
msgstr "Размер оригинала:"
|
543 |
+
|
544 |
+
#: includes/classes/class.media-library.php:457
|
545 |
+
msgid "Level:"
|
546 |
+
msgstr "Уровень:"
|
547 |
+
|
548 |
+
#: includes/classes/class.media-library.php:473
|
549 |
+
msgid "Thumbnails Optimized:"
|
550 |
+
msgstr "Оптимизированные миниатюры:"
|
551 |
+
|
552 |
+
#: includes/classes/class.media-library.php:477
|
553 |
+
msgid "Overall Saving:"
|
554 |
+
msgstr "Общее сохранение:"
|
555 |
+
|
556 |
+
#: includes/classes/class.media-library.php:482
|
557 |
+
msgid "Error Message:"
|
558 |
+
msgstr "Сообщение об ошибке:"
|
559 |
+
|
560 |
+
#: includes/classes/class.media-library.php:488
|
561 |
+
#: includes/classes/class.media-library.php:494
|
562 |
+
#: includes/classes/class.media-library.php:500
|
563 |
+
#: includes/classes/class.media-library.php:515
|
564 |
+
msgid "Optimization in progress"
|
565 |
+
msgstr "Выполняется оптимизация"
|
566 |
+
|
567 |
+
#: includes/classes/class.media-library.php:489
|
568 |
+
#: includes/classes/class.media-library.php:495
|
569 |
+
#: includes/classes/class.media-library.php:501
|
570 |
+
msgid "Re-Optimize to"
|
571 |
+
msgstr "Пережать в"
|
572 |
+
|
573 |
+
#: includes/classes/class.media-library.php:506
|
574 |
+
msgid "Recovery in progress"
|
575 |
+
msgstr "Восстанавливается"
|
576 |
+
|
577 |
+
#: includes/classes/class.media-library.php:506
|
578 |
+
msgid "Restore original"
|
579 |
+
msgstr "Восстановить оригинал"
|
580 |
+
|
581 |
+
#: includes/classes/class.media-library.php:515
|
582 |
+
msgid "Optimize"
|
583 |
+
msgstr "Оптимизировать"
|
584 |
+
|
585 |
+
#: robin-image-optimizer.php:27
|
586 |
+
msgid ""
|
587 |
+
"We found that you have the \"Clearfy - wordpress optimization plugin\" "
|
588 |
+
"plugin installed, this plugin already has disable comments functions, so you "
|
589 |
+
"can deactivate plugin \"Image optimizer\"!"
|
590 |
+
msgstr ""
|
591 |
+
"Мы обнаружили, что у вас установлен плагин «Clearfy - wordpress optimization "
|
592 |
+
"plugin», этот плагин уже имеет функции оптимизации изображений, поэтому вы "
|
593 |
+
"можете отключить плагин «Оптимизатор изображений»!"
|
594 |
+
|
595 |
+
#: robin-image-optimizer.php:106
|
596 |
+
msgid "Webcraftic Robin image optimizer"
|
597 |
+
msgstr ""
|
598 |
+
|
599 |
+
#~ msgid "Webcraftic Image optimizer"
|
600 |
+
#~ msgstr "Webcraftic Image optimizer"
|
601 |
+
|
602 |
+
#~ msgid ""
|
603 |
+
#~ "Optimize images without losing quality, speed up your website load, "
|
604 |
+
#~ "improve SEO and save money on server and CDN bandwidth."
|
605 |
+
#~ msgstr ""
|
606 |
+
#~ "Оптимизируйте изображения без потери качества, ускоряйте загрузку сайта, "
|
607 |
+
#~ "улучшайте SEO и экономьте на трафик сервера и CDN."
|
608 |
+
|
609 |
+
#~ msgid "Webcraftic <wordpress.webraftic@gmail.com>"
|
610 |
+
#~ msgstr "Webcraftic <wordpress.webraftic@gmail.com>"
|
languages/robin-image-optimizer.pot
DELETED
@@ -1,447 +0,0 @@
|
|
1 |
-
#, fuzzy
|
2 |
-
msgid ""
|
3 |
-
msgstr ""
|
4 |
-
"Project-Id-Version: Image optimizer\n"
|
5 |
-
"Report-Msgid-Bugs-To: \n"
|
6 |
-
"POT-Creation-Date: 2018-06-25 21:12+0000\n"
|
7 |
-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
8 |
-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
9 |
-
"Language-Team: \n"
|
10 |
-
"Language: \n"
|
11 |
-
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
12 |
-
"MIME-Version: 1.0\n"
|
13 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
-
"Content-Transfer-Encoding: 8bit\n"
|
15 |
-
"X-Generator: Loco https://localise.biz/"
|
16 |
-
|
17 |
-
#: image-optimizer.php:106
|
18 |
-
msgid "Webcraftic Image optimizer"
|
19 |
-
msgstr ""
|
20 |
-
|
21 |
-
#: includes/class.plugin.php:85
|
22 |
-
msgid "An invalid instance of the class was passed."
|
23 |
-
msgstr ""
|
24 |
-
|
25 |
-
#: admin/pages/log.php:40 admin/pages/log.php:66 admin/pages/log.php:76
|
26 |
-
#: admin/pages/settings.php:217
|
27 |
-
msgid "Error Log"
|
28 |
-
msgstr ""
|
29 |
-
|
30 |
-
#. Name of the plugin
|
31 |
-
#: admin/pages/log.php:65 admin/pages/statistic.php:41
|
32 |
-
#: admin/pages/statistic.php:69
|
33 |
-
msgid "Image optimizer"
|
34 |
-
msgstr ""
|
35 |
-
|
36 |
-
#: admin/pages/log.php:79
|
37 |
-
msgid ""
|
38 |
-
"In this section, you can track image optimization errors. Sending this log "
|
39 |
-
"to us, will help in solving possible optimization issues."
|
40 |
-
msgstr ""
|
41 |
-
|
42 |
-
#: admin/pages/settings.php:40 admin/pages/settings.php:147
|
43 |
-
msgid "Main Settings"
|
44 |
-
msgstr ""
|
45 |
-
|
46 |
-
#: admin/pages/settings.php:123
|
47 |
-
msgid "Folder wp-content/uploads/ is unavailable for writing"
|
48 |
-
msgstr ""
|
49 |
-
|
50 |
-
#: admin/pages/settings.php:127
|
51 |
-
msgid "Folder wp-content/uploads/wio-backup/ is unavailable for writing"
|
52 |
-
msgstr ""
|
53 |
-
|
54 |
-
#: admin/pages/settings.php:130
|
55 |
-
msgid "Cron is disabled in wp-config.php"
|
56 |
-
msgstr ""
|
57 |
-
|
58 |
-
#: admin/pages/settings.php:147
|
59 |
-
msgid "This section you can set main images optimization settings."
|
60 |
-
msgstr ""
|
61 |
-
|
62 |
-
#: admin/pages/settings.php:155
|
63 |
-
msgid "Compression mode"
|
64 |
-
msgstr ""
|
65 |
-
|
66 |
-
#: admin/pages/settings.php:159 admin/pages/statistic.php:324
|
67 |
-
#: includes/classes/class.media-library.php:396
|
68 |
-
msgid "Normal"
|
69 |
-
msgstr ""
|
70 |
-
|
71 |
-
#: admin/pages/settings.php:160
|
72 |
-
msgid ""
|
73 |
-
"This mode provides lossless compression and your images will be optimized "
|
74 |
-
"without visible changes. If you want an ideal image quality, we recommend "
|
75 |
-
"this mode. The size of the files will be reduced approximately 2 times. If "
|
76 |
-
"this is not enough for you, try other modes."
|
77 |
-
msgstr ""
|
78 |
-
|
79 |
-
#: admin/pages/settings.php:164 admin/pages/statistic.php:325
|
80 |
-
#: includes/classes/class.media-library.php:401
|
81 |
-
msgid "Medium"
|
82 |
-
msgstr ""
|
83 |
-
|
84 |
-
#: admin/pages/settings.php:165
|
85 |
-
msgid ""
|
86 |
-
"This mode provides an ideal optimization of your images without significant "
|
87 |
-
"quality loss. The file size will be reduced approximately 5 times with a "
|
88 |
-
"slight decrease in image quality. In most cases that cannot be seen with the "
|
89 |
-
"naked eye."
|
90 |
-
msgstr ""
|
91 |
-
|
92 |
-
#: admin/pages/settings.php:169 admin/pages/statistic.php:326
|
93 |
-
#: includes/classes/class.media-library.php:406
|
94 |
-
msgid "High"
|
95 |
-
msgstr ""
|
96 |
-
|
97 |
-
#: admin/pages/settings.php:170
|
98 |
-
msgid ""
|
99 |
-
"This mode will use all available optimization methods for maximum image "
|
100 |
-
"compression. The file size will be reduced approximately 7 times. The "
|
101 |
-
"quality of some images may deteriorate slightly. Use this mode if you need "
|
102 |
-
"the maximum weight reduction, and you are ready to accept the loss of image "
|
103 |
-
"quality."
|
104 |
-
msgstr ""
|
105 |
-
|
106 |
-
#: admin/pages/settings.php:174
|
107 |
-
msgid "Select the compression mode appropriate for your case."
|
108 |
-
msgstr ""
|
109 |
-
|
110 |
-
#: admin/pages/settings.php:195
|
111 |
-
msgid "Auto optimization on upload"
|
112 |
-
msgstr ""
|
113 |
-
|
114 |
-
#: admin/pages/settings.php:197
|
115 |
-
msgid ""
|
116 |
-
"Automatically compress all images that you upload directly to the WordPress "
|
117 |
-
"media library, when editing pages and posts or using themes and plugins."
|
118 |
-
msgstr ""
|
119 |
-
|
120 |
-
#: admin/pages/settings.php:206
|
121 |
-
msgid "Backup images"
|
122 |
-
msgstr ""
|
123 |
-
|
124 |
-
#: admin/pages/settings.php:208
|
125 |
-
msgid ""
|
126 |
-
"Before optimizing, all your images will be saved in a separate folder for "
|
127 |
-
"future recovery."
|
128 |
-
msgstr ""
|
129 |
-
|
130 |
-
#: admin/pages/settings.php:219
|
131 |
-
msgid "Enable error logging. The log will be displayed on a separate tab."
|
132 |
-
msgstr ""
|
133 |
-
|
134 |
-
#: admin/pages/settings.php:234
|
135 |
-
msgid "Leave EXIF data"
|
136 |
-
msgstr ""
|
137 |
-
|
138 |
-
#: admin/pages/settings.php:236
|
139 |
-
msgid ""
|
140 |
-
"EXIF is information stored in photos: camera model, shutter speed, exposure "
|
141 |
-
"compensation, ISO, GPS, etc. By default, the plugin removes EXIF extended "
|
142 |
-
"data. If your project is dedicated to photography and you need to display "
|
143 |
-
"this data, then enable this option."
|
144 |
-
msgstr ""
|
145 |
-
|
146 |
-
#: admin/pages/settings.php:242
|
147 |
-
msgid "Optimization"
|
148 |
-
msgstr ""
|
149 |
-
|
150 |
-
#: admin/pages/settings.php:242
|
151 |
-
msgid "Here you can specify additional image optimization options."
|
152 |
-
msgstr ""
|
153 |
-
|
154 |
-
#: admin/pages/settings.php:250
|
155 |
-
msgid "Resizing large images"
|
156 |
-
msgstr ""
|
157 |
-
|
158 |
-
#: admin/pages/settings.php:252
|
159 |
-
msgid ""
|
160 |
-
"When you upload images from a camera or stock, they may be too high "
|
161 |
-
"resolution and it is not necessary for web. The option allows you to "
|
162 |
-
"automatically change images resolution on upload."
|
163 |
-
msgstr ""
|
164 |
-
|
165 |
-
#: admin/pages/settings.php:268
|
166 |
-
msgid "Enter the maximum size (px)"
|
167 |
-
msgstr ""
|
168 |
-
|
169 |
-
#: admin/pages/settings.php:270
|
170 |
-
msgid ""
|
171 |
-
"Set the maximum images resolution on the long side. For horizontal images, "
|
172 |
-
"this will be the width, and for vertical images - the height. The resolution "
|
173 |
-
"of the images will be changed proportionally according to the set value."
|
174 |
-
msgstr ""
|
175 |
-
|
176 |
-
#: admin/pages/settings.php:288
|
177 |
-
msgid "Optimize thumbnails"
|
178 |
-
msgstr ""
|
179 |
-
|
180 |
-
#: admin/pages/settings.php:291
|
181 |
-
msgid ""
|
182 |
-
"Choose which sizes of thumbnails should be optimized and uncheck those that "
|
183 |
-
"do not need optimization."
|
184 |
-
msgstr ""
|
185 |
-
|
186 |
-
#: admin/pages/settings.php:298
|
187 |
-
msgid "Scheduled optimization"
|
188 |
-
msgstr ""
|
189 |
-
|
190 |
-
#: admin/pages/settings.php:298
|
191 |
-
msgid "Schedule your images optimization."
|
192 |
-
msgstr ""
|
193 |
-
|
194 |
-
#: admin/pages/settings.php:306
|
195 |
-
msgid "Enable Scheduled Optimization"
|
196 |
-
msgstr ""
|
197 |
-
|
198 |
-
#: admin/pages/settings.php:308
|
199 |
-
msgid ""
|
200 |
-
"You can enable image optimization on schedule. The plugin will optimize "
|
201 |
-
"specified number of images automatically after selected time."
|
202 |
-
msgstr ""
|
203 |
-
|
204 |
-
#: admin/pages/settings.php:323 includes/classes/class.cron.php:56
|
205 |
-
msgid "1 min"
|
206 |
-
msgstr ""
|
207 |
-
|
208 |
-
#: admin/pages/settings.php:324 includes/classes/class.cron.php:60
|
209 |
-
msgid "2 min"
|
210 |
-
msgstr ""
|
211 |
-
|
212 |
-
#: admin/pages/settings.php:325 includes/classes/class.cron.php:64
|
213 |
-
msgid "5 min"
|
214 |
-
msgstr ""
|
215 |
-
|
216 |
-
#: admin/pages/settings.php:326 includes/classes/class.cron.php:68
|
217 |
-
msgid "10 min"
|
218 |
-
msgstr ""
|
219 |
-
|
220 |
-
#: admin/pages/settings.php:327 includes/classes/class.cron.php:72
|
221 |
-
msgid "30 min"
|
222 |
-
msgstr ""
|
223 |
-
|
224 |
-
#: admin/pages/settings.php:328
|
225 |
-
msgid "Hour"
|
226 |
-
msgstr ""
|
227 |
-
|
228 |
-
#: admin/pages/settings.php:329
|
229 |
-
msgid "Day"
|
230 |
-
msgstr ""
|
231 |
-
|
232 |
-
#: admin/pages/settings.php:332
|
233 |
-
msgid "Run every"
|
234 |
-
msgstr ""
|
235 |
-
|
236 |
-
#: admin/pages/settings.php:333
|
237 |
-
msgid "Select time at which the task will be repeated."
|
238 |
-
msgstr ""
|
239 |
-
|
240 |
-
#: admin/pages/settings.php:340
|
241 |
-
msgid "Images per iteration"
|
242 |
-
msgstr ""
|
243 |
-
|
244 |
-
#: admin/pages/settings.php:342
|
245 |
-
msgid ""
|
246 |
-
"Specify the number of images that will be optimized during the job. For "
|
247 |
-
"example, if you enter 5 and select 5 min, the plugin will optimize 5 images "
|
248 |
-
"every 5 minutes."
|
249 |
-
msgstr ""
|
250 |
-
|
251 |
-
#: admin/pages/settings.php:371
|
252 |
-
msgid "Manage backups"
|
253 |
-
msgstr ""
|
254 |
-
|
255 |
-
#: admin/pages/settings.php:372
|
256 |
-
msgid "You can restore the original images from a backup or clear them."
|
257 |
-
msgstr ""
|
258 |
-
|
259 |
-
#: admin/pages/settings.php:379
|
260 |
-
msgid "Are you sure?"
|
261 |
-
msgstr ""
|
262 |
-
|
263 |
-
#: admin/pages/settings.php:379
|
264 |
-
msgid "Restore"
|
265 |
-
msgstr ""
|
266 |
-
|
267 |
-
#: admin/pages/settings.php:380
|
268 |
-
msgid "Are you sure that you want to clear image backups folder?"
|
269 |
-
msgstr ""
|
270 |
-
|
271 |
-
#: admin/pages/settings.php:380
|
272 |
-
msgid "Clear Backup"
|
273 |
-
msgstr ""
|
274 |
-
|
275 |
-
#: admin/pages/settings.php:387
|
276 |
-
msgid "Restore completed."
|
277 |
-
msgstr ""
|
278 |
-
|
279 |
-
#: admin/pages/settings.php:388
|
280 |
-
msgid "The backup folder was cleared."
|
281 |
-
msgstr ""
|
282 |
-
|
283 |
-
#: admin/pages/statistic.php:70
|
284 |
-
msgid "General"
|
285 |
-
msgstr ""
|
286 |
-
|
287 |
-
#: admin/pages/statistic.php:144
|
288 |
-
msgid "Image optimization dashboard"
|
289 |
-
msgstr ""
|
290 |
-
|
291 |
-
#: admin/pages/statistic.php:147
|
292 |
-
msgid ""
|
293 |
-
"Monitor image optimization statistics and run on demand or scheduled "
|
294 |
-
"optimization."
|
295 |
-
msgstr ""
|
296 |
-
|
297 |
-
#: admin/pages/statistic.php:160
|
298 |
-
msgid "You optimized"
|
299 |
-
msgstr ""
|
300 |
-
|
301 |
-
#: admin/pages/statistic.php:160
|
302 |
-
msgid "of your website's images"
|
303 |
-
msgstr ""
|
304 |
-
|
305 |
-
#: admin/pages/statistic.php:167 admin/pages/statistic.php:292
|
306 |
-
msgid "Unoptimized"
|
307 |
-
msgstr ""
|
308 |
-
|
309 |
-
#: admin/pages/statistic.php:168 admin/pages/statistic.php:293
|
310 |
-
msgid "Optimized"
|
311 |
-
msgstr ""
|
312 |
-
|
313 |
-
#: admin/pages/statistic.php:169 admin/pages/statistic.php:294
|
314 |
-
msgid "Error"
|
315 |
-
msgstr ""
|
316 |
-
|
317 |
-
#: admin/pages/statistic.php:172
|
318 |
-
msgid "Statistics"
|
319 |
-
msgstr ""
|
320 |
-
|
321 |
-
#: admin/pages/statistic.php:178
|
322 |
-
msgid ""
|
323 |
-
"that's the number of original images<br> you optimized with Image Optimizer"
|
324 |
-
msgstr ""
|
325 |
-
|
326 |
-
#: admin/pages/statistic.php:184 admin/pages/statistic.php:298
|
327 |
-
msgid "Original size"
|
328 |
-
msgstr ""
|
329 |
-
|
330 |
-
#: admin/pages/statistic.php:189 admin/pages/statistic.php:303
|
331 |
-
msgid "Optimized size"
|
332 |
-
msgstr ""
|
333 |
-
|
334 |
-
#: admin/pages/statistic.php:200
|
335 |
-
msgid "that's the size you saved <br>by using Image Optimizer"
|
336 |
-
msgstr ""
|
337 |
-
|
338 |
-
#: admin/pages/statistic.php:212 admin/pages/statistic.php:316
|
339 |
-
msgid "All images from the media library are optimized."
|
340 |
-
msgstr ""
|
341 |
-
|
342 |
-
#: admin/pages/statistic.php:214 admin/pages/statistic.php:318
|
343 |
-
msgid "Optimization in progress. Remained"
|
344 |
-
msgstr ""
|
345 |
-
|
346 |
-
#: admin/pages/statistic.php:214
|
347 |
-
msgid "images."
|
348 |
-
msgstr ""
|
349 |
-
|
350 |
-
#: admin/pages/statistic.php:234 admin/pages/statistic.php:242
|
351 |
-
msgid "Run"
|
352 |
-
msgstr ""
|
353 |
-
|
354 |
-
#: admin/pages/statistic.php:240 admin/pages/statistic.php:246
|
355 |
-
msgid "Stop"
|
356 |
-
msgstr ""
|
357 |
-
|
358 |
-
#: admin/pages/statistic.php:246
|
359 |
-
msgid "Do you want to start optimization without backup?"
|
360 |
-
msgstr ""
|
361 |
-
|
362 |
-
#: admin/pages/statistic.php:246
|
363 |
-
msgid "Resume"
|
364 |
-
msgstr ""
|
365 |
-
|
366 |
-
#: admin/pages/statistic.php:281
|
367 |
-
msgid "Images optimization"
|
368 |
-
msgstr ""
|
369 |
-
|
370 |
-
#: includes/classes/class.backup.php:77
|
371 |
-
msgid "Unable to create backup folder."
|
372 |
-
msgstr ""
|
373 |
-
|
374 |
-
#: includes/classes/class.backup.php:132
|
375 |
-
msgid "Unable to create backup subfolder."
|
376 |
-
msgstr ""
|
377 |
-
|
378 |
-
#: includes/classes/class.cron.php:76
|
379 |
-
msgid "60 min"
|
380 |
-
msgstr ""
|
381 |
-
|
382 |
-
#: includes/classes/class.cron.php:80
|
383 |
-
msgid "daily"
|
384 |
-
msgstr ""
|
385 |
-
|
386 |
-
#: includes/classes/class.media-library.php:148
|
387 |
-
msgid "No access for writing backups."
|
388 |
-
msgstr ""
|
389 |
-
|
390 |
-
#: includes/classes/class.media-library.php:154
|
391 |
-
msgid "The uploads folder is not writable."
|
392 |
-
msgstr ""
|
393 |
-
|
394 |
-
#: includes/classes/class.media-library.php:380
|
395 |
-
msgid "New Filesize:"
|
396 |
-
msgstr ""
|
397 |
-
|
398 |
-
#: includes/classes/class.media-library.php:382
|
399 |
-
msgid "Original Saving:"
|
400 |
-
msgstr ""
|
401 |
-
|
402 |
-
#: includes/classes/class.media-library.php:387
|
403 |
-
msgid "Original Filesize:"
|
404 |
-
msgstr ""
|
405 |
-
|
406 |
-
#: includes/classes/class.media-library.php:388
|
407 |
-
msgid "Level:"
|
408 |
-
msgstr ""
|
409 |
-
|
410 |
-
#: includes/classes/class.media-library.php:390
|
411 |
-
msgid "Error Message:"
|
412 |
-
msgstr ""
|
413 |
-
|
414 |
-
#: includes/classes/class.media-library.php:395
|
415 |
-
#: includes/classes/class.media-library.php:400
|
416 |
-
#: includes/classes/class.media-library.php:405
|
417 |
-
#: includes/classes/class.media-library.php:418
|
418 |
-
msgid "Optimization in progress"
|
419 |
-
msgstr ""
|
420 |
-
|
421 |
-
#: includes/classes/class.media-library.php:396
|
422 |
-
#: includes/classes/class.media-library.php:401
|
423 |
-
#: includes/classes/class.media-library.php:406
|
424 |
-
msgid "Re-Optimize to"
|
425 |
-
msgstr ""
|
426 |
-
|
427 |
-
#: includes/classes/class.media-library.php:410
|
428 |
-
msgid "Recovery in progress"
|
429 |
-
msgstr ""
|
430 |
-
|
431 |
-
#: includes/classes/class.media-library.php:410
|
432 |
-
msgid "Restore original"
|
433 |
-
msgstr ""
|
434 |
-
|
435 |
-
#: includes/classes/class.media-library.php:418
|
436 |
-
msgid "Optimize"
|
437 |
-
msgstr ""
|
438 |
-
|
439 |
-
#. Description of the plugin
|
440 |
-
msgid ""
|
441 |
-
"Optimize images without losing quality, speed up your website load, improve "
|
442 |
-
"SEO and save money on server and CDN bandwidth."
|
443 |
-
msgstr ""
|
444 |
-
|
445 |
-
#. Author of the plugin
|
446 |
-
msgid "Webcraftic <wordpress.webraftic@gmail.com>"
|
447 |
-
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
=== Robin image optimizer — save money on image compression
|
2 |
Tags: image, optimizer, image optimization, resmush.it, smush, jpg, png, gif, optimization, compression, Compress, Images, Pictures, Reduce Image Size, Smush, Smush.it
|
3 |
Contributors: webcraftic
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VDX7JNTQPNPFW
|
@@ -51,6 +51,10 @@ We invite you to check out a few other related free plugins that our team has al
|
|
51 |
* [WordPress Assets manager, dequeue scripts, dequeue styles](https://wordpress.org/plugins/gonzales/ "WordPress Assets manager, dequeue scripts, dequeue styles")
|
52 |
* [Hide login page](https://wordpress.org/plugins/hide-login-page/ "Hide login page")
|
53 |
|
|
|
|
|
|
|
|
|
54 |
== Translations ==
|
55 |
|
56 |
* English - default, always included
|
@@ -91,7 +95,12 @@ Yes. By enabling the backup feature in the plugin, you can re-optimize any image
|
|
91 |
2. The simple interface
|
92 |
|
93 |
== Changelog ==
|
94 |
-
= 1.0.
|
|
|
|
|
|
|
|
|
|
|
95 |
* Fixed: Images are saved in a size 0 bytes
|
96 |
* Fixed: Trying to backup file with empty filename
|
97 |
* Fixed: Curl replacement for file_get_contents
|
1 |
+
=== Robin image optimizer — save money on image compression ===
|
2 |
Tags: image, optimizer, image optimization, resmush.it, smush, jpg, png, gif, optimization, compression, Compress, Images, Pictures, Reduce Image Size, Smush, Smush.it
|
3 |
Contributors: webcraftic
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VDX7JNTQPNPFW
|
51 |
* [WordPress Assets manager, dequeue scripts, dequeue styles](https://wordpress.org/plugins/gonzales/ "WordPress Assets manager, dequeue scripts, dequeue styles")
|
52 |
* [Hide login page](https://wordpress.org/plugins/hide-login-page/ "Hide login page")
|
53 |
|
54 |
+
#### Thanks the authors of plugins ####
|
55 |
+
We used some useful functions from plugins **Imagify Image Optimizer**, **Smush Image Compression and Optimization**, **EWWW Image Optimizer**, **reSmush.it Image Optimizer**, **ShortPixel Image Optimizer**,.
|
56 |
+
|
57 |
+
|
58 |
== Translations ==
|
59 |
|
60 |
* English - default, always included
|
95 |
2. The simple interface
|
96 |
|
97 |
== Changelog ==
|
98 |
+
= 1.0.8 =
|
99 |
+
* Added: Ability to re-optimize images with errors.
|
100 |
+
* Fixed: Some bugs
|
101 |
+
* Added: An alternative server for image optimization. Now you can select an alternative optimization server if the current server is unavailable.
|
102 |
+
* Fixed: Problems with translations
|
103 |
+
= 1.0.7
|
104 |
* Fixed: Images are saved in a size 0 bytes
|
105 |
* Fixed: Trying to backup file with empty filename
|
106 |
* Fixed: Curl replacement for file_get_contents
|
robin-image-optimizer.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: https://wordpress.org/plugins/robin-image-optimizer/
|
5 |
* Description: Optimize images without losing quality, speed up your website load, improve SEO and save money on server and CDN bandwidth.
|
6 |
* Author: Webcraftic <wordpress.webraftic@gmail.com>
|
7 |
-
* Version: 1.0.
|
8 |
* Text Domain: image-optimizer
|
9 |
* Domain Path: /languages/
|
10 |
* Author URI: https://clearfy.pro
|
@@ -71,7 +71,7 @@
|
|
71 |
// имя плагина, как уникальный идентификатор
|
72 |
'plugin_title' => __('Webcraftic Robin image optimizer', 'robin-image-optimizer'),
|
73 |
// заголовок плагина
|
74 |
-
'plugin_version' => '1.0.
|
75 |
// текущая версия плагина
|
76 |
'required_php_version' => '5.2',
|
77 |
// минимальная версия php для работы плагина
|
@@ -79,7 +79,7 @@
|
|
79 |
// минимальная версия wp для работы плагина
|
80 |
'plugin_build' => 'free',
|
81 |
// сборка плагина
|
82 |
-
|
83 |
));
|
84 |
}
|
85 |
}
|
4 |
* Plugin URI: https://wordpress.org/plugins/robin-image-optimizer/
|
5 |
* Description: Optimize images without losing quality, speed up your website load, improve SEO and save money on server and CDN bandwidth.
|
6 |
* Author: Webcraftic <wordpress.webraftic@gmail.com>
|
7 |
+
* Version: 1.0.8
|
8 |
* Text Domain: image-optimizer
|
9 |
* Domain Path: /languages/
|
10 |
* Author URI: https://clearfy.pro
|
71 |
// имя плагина, как уникальный идентификатор
|
72 |
'plugin_title' => __('Webcraftic Robin image optimizer', 'robin-image-optimizer'),
|
73 |
// заголовок плагина
|
74 |
+
'plugin_version' => '1.0.8',
|
75 |
// текущая версия плагина
|
76 |
'required_php_version' => '5.2',
|
77 |
// минимальная версия php для работы плагина
|
79 |
// минимальная версия wp для работы плагина
|
80 |
'plugin_build' => 'free',
|
81 |
// сборка плагина
|
82 |
+
'updates' => WIO_PLUGIN_DIR . '/updates/'
|
83 |
));
|
84 |
}
|
85 |
}
|
updates/010008.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php #comp-page builds: premium
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Updates for altering the table used to store statistics data.
|
5 |
+
* Adds new columns and renames existing ones in order to add support for the new social buttons.
|
6 |
+
*/
|
7 |
+
class WIOUpdate010008 extends Wbcr_Factory406_Update {
|
8 |
+
|
9 |
+
public function install()
|
10 |
+
{
|
11 |
+
WIO_Plugin::app()->updateOption('image_optimization_server', 'resmush');
|
12 |
+
}
|
13 |
+
}
|
updates/index.php
ADDED
File without changes
|