Version Description
- Complete French translation
- Plugin translation fix
Download this release
Release Info
Developer | resmushit |
Plugin | reSmush.it Image Optimizer |
Version | 0.2.1 |
Comparing to | |
See all releases |
Code changes from version 0.2.0 to 0.2.1
- classes/resmushitUI.class.php +43 -43
- languages/resmushit-fr_FR.mo +0 -0
- languages/resmushit-fr_FR.po +0 -192
- languages/resmushit-image-optimizer-fr_FR.mo +0 -0
- languages/resmushit-image-optimizer-fr_FR.po +337 -0
- languages/{resmushit-it_IT.mo → resmushit-image-optimizer-it_IT.mo} +0 -0
- languages/{resmushit-it_IT.po → resmushit-image-optimizer-it_IT.po} +0 -0
- languages/{resmushit-sk_SK.mo → resmushit-image-optimizer-sk_SK.mo} +0 -0
- languages/{resmushit-sk_SK.po → resmushit-image-optimizer-sk_SK.po} +0 -0
- languages/resmushit-image-optimizer.pot +309 -0
- languages/resmushit.pot +0 -188
- readme.txt +6 -2
- resmushit.admin.php +4 -4
- resmushit.inc.php +8 -8
- resmushit.php +13 -5
- resmushit.settings.php +1 -1
classes/resmushitUI.class.php
CHANGED
@@ -87,19 +87,19 @@ Class reSmushitUI {
|
|
87 |
* @return none
|
88 |
*/
|
89 |
public static function settingsPanel() {
|
90 |
-
self::fullWidthPanelWrapper(__('Settings', 'resmushit'), null, 'orange');
|
91 |
-
$new_label = "<span class='new'>" . __("New!", 'resmushit') . "</span>";
|
92 |
echo '<div class="rsmt-settings">
|
93 |
<form method="post" action="options.php" id="rsmt-options-form">';
|
94 |
settings_fields( 'resmushit-settings' );
|
95 |
do_settings_sections( 'resmushit-settings' );
|
96 |
|
97 |
echo '<table class="form-table">'
|
98 |
-
. self::addSetting("text", __("Image quality", 'resmushit'), __("Default value is 92. The quality factor must be between 0 (very weak) and 100 (best quality)", 'resmushit'), "resmushit_qlty")
|
99 |
-
. self::addSetting("checkbox", __("Optimize on upload", 'resmushit'), __("All future images uploaded will be automatically optimized", 'resmushit'), "resmushit_on_upload")
|
100 |
-
. self::addSetting("checkbox", __("Enable statistics", 'resmushit'), __("Generates statistics about optimized pictures", 'resmushit'), "resmushit_statistics")
|
101 |
-
. self::addSetting("checkbox", __("Enable logs", 'resmushit'), __("Enable file logging (for developers)", 'resmushit'), "resmushit_logs")
|
102 |
-
. self::addSetting("checkbox", $new_label . __("Process optimize on CRON", 'resmushit'), __("Will perform image optimization process through CRON tasks", 'resmushit'), "resmushit_cron")
|
103 |
. '</table>';
|
104 |
submit_button();
|
105 |
echo '</form></div>';
|
@@ -118,7 +118,7 @@ Class reSmushitUI {
|
|
118 |
public static function bulkPanel() {
|
119 |
$dataCountNonOptimizedPictures = reSmushit::getCountNonOptimizedPictures();
|
120 |
$countNonOptimizedPictures = $dataCountNonOptimizedPictures['nonoptimized'];
|
121 |
-
self::fullWidthPanelWrapper(__('Optimize unsmushed pictures', 'resmushit'), null, 'blue');
|
122 |
|
123 |
$additionnalClassNeedOptimization = NULL;
|
124 |
$additionnalClassNoNeedOptimization = 'disabled';
|
@@ -133,30 +133,30 @@ Class reSmushitUI {
|
|
133 |
|
134 |
if(get_option('resmushit_cron') && get_option('resmushit_cron') == 1) {
|
135 |
echo "<em>$countNonOptimizedPictures "
|
136 |
-
. __('non optimized pictures will be automatically optimized', 'resmushit')
|
137 |
. "</em>.</h3><p>"
|
138 |
-
. __('These pictures will be automatically using schedule tasks (cronjobs).', 'resmushit')
|
139 |
. " "
|
140 |
-
. __('Image optimization process can be launched <b>manually</b> by clicking on the button below :', 'resmushit');
|
141 |
} else {
|
142 |
-
echo __('There is currently', 'resmushit')
|
143 |
. " <em>$countNonOptimizedPictures "
|
144 |
-
. __('non optimized pictures', 'resmushit')
|
145 |
. "</em>.</h3><p>"
|
146 |
-
. __('This action will resmush all pictures which have not been optimized to the good Image Quality Rate.', 'resmushit');
|
147 |
}
|
148 |
|
149 |
echo "</p><p class='submit' id='bulk-resize-examine-button'><button class='button-primary' onclick='resmushit_bulk_resize(\"bulk_resize_image_list\");'>";
|
150 |
|
151 |
if(get_option('resmushit_cron') && get_option('resmushit_cron') == 1) {
|
152 |
-
echo __('Optimize all pictures manually', 'resmushit');
|
153 |
} else {
|
154 |
-
echo __('Optimize all pictures', 'resmushit');
|
155 |
}
|
156 |
|
157 |
echo "</button></p><div id='bulk_resize_image_list'></div></div>"
|
158 |
. "<div class='optimized-wrapper $additionnalClassNoNeedOptimization'><h3 class='icon_message ok'>"
|
159 |
-
. __('Congrats ! All your pictures are correctly optimized', 'resmushit')
|
160 |
. "</h3></div></div>";
|
161 |
self::fullWidthPanelEndWrapper();
|
162 |
}
|
@@ -176,7 +176,7 @@ Class reSmushitUI {
|
|
176 |
if(!$countfilesTooBigPictures)
|
177 |
return false;
|
178 |
|
179 |
-
self::fullWidthPanelWrapper(__('Files non optimized', 'resmushit'), null, 'grey');
|
180 |
|
181 |
$additionnalClass = NULL;
|
182 |
if(!$countfilesTooBigPictures) {
|
@@ -187,12 +187,12 @@ Class reSmushitUI {
|
|
187 |
<h3 class='icon_message info'>";
|
188 |
|
189 |
if($countfilesTooBigPictures > 1) {
|
190 |
-
echo $countfilesTooBigPictures . ' ' . __('pictures are too big (> 5MB) for the optimizer', 'resmushit');
|
191 |
} else {
|
192 |
-
echo $countfilesTooBigPictures . ' ' . __('picture is too big (> 5MB) for the optimizer', 'resmushit');
|
193 |
}
|
194 |
echo "</h3><div class='list-accordion'><h4>"
|
195 |
-
. __('List of files above 5MB', 'resmushit')
|
196 |
. "</h4><ul>";
|
197 |
|
198 |
foreach($getNonOptimizedPictures->filestoobig as $file){
|
@@ -224,39 +224,39 @@ Class reSmushitUI {
|
|
224 |
public static function statisticsPanel() {
|
225 |
if(!get_option('resmushit_statistics'))
|
226 |
return false;
|
227 |
-
self::fullWidthPanelWrapper(__('Statistics', 'resmushit'), null, 'green');
|
228 |
$resmushit_stat = reSmushit::getStatistics();
|
229 |
|
230 |
echo "<div class='rsmt-statistics'>";
|
231 |
|
232 |
if($resmushit_stat['files_optimized'] != 0) {
|
233 |
echo "<p><strong>"
|
234 |
-
. __('Space saved :', 'resmushit')
|
235 |
. "</strong> <span id='rsmt-statistics-space-saved'>"
|
236 |
. self::sizeFormat($resmushit_stat['total_saved_size'])
|
237 |
. "</span></p><p><strong>"
|
238 |
-
. __('Total reduction :', 'resmushit')
|
239 |
. "</strong> <span id='rsmt-statistics-percent-reduction'>"
|
240 |
. $resmushit_stat['percent_reduction']
|
241 |
. "</span></p><p><strong>"
|
242 |
-
. __('Attachments optimized :', 'resmushit')
|
243 |
. "</strong> <span id='rsmt-statistics-files-optimized'>"
|
244 |
. $resmushit_stat['files_optimized']
|
245 |
. "</span>/<span id='rsmt-statistics-total-picture'>"
|
246 |
. $resmushit_stat['total_pictures']
|
247 |
. "</span></p><p><strong>"
|
248 |
-
. __('Image optimized (including thumbnails) :', 'resmushit')
|
249 |
. "</strong> <span id='rsmt-statistics-files-optimized'>"
|
250 |
. $resmushit_stat['files_optimized_with_thumbnails']
|
251 |
. "</span>/<span id='rsmt-statistics-total-pictures'>"
|
252 |
. $resmushit_stat['total_pictures_with_thumbnails']
|
253 |
. "</span></p><p><strong>"
|
254 |
-
. __('Total images optimized :', 'resmushit')
|
255 |
. "</strong> <span id='rsmt-statistics-total-optimizations'>"
|
256 |
. $resmushit_stat['total_optimizations']
|
257 |
. "</span></p>";
|
258 |
} else {
|
259 |
-
echo "<p>" . __('No picture has been optimized yet ! Add pictures to your Wordpress Media Library.', 'resmushit') . "</p>";
|
260 |
}
|
261 |
echo "</div>";
|
262 |
self::fullWidthPanelEndWrapper();
|
@@ -276,7 +276,7 @@ Class reSmushitUI {
|
|
276 |
|
277 |
echo "<div class='rsmt-news'>";
|
278 |
|
279 |
-
self::fullWidthPanelWrapper(__('News', 'resmushit'), null, 'red');
|
280 |
$ch = curl_init();
|
281 |
curl_setopt($ch, CURLOPT_URL, RESMUSHIT_NEWSFEED);
|
282 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
@@ -313,17 +313,17 @@ Class reSmushitUI {
|
|
313 |
|
314 |
echo "<div class='social'>"
|
315 |
. "<a class='social-maecia' title='"
|
316 |
-
. __('Maecia Agency - Paris France', 'resmushit')
|
317 |
. "' href='https://www.maecia.com' target='_blank'>"
|
318 |
. "<img src='"
|
319 |
. RESMUSHIT_BASE_URL . "images/maecia.png' /></a>"
|
320 |
. "<a class='social-resmushit' title='"
|
321 |
-
. __('Visit resmush.it for more informations', 'resmushit')
|
322 |
. "' href='https://resmush.it' target='_blank'>"
|
323 |
. "<img src='"
|
324 |
. RESMUSHIT_BASE_URL . "images/logo.png' /></a>"
|
325 |
. "<a class='social-twitter' title='"
|
326 |
-
. __('Follow reSmush.it on Twitter', 'resmushit')
|
327 |
. "' href='https://www.twitter.com/resmushit' target='_blank'>"
|
328 |
. "<img src='"
|
329 |
. RESMUSHIT_BASE_URL . "images/twitter.png' /></a></div></div>";
|
@@ -344,29 +344,29 @@ Class reSmushitUI {
|
|
344 |
return TRUE;
|
345 |
}
|
346 |
|
347 |
-
self::fullWidthPanelWrapper(__('Important informations', 'resmushit'), null, 'red');
|
348 |
echo "<div class='rsmt-alert'>";
|
349 |
|
350 |
|
351 |
echo "<h3 class='icon_message warning'>"
|
352 |
-
. __('Cronjobs seems incorrectly configured', 'resmushit')
|
353 |
. "</h3>";
|
354 |
|
355 |
if (resmushit_get_cron_status() == 'MISCONFIGURED') {
|
356 |
echo "<p>"
|
357 |
-
. __('Cronjobs are not correctly configured. The variable <em>DISABLE_WP_CRON</em> must be set to <em>TRUE</em> in <em>wp-config.php</em>. Please install them by reading the following <a href="https://resmush.it/wordpress/howto-configure-cronjobs" target="_blank">instruction page</a>.', 'resmushit')
|
358 |
. "</p><p>"
|
359 |
-
. __('We advice to disable Remush.it option "Process optimize on CRON" as long as Cron jobs are incorrectly set up.', 'resmushit')
|
360 |
. "</p>";
|
361 |
} else if (resmushit_get_cron_status() == 'NEVER_RUN') {
|
362 |
echo "<p>"
|
363 |
-
. __('Cronjobs seems to have never been launched. Please install them by reading the following <a href="https://resmush.it/wordpress/howto-configure-cronjobs" target="_blank">instruction page</a>.', 'resmushit')
|
364 |
. "</p>";
|
365 |
} else if (resmushit_get_cron_status() == 'NO_LATELY_RUN') {
|
366 |
echo "<p>"
|
367 |
-
. __('Cronjobs seems not to have run lately. Please read the following <a href="https://resmush.it/wordpress/howto-configure-cronjobs" target="_blank">instruction page</a> to install them correctly.', 'resmushit')
|
368 |
-
. "<ul><li><em>" . __('Expected Frequency :', 'resmushit') . "</em> " . __('Every', 'resmushit') . " " . time_elapsed_string(RESMUSHIT_CRON_FREQUENCY) . "</li>"
|
369 |
-
. "<ul><li><em>" . __('Last run :', 'resmushit') . "</em> " . time_elapsed_string(time() - get_option('resmushit_cron_lastrun')) . " " . __('ago', 'resmushit') . "</li>"
|
370 |
. "</p>";
|
371 |
}
|
372 |
echo "</div>";
|
@@ -451,11 +451,11 @@ Class reSmushitUI {
|
|
451 |
$output = '-';
|
452 |
}
|
453 |
else if(reSmushit::getAttachmentQuality($attachment_id) != reSmushit::getPictureQualitySetting())
|
454 |
-
$output = '<input type="button" value="'. __('Optimize', 'resmushit') .'" class="rsmt-trigger--optimize-attachment button media-button select-mode-toggle-button" name="resmushit" data-attachment-id="'. $attachment_id .'" class="button wp-smush-send" />';
|
455 |
else{
|
456 |
$statistics = reSmushit::getStatistics($attachment_id);
|
457 |
-
$output = __('Reduced by', 'resmushit') . " ". $statistics['total_saved_size_nice'] ." (". $statistics['percent_reduction'] . ' ' . __('saved', 'resmushit') . ")";
|
458 |
-
$output .= '<input type="button" value="'. __('Force re-optimize', 'resmushit') .'" class="rsmt-trigger--optimize-attachment button media-button select-mode-toggle-button" name="resmushit" data-attachment-id="'. $attachment_id .'" class="button wp-smush-send" />';
|
459 |
}
|
460 |
|
461 |
if($return)
|
87 |
* @return none
|
88 |
*/
|
89 |
public static function settingsPanel() {
|
90 |
+
self::fullWidthPanelWrapper(__('Settings', 'resmushit-image-optimizer'), null, 'orange');
|
91 |
+
$new_label = "<span class='new'>" . __("New!", 'resmushit-image-optimizer') . "</span>";
|
92 |
echo '<div class="rsmt-settings">
|
93 |
<form method="post" action="options.php" id="rsmt-options-form">';
|
94 |
settings_fields( 'resmushit-settings' );
|
95 |
do_settings_sections( 'resmushit-settings' );
|
96 |
|
97 |
echo '<table class="form-table">'
|
98 |
+
. self::addSetting("text", __("Image quality", 'resmushit-image-optimizer'), __("Default value is 92. The quality factor must be between 0 (very weak) and 100 (best quality)", 'resmushit-image-optimizer'), "resmushit_qlty")
|
99 |
+
. self::addSetting("checkbox", __("Optimize on upload", 'resmushit-image-optimizer'), __("All future images uploaded will be automatically optimized", 'resmushit-image-optimizer'), "resmushit_on_upload")
|
100 |
+
. self::addSetting("checkbox", __("Enable statistics", 'resmushit-image-optimizer'), __("Generates statistics about optimized pictures", 'resmushit-image-optimizer'), "resmushit_statistics")
|
101 |
+
. self::addSetting("checkbox", __("Enable logs", 'resmushit-image-optimizer'), __("Enable file logging (for developers)", 'resmushit-image-optimizer'), "resmushit_logs")
|
102 |
+
. self::addSetting("checkbox", $new_label . __("Process optimize on CRON", 'resmushit-image-optimizer'), __("Will perform image optimization process through CRON tasks", 'resmushit-image-optimizer'), "resmushit_cron")
|
103 |
. '</table>';
|
104 |
submit_button();
|
105 |
echo '</form></div>';
|
118 |
public static function bulkPanel() {
|
119 |
$dataCountNonOptimizedPictures = reSmushit::getCountNonOptimizedPictures();
|
120 |
$countNonOptimizedPictures = $dataCountNonOptimizedPictures['nonoptimized'];
|
121 |
+
self::fullWidthPanelWrapper(__('Optimize unsmushed pictures', 'resmushit-image-optimizer'), null, 'blue');
|
122 |
|
123 |
$additionnalClassNeedOptimization = NULL;
|
124 |
$additionnalClassNoNeedOptimization = 'disabled';
|
133 |
|
134 |
if(get_option('resmushit_cron') && get_option('resmushit_cron') == 1) {
|
135 |
echo "<em>$countNonOptimizedPictures "
|
136 |
+
. __('non optimized pictures will be automatically optimized', 'resmushit-image-optimizer')
|
137 |
. "</em>.</h3><p>"
|
138 |
+
. __('These pictures will be automatically optimized using schedule tasks (cronjobs).', 'resmushit-image-optimizer')
|
139 |
. " "
|
140 |
+
. __('Image optimization process can be launched <b>manually</b> by clicking on the button below :', 'resmushit-image-optimizer');
|
141 |
} else {
|
142 |
+
echo __('There is currently', 'resmushit-image-optimizer')
|
143 |
. " <em>$countNonOptimizedPictures "
|
144 |
+
. __('non optimized pictures', 'resmushit-image-optimizer')
|
145 |
. "</em>.</h3><p>"
|
146 |
+
. __('This action will resmush all pictures which have not been optimized to the good Image Quality Rate.', 'resmushit-image-optimizer');
|
147 |
}
|
148 |
|
149 |
echo "</p><p class='submit' id='bulk-resize-examine-button'><button class='button-primary' onclick='resmushit_bulk_resize(\"bulk_resize_image_list\");'>";
|
150 |
|
151 |
if(get_option('resmushit_cron') && get_option('resmushit_cron') == 1) {
|
152 |
+
echo __('Optimize all pictures manually', 'resmushit-image-optimizer');
|
153 |
} else {
|
154 |
+
echo __('Optimize all pictures', 'resmushit-image-optimizer');
|
155 |
}
|
156 |
|
157 |
echo "</button></p><div id='bulk_resize_image_list'></div></div>"
|
158 |
. "<div class='optimized-wrapper $additionnalClassNoNeedOptimization'><h3 class='icon_message ok'>"
|
159 |
+
. __('Congrats ! All your pictures are correctly optimized', 'resmushit-image-optimizer')
|
160 |
. "</h3></div></div>";
|
161 |
self::fullWidthPanelEndWrapper();
|
162 |
}
|
176 |
if(!$countfilesTooBigPictures)
|
177 |
return false;
|
178 |
|
179 |
+
self::fullWidthPanelWrapper(__('Files non optimized', 'resmushit-image-optimizer'), null, 'grey');
|
180 |
|
181 |
$additionnalClass = NULL;
|
182 |
if(!$countfilesTooBigPictures) {
|
187 |
<h3 class='icon_message info'>";
|
188 |
|
189 |
if($countfilesTooBigPictures > 1) {
|
190 |
+
echo $countfilesTooBigPictures . ' ' . __('pictures are too big (> 5MB) for the optimizer', 'resmushit-image-optimizer');
|
191 |
} else {
|
192 |
+
echo $countfilesTooBigPictures . ' ' . __('picture is too big (> 5MB) for the optimizer', 'resmushit-image-optimizer');
|
193 |
}
|
194 |
echo "</h3><div class='list-accordion'><h4>"
|
195 |
+
. __('List of files above 5MB', 'resmushit-image-optimizer')
|
196 |
. "</h4><ul>";
|
197 |
|
198 |
foreach($getNonOptimizedPictures->filestoobig as $file){
|
224 |
public static function statisticsPanel() {
|
225 |
if(!get_option('resmushit_statistics'))
|
226 |
return false;
|
227 |
+
self::fullWidthPanelWrapper(__('Statistics', 'resmushit-image-optimizer'), null, 'green');
|
228 |
$resmushit_stat = reSmushit::getStatistics();
|
229 |
|
230 |
echo "<div class='rsmt-statistics'>";
|
231 |
|
232 |
if($resmushit_stat['files_optimized'] != 0) {
|
233 |
echo "<p><strong>"
|
234 |
+
. __('Space saved :', 'resmushit-image-optimizer')
|
235 |
. "</strong> <span id='rsmt-statistics-space-saved'>"
|
236 |
. self::sizeFormat($resmushit_stat['total_saved_size'])
|
237 |
. "</span></p><p><strong>"
|
238 |
+
. __('Total reduction :', 'resmushit-image-optimizer')
|
239 |
. "</strong> <span id='rsmt-statistics-percent-reduction'>"
|
240 |
. $resmushit_stat['percent_reduction']
|
241 |
. "</span></p><p><strong>"
|
242 |
+
. __('Attachments optimized :', 'resmushit-image-optimizer')
|
243 |
. "</strong> <span id='rsmt-statistics-files-optimized'>"
|
244 |
. $resmushit_stat['files_optimized']
|
245 |
. "</span>/<span id='rsmt-statistics-total-picture'>"
|
246 |
. $resmushit_stat['total_pictures']
|
247 |
. "</span></p><p><strong>"
|
248 |
+
. __('Image optimized (including thumbnails) :', 'resmushit-image-optimizer')
|
249 |
. "</strong> <span id='rsmt-statistics-files-optimized'>"
|
250 |
. $resmushit_stat['files_optimized_with_thumbnails']
|
251 |
. "</span>/<span id='rsmt-statistics-total-pictures'>"
|
252 |
. $resmushit_stat['total_pictures_with_thumbnails']
|
253 |
. "</span></p><p><strong>"
|
254 |
+
. __('Total images optimized :', 'resmushit-image-optimizer')
|
255 |
. "</strong> <span id='rsmt-statistics-total-optimizations'>"
|
256 |
. $resmushit_stat['total_optimizations']
|
257 |
. "</span></p>";
|
258 |
} else {
|
259 |
+
echo "<p>" . __('No picture has been optimized yet ! Add pictures to your Wordpress Media Library.', 'resmushit-image-optimizer') . "</p>";
|
260 |
}
|
261 |
echo "</div>";
|
262 |
self::fullWidthPanelEndWrapper();
|
276 |
|
277 |
echo "<div class='rsmt-news'>";
|
278 |
|
279 |
+
self::fullWidthPanelWrapper(__('News', 'resmushit-image-optimizer'), null, 'red');
|
280 |
$ch = curl_init();
|
281 |
curl_setopt($ch, CURLOPT_URL, RESMUSHIT_NEWSFEED);
|
282 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
313 |
|
314 |
echo "<div class='social'>"
|
315 |
. "<a class='social-maecia' title='"
|
316 |
+
. __('Maecia Agency - Paris France', 'resmushit-image-optimizer')
|
317 |
. "' href='https://www.maecia.com' target='_blank'>"
|
318 |
. "<img src='"
|
319 |
. RESMUSHIT_BASE_URL . "images/maecia.png' /></a>"
|
320 |
. "<a class='social-resmushit' title='"
|
321 |
+
. __('Visit resmush.it for more informations', 'resmushit-image-optimizer')
|
322 |
. "' href='https://resmush.it' target='_blank'>"
|
323 |
. "<img src='"
|
324 |
. RESMUSHIT_BASE_URL . "images/logo.png' /></a>"
|
325 |
. "<a class='social-twitter' title='"
|
326 |
+
. __('Follow reSmush.it on Twitter', 'resmushit-image-optimizer')
|
327 |
. "' href='https://www.twitter.com/resmushit' target='_blank'>"
|
328 |
. "<img src='"
|
329 |
. RESMUSHIT_BASE_URL . "images/twitter.png' /></a></div></div>";
|
344 |
return TRUE;
|
345 |
}
|
346 |
|
347 |
+
self::fullWidthPanelWrapper(__('Important informations', 'resmushit-image-optimizer'), null, 'red');
|
348 |
echo "<div class='rsmt-alert'>";
|
349 |
|
350 |
|
351 |
echo "<h3 class='icon_message warning'>"
|
352 |
+
. __('Cronjobs seems incorrectly configured', 'resmushit-image-optimizer')
|
353 |
. "</h3>";
|
354 |
|
355 |
if (resmushit_get_cron_status() == 'MISCONFIGURED') {
|
356 |
echo "<p>"
|
357 |
+
. __('Cronjobs are not correctly configured. The variable <em>DISABLE_WP_CRON</em> must be set to <em>TRUE</em> in <em>wp-config.php</em>. Please install them by reading the following <a href="https://resmush.it/wordpress/howto-configure-cronjobs" target="_blank">instruction page</a>.', 'resmushit-image-optimizer')
|
358 |
. "</p><p>"
|
359 |
+
. __('We advice to disable Remush.it option "Process optimize on CRON" as long as Cron jobs are incorrectly set up.', 'resmushit-image-optimizer')
|
360 |
. "</p>";
|
361 |
} else if (resmushit_get_cron_status() == 'NEVER_RUN') {
|
362 |
echo "<p>"
|
363 |
+
. __('Cronjobs seems to have never been launched. Please install them by reading the following <a href="https://resmush.it/wordpress/howto-configure-cronjobs" target="_blank">instruction page</a>.', 'resmushit-image-optimizer')
|
364 |
. "</p>";
|
365 |
} else if (resmushit_get_cron_status() == 'NO_LATELY_RUN') {
|
366 |
echo "<p>"
|
367 |
+
. __('Cronjobs seems not to have run lately. Please read the following <a href="https://resmush.it/wordpress/howto-configure-cronjobs" target="_blank">instruction page</a> to install them correctly.', 'resmushit-image-optimizer')
|
368 |
+
. "<ul><li><em>" . __('Expected Frequency :', 'resmushit-image-optimizer') . "</em> " . __('Every', 'resmushit-image-optimizer') . " " . time_elapsed_string(RESMUSHIT_CRON_FREQUENCY) . "</li>"
|
369 |
+
. "<ul><li><em>" . __('Last run :', 'resmushit-image-optimizer') . "</em> " . time_elapsed_string(time() - get_option('resmushit_cron_lastrun')) . " " . __('ago', 'resmushit-image-optimizer') . "</li>"
|
370 |
. "</p>";
|
371 |
}
|
372 |
echo "</div>";
|
451 |
$output = '-';
|
452 |
}
|
453 |
else if(reSmushit::getAttachmentQuality($attachment_id) != reSmushit::getPictureQualitySetting())
|
454 |
+
$output = '<input type="button" value="'. __('Optimize', 'resmushit-image-optimizer') .'" class="rsmt-trigger--optimize-attachment button media-button select-mode-toggle-button" name="resmushit" data-attachment-id="'. $attachment_id .'" class="button wp-smush-send" />';
|
455 |
else{
|
456 |
$statistics = reSmushit::getStatistics($attachment_id);
|
457 |
+
$output = __('Reduced by', 'resmushit-image-optimizer') . " ". $statistics['total_saved_size_nice'] ." (". $statistics['percent_reduction'] . ' ' . __('saved', 'resmushit-image-optimizer') . ")";
|
458 |
+
$output .= '<input type="button" value="'. __('Force re-optimize', 'resmushit-image-optimizer') .'" class="rsmt-trigger--optimize-attachment button media-button select-mode-toggle-button" name="resmushit" data-attachment-id="'. $attachment_id .'" class="button wp-smush-send" />';
|
459 |
}
|
460 |
|
461 |
if($return)
|
languages/resmushit-fr_FR.mo
DELETED
Binary file
|
languages/resmushit-fr_FR.po
DELETED
@@ -1,192 +0,0 @@
|
|
1 |
-
# SOME DESCRIPTIVE TITLE.
|
2 |
-
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
3 |
-
# This file is distributed under the same license as the PACKAGE package.
|
4 |
-
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
5 |
-
#
|
6 |
-
msgid ""
|
7 |
-
msgstr ""
|
8 |
-
"Project-Id-Version: \n"
|
9 |
-
"Report-Msgid-Bugs-To: \n"
|
10 |
-
"POT-Creation-Date: 2018-04-04 13:41+0200\n"
|
11 |
-
"PO-Revision-Date: 2018-04-04 13:43+0200\n"
|
12 |
-
"Last-Translator: \n"
|
13 |
-
"Language-Team: \n"
|
14 |
-
"Language: fr\n"
|
15 |
-
"MIME-Version: 1.0\n"
|
16 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
17 |
-
"Content-Transfer-Encoding: 8bit\n"
|
18 |
-
"X-Generator: Poedit 2.0.2\n"
|
19 |
-
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
20 |
-
|
21 |
-
#: classes/resmushitUI.class.php:90
|
22 |
-
msgid "Settings"
|
23 |
-
msgstr "Paramètres"
|
24 |
-
|
25 |
-
#: classes/resmushitUI.class.php:97
|
26 |
-
msgid "Image quality"
|
27 |
-
msgstr "Qualité d’image"
|
28 |
-
|
29 |
-
#: classes/resmushitUI.class.php:97
|
30 |
-
msgid ""
|
31 |
-
"Default value is 92. The quality factor must be between 0 (very weak) and "
|
32 |
-
"100 (best quality)"
|
33 |
-
msgstr ""
|
34 |
-
"La valeur par défaut est de 92. Le facteur de qualité doit être comprise "
|
35 |
-
"entre 0 (mauvaise) et 100 (meilleure qualité)"
|
36 |
-
|
37 |
-
#: classes/resmushitUI.class.php:98
|
38 |
-
msgid "Optimize on upload"
|
39 |
-
msgstr "Optimiser à l'upload"
|
40 |
-
|
41 |
-
#: classes/resmushitUI.class.php:98
|
42 |
-
msgid "All future images uploaded will be automatically optimized"
|
43 |
-
msgstr ""
|
44 |
-
"Toutes les futures images téléchargées seront automatiquement optimisées"
|
45 |
-
|
46 |
-
#: classes/resmushitUI.class.php:99
|
47 |
-
msgid "Enable statistics"
|
48 |
-
msgstr "Activer les statistiques"
|
49 |
-
|
50 |
-
#: classes/resmushitUI.class.php:99
|
51 |
-
msgid "Generates statistics about optimized pictures"
|
52 |
-
msgstr "Génère des statistiques à partir des images optimisées via reSmush.it"
|
53 |
-
|
54 |
-
#: classes/resmushitUI.class.php:100
|
55 |
-
msgid "Enable logs"
|
56 |
-
msgstr "Activer les journaux"
|
57 |
-
|
58 |
-
#: classes/resmushitUI.class.php:100
|
59 |
-
msgid "Enable file logging (for developers)"
|
60 |
-
msgstr "Activation de la journalisation d'erreurs (pour développeurs)"
|
61 |
-
|
62 |
-
#: classes/resmushitUI.class.php:120
|
63 |
-
msgid "Optimize unsmushed pictures"
|
64 |
-
msgstr "Optimiser les images via reSmush.it"
|
65 |
-
|
66 |
-
#: classes/resmushitUI.class.php:125
|
67 |
-
msgid "There is currently"
|
68 |
-
msgstr "Il y a actuellement"
|
69 |
-
|
70 |
-
#: classes/resmushitUI.class.php:125
|
71 |
-
msgid "non optimized pictures"
|
72 |
-
msgstr "images non optimisées"
|
73 |
-
|
74 |
-
#: classes/resmushitUI.class.php:126
|
75 |
-
msgid ""
|
76 |
-
"This action will resmush all pictures which have not been optimized to the "
|
77 |
-
"good Image Quality Rate."
|
78 |
-
msgstr ""
|
79 |
-
"Cette action va optimiser toutes les images qui ne l'ont pas été avec le "
|
80 |
-
"nouveau facteur de qualité."
|
81 |
-
|
82 |
-
#: classes/resmushitUI.class.php:128
|
83 |
-
msgid "Optimize all pictures"
|
84 |
-
msgstr "Optimiser toutes les images"
|
85 |
-
|
86 |
-
#: classes/resmushitUI.class.php:134
|
87 |
-
msgid "Congrats ! All your pictures are correctly optimized"
|
88 |
-
msgstr "Félicitations ! Toutes les images ont été correctement optimisées"
|
89 |
-
|
90 |
-
#: classes/resmushitUI.class.php:155
|
91 |
-
msgid "Files non optimized"
|
92 |
-
msgstr "Fichiers non optimisés"
|
93 |
-
|
94 |
-
#: classes/resmushitUI.class.php:162
|
95 |
-
msgid "pictures are too big (> 5MB) for the optimizer"
|
96 |
-
msgstr "images sont trop lourdes (> 5 Mo) pour reSmush.it"
|
97 |
-
|
98 |
-
#: classes/resmushitUI.class.php:164
|
99 |
-
msgid "picture is too big (> 5MB) for the optimizer"
|
100 |
-
msgstr "image est trop lourde (> 5 Mo) pour reSmush.it"
|
101 |
-
|
102 |
-
#: classes/resmushitUI.class.php:168
|
103 |
-
msgid "List of files above 5MB"
|
104 |
-
msgstr "Liste des fichiers de plus de 5 Mo"
|
105 |
-
|
106 |
-
#: classes/resmushitUI.class.php:197
|
107 |
-
msgid "Statistics"
|
108 |
-
msgstr "Statistiques"
|
109 |
-
|
110 |
-
#: classes/resmushitUI.class.php:204
|
111 |
-
msgid "Space saved :"
|
112 |
-
msgstr "Poids gagné :"
|
113 |
-
|
114 |
-
#: classes/resmushitUI.class.php:205
|
115 |
-
msgid "Total reduction :"
|
116 |
-
msgstr "Total réduit :"
|
117 |
-
|
118 |
-
#: classes/resmushitUI.class.php:206
|
119 |
-
msgid "Attachments optimized :"
|
120 |
-
msgstr "Nombre d'attachements optimisés :"
|
121 |
-
|
122 |
-
#: classes/resmushitUI.class.php:207
|
123 |
-
msgid "Image optimized (including thumbnails) :"
|
124 |
-
msgstr "Images optimisées (incluant les vignettes) :"
|
125 |
-
|
126 |
-
#: classes/resmushitUI.class.php:208
|
127 |
-
msgid "Total images optimized :"
|
128 |
-
msgstr "Nombre total de fichiers optimisés :"
|
129 |
-
|
130 |
-
#: classes/resmushitUI.class.php:210
|
131 |
-
msgid ""
|
132 |
-
"No picture has been optimized yet ! Add pictures to your Wordpress Media "
|
133 |
-
"Library."
|
134 |
-
msgstr ""
|
135 |
-
"Aucune image n'a été optimisée pour le moment ! Ajoutez des images à votre "
|
136 |
-
"médiathèque Wordpress."
|
137 |
-
|
138 |
-
#: classes/resmushitUI.class.php:231
|
139 |
-
msgid "News"
|
140 |
-
msgstr "Actualités"
|
141 |
-
|
142 |
-
#: classes/resmushitUI.class.php:262
|
143 |
-
msgid "Maecia Agency - Paris France"
|
144 |
-
msgstr "Agence Maecia - Paris, France"
|
145 |
-
|
146 |
-
#: classes/resmushitUI.class.php:265
|
147 |
-
msgid "Visit resmush.it for more informations"
|
148 |
-
msgstr "Visitez resmush.it pour plus d'informations"
|
149 |
-
|
150 |
-
#: classes/resmushitUI.class.php:268
|
151 |
-
msgid "Follow reSmush.it on Twitter"
|
152 |
-
msgstr "Suivez reSmush.it sur Twitter"
|
153 |
-
|
154 |
-
#: classes/resmushitUI.class.php:352
|
155 |
-
msgid "Optimize"
|
156 |
-
msgstr "Optimiser"
|
157 |
-
|
158 |
-
#: classes/resmushitUI.class.php:355
|
159 |
-
msgid "Reduced by"
|
160 |
-
msgstr "Réduction de"
|
161 |
-
|
162 |
-
#: classes/resmushitUI.class.php:355
|
163 |
-
msgid "saved"
|
164 |
-
msgstr "gagné"
|
165 |
-
|
166 |
-
#: resmushit.admin.php:37 resmushit.admin.php:64
|
167 |
-
msgid "Disable of reSmush.it"
|
168 |
-
msgstr "Désactiver l'optimisation reSmush.it"
|
169 |
-
|
170 |
-
#: resmushit.admin.php:38 resmushit.admin.php:71
|
171 |
-
msgid "reSmush.it status"
|
172 |
-
msgstr "Statut de reSmush.it :"
|
173 |
-
|
174 |
-
#. Plugin Name of the plugin/theme
|
175 |
-
msgid "reSmush.it Image Optimizer"
|
176 |
-
msgstr "reSmush.it Image Optimizer"
|
177 |
-
|
178 |
-
#. Plugin URI of the plugin/theme
|
179 |
-
msgid "http://www.resmush.it"
|
180 |
-
msgstr "https://resmush.it"
|
181 |
-
|
182 |
-
#. Description of the plugin/theme
|
183 |
-
msgid "Image Optimization API. Provides image size optimization"
|
184 |
-
msgstr "Image Optimization API. Optimisation de la taille des images"
|
185 |
-
|
186 |
-
#. Author of the plugin/theme
|
187 |
-
msgid "Maecia"
|
188 |
-
msgstr "Maecia"
|
189 |
-
|
190 |
-
#. Author URI of the plugin/theme
|
191 |
-
msgid "https://www.maecia.com"
|
192 |
-
msgstr "https://www.maecia.com"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
languages/resmushit-image-optimizer-fr_FR.mo
ADDED
Binary file
|
languages/resmushit-image-optimizer-fr_FR.po
ADDED
@@ -0,0 +1,337 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# SOME DESCRIPTIVE TITLE.
|
2 |
+
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
3 |
+
# This file is distributed under the same license as the PACKAGE package.
|
4 |
+
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
5 |
+
#
|
6 |
+
msgid ""
|
7 |
+
msgstr ""
|
8 |
+
"Project-Id-Version: \n"
|
9 |
+
"Report-Msgid-Bugs-To: \n"
|
10 |
+
"POT-Creation-Date: 2019-12-22 08:03+0100\n"
|
11 |
+
"PO-Revision-Date: 2019-12-22 11:14+0100\n"
|
12 |
+
"Last-Translator: \n"
|
13 |
+
"Language-Team: \n"
|
14 |
+
"Language: fr\n"
|
15 |
+
"MIME-Version: 1.0\n"
|
16 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
17 |
+
"Content-Transfer-Encoding: 8bit\n"
|
18 |
+
"X-Generator: Poedit 2.2.4\n"
|
19 |
+
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
20 |
+
|
21 |
+
#: classes/resmushitUI.class.php:90 resmushit.php:269
|
22 |
+
msgid "Settings"
|
23 |
+
msgstr "Paramètres"
|
24 |
+
|
25 |
+
#: classes/resmushitUI.class.php:91
|
26 |
+
msgid "New!"
|
27 |
+
msgstr "Nouveau!"
|
28 |
+
|
29 |
+
#: classes/resmushitUI.class.php:98
|
30 |
+
msgid "Image quality"
|
31 |
+
msgstr "Qualité d’image"
|
32 |
+
|
33 |
+
#: classes/resmushitUI.class.php:98
|
34 |
+
msgid ""
|
35 |
+
"Default value is 92. The quality factor must be between 0 (very weak) and "
|
36 |
+
"100 (best quality)"
|
37 |
+
msgstr ""
|
38 |
+
"La valeur par défaut est de 92. Le facteur de qualité doit être comprise "
|
39 |
+
"entre 0 (mauvaise) et 100 (meilleure qualité)"
|
40 |
+
|
41 |
+
#: classes/resmushitUI.class.php:99
|
42 |
+
msgid "Optimize on upload"
|
43 |
+
msgstr "Optimiser à l'upload"
|
44 |
+
|
45 |
+
#: classes/resmushitUI.class.php:99
|
46 |
+
msgid "All future images uploaded will be automatically optimized"
|
47 |
+
msgstr ""
|
48 |
+
"Toutes les futures images téléchargées seront automatiquement optimisées"
|
49 |
+
|
50 |
+
#: classes/resmushitUI.class.php:100
|
51 |
+
msgid "Enable statistics"
|
52 |
+
msgstr "Activer les statistiques"
|
53 |
+
|
54 |
+
#: classes/resmushitUI.class.php:100
|
55 |
+
msgid "Generates statistics about optimized pictures"
|
56 |
+
msgstr "Génère des statistiques à partir des images optimisées via reSmush.it"
|
57 |
+
|
58 |
+
#: classes/resmushitUI.class.php:101
|
59 |
+
msgid "Enable logs"
|
60 |
+
msgstr "Activer les journaux"
|
61 |
+
|
62 |
+
#: classes/resmushitUI.class.php:101
|
63 |
+
msgid "Enable file logging (for developers)"
|
64 |
+
msgstr "Activation de la journalisation d'erreurs (pour développeurs)"
|
65 |
+
|
66 |
+
#: classes/resmushitUI.class.php:102
|
67 |
+
msgid "Process optimize on CRON"
|
68 |
+
msgstr "Optimiser les images via les cronjobs"
|
69 |
+
|
70 |
+
#: classes/resmushitUI.class.php:102
|
71 |
+
msgid "Will perform image optimization process through CRON tasks"
|
72 |
+
msgstr "Optimisera les images lors de l’exécution des tâches planifiées (CRON)"
|
73 |
+
|
74 |
+
#: classes/resmushitUI.class.php:121
|
75 |
+
msgid "Optimize unsmushed pictures"
|
76 |
+
msgstr "Optimiser les images via reSmush.it"
|
77 |
+
|
78 |
+
#: classes/resmushitUI.class.php:136
|
79 |
+
msgid "non optimized pictures will be automatically optimized"
|
80 |
+
msgstr "les images non optimisées le seront automatiquement"
|
81 |
+
|
82 |
+
#: classes/resmushitUI.class.php:138
|
83 |
+
msgid ""
|
84 |
+
"These pictures will be automatically optimized using schedule tasks "
|
85 |
+
"(cronjobs)."
|
86 |
+
msgstr ""
|
87 |
+
"Ces images seront automatiquement optimisées lors de l’exécution des tâches "
|
88 |
+
"planifiées (cronjobs)"
|
89 |
+
|
90 |
+
#: classes/resmushitUI.class.php:140
|
91 |
+
msgid ""
|
92 |
+
"Image optimization process can be launched <b>manually</b> by clicking on "
|
93 |
+
"the button below :"
|
94 |
+
msgstr ""
|
95 |
+
"L’optimisation des images peut être lancé <b>manuellement </b> en cliquant "
|
96 |
+
"sur le bouton suivant :"
|
97 |
+
|
98 |
+
#: classes/resmushitUI.class.php:142
|
99 |
+
msgid "There is currently"
|
100 |
+
msgstr "Il y a actuellement"
|
101 |
+
|
102 |
+
#: classes/resmushitUI.class.php:144
|
103 |
+
msgid "non optimized pictures"
|
104 |
+
msgstr "images non optimisées"
|
105 |
+
|
106 |
+
#: classes/resmushitUI.class.php:146
|
107 |
+
msgid ""
|
108 |
+
"This action will resmush all pictures which have not been optimized to the "
|
109 |
+
"good Image Quality Rate."
|
110 |
+
msgstr ""
|
111 |
+
"Cette action va optimiser toutes les images qui ne l'ont pas été avec le "
|
112 |
+
"nouveau facteur de qualité."
|
113 |
+
|
114 |
+
#: classes/resmushitUI.class.php:152
|
115 |
+
msgid "Optimize all pictures manually"
|
116 |
+
msgstr "Optimiser toutes les images manuellement"
|
117 |
+
|
118 |
+
#: classes/resmushitUI.class.php:154
|
119 |
+
msgid "Optimize all pictures"
|
120 |
+
msgstr "Optimiser toutes les images"
|
121 |
+
|
122 |
+
#: classes/resmushitUI.class.php:159
|
123 |
+
msgid "Congrats ! All your pictures are correctly optimized"
|
124 |
+
msgstr "Félicitations ! Toutes les images ont été correctement optimisées"
|
125 |
+
|
126 |
+
#: classes/resmushitUI.class.php:179
|
127 |
+
msgid "Files non optimized"
|
128 |
+
msgstr "Fichiers non optimisés"
|
129 |
+
|
130 |
+
#: classes/resmushitUI.class.php:190
|
131 |
+
msgid "pictures are too big (> 5MB) for the optimizer"
|
132 |
+
msgstr "images sont trop lourdes (> 5 Mo) pour reSmush.it"
|
133 |
+
|
134 |
+
#: classes/resmushitUI.class.php:192
|
135 |
+
msgid "picture is too big (> 5MB) for the optimizer"
|
136 |
+
msgstr "image est trop lourde (> 5 Mo) pour reSmush.it"
|
137 |
+
|
138 |
+
#: classes/resmushitUI.class.php:195
|
139 |
+
msgid "List of files above 5MB"
|
140 |
+
msgstr "Liste des fichiers de plus de 5 Mo"
|
141 |
+
|
142 |
+
#: classes/resmushitUI.class.php:227
|
143 |
+
msgid "Statistics"
|
144 |
+
msgstr "Statistiques"
|
145 |
+
|
146 |
+
#: classes/resmushitUI.class.php:234
|
147 |
+
msgid "Space saved :"
|
148 |
+
msgstr "Poids gagné :"
|
149 |
+
|
150 |
+
#: classes/resmushitUI.class.php:238
|
151 |
+
msgid "Total reduction :"
|
152 |
+
msgstr "Total réduit :"
|
153 |
+
|
154 |
+
#: classes/resmushitUI.class.php:242
|
155 |
+
msgid "Attachments optimized :"
|
156 |
+
msgstr "Nombre d'attachements optimisés :"
|
157 |
+
|
158 |
+
#: classes/resmushitUI.class.php:248
|
159 |
+
msgid "Image optimized (including thumbnails) :"
|
160 |
+
msgstr "Images optimisées (incluant les vignettes) :"
|
161 |
+
|
162 |
+
#: classes/resmushitUI.class.php:254
|
163 |
+
msgid "Total images optimized :"
|
164 |
+
msgstr "Nombre total de fichiers optimisés :"
|
165 |
+
|
166 |
+
#: classes/resmushitUI.class.php:259
|
167 |
+
msgid ""
|
168 |
+
"No picture has been optimized yet ! Add pictures to your Wordpress Media "
|
169 |
+
"Library."
|
170 |
+
msgstr ""
|
171 |
+
"Aucune image n'a été optimisée pour le moment ! Ajoutez des images à votre "
|
172 |
+
"médiathèque Wordpress."
|
173 |
+
|
174 |
+
#: classes/resmushitUI.class.php:279
|
175 |
+
msgid "News"
|
176 |
+
msgstr "Actualités"
|
177 |
+
|
178 |
+
#: classes/resmushitUI.class.php:316
|
179 |
+
msgid "Maecia Agency - Paris France"
|
180 |
+
msgstr "Agence Maecia - Paris, France"
|
181 |
+
|
182 |
+
#: classes/resmushitUI.class.php:321
|
183 |
+
msgid "Visit resmush.it for more informations"
|
184 |
+
msgstr "Visitez resmush.it pour plus d'informations"
|
185 |
+
|
186 |
+
#: classes/resmushitUI.class.php:326
|
187 |
+
msgid "Follow reSmush.it on Twitter"
|
188 |
+
msgstr "Suivez reSmush.it sur Twitter"
|
189 |
+
|
190 |
+
#: classes/resmushitUI.class.php:347
|
191 |
+
msgid "Important informations"
|
192 |
+
msgstr "Important"
|
193 |
+
|
194 |
+
#: classes/resmushitUI.class.php:352
|
195 |
+
msgid "Cronjobs seems incorrectly configured"
|
196 |
+
msgstr "Les tâches planifiées semblent configurées incorrectement"
|
197 |
+
|
198 |
+
#: classes/resmushitUI.class.php:357
|
199 |
+
msgid ""
|
200 |
+
"Cronjobs are not correctly configured. The variable <em>DISABLE_WP_CRON</em> "
|
201 |
+
"must be set to <em>TRUE</em> in <em>wp-config.php</em>. Please install them "
|
202 |
+
"by reading the following <a href=\"https://resmush.it/wordpress/howto-"
|
203 |
+
"configure-cronjobs\" target=\"_blank\">instruction page</a>."
|
204 |
+
msgstr ""
|
205 |
+
"Les cronjobs semblent mal configurés. La variable <em>DISABLE_WP_CRON</em> "
|
206 |
+
"doit être définie à la valeur <em>TRUE</em> dans le fichier <em>wp-config."
|
207 |
+
"php</em>. Se référer à <a href=\"https://resmush.it/wordpress/howto-"
|
208 |
+
"configure-cronjobs\" target=\" _blank\">la documentation</a> pour installer "
|
209 |
+
"les cronjobs correctement."
|
210 |
+
|
211 |
+
#: classes/resmushitUI.class.php:359
|
212 |
+
msgid ""
|
213 |
+
"We advice to disable Remush.it option \"Process optimize on CRON\" as long "
|
214 |
+
"as Cron jobs are incorrectly set up."
|
215 |
+
msgstr ""
|
216 |
+
"Il est recommandé de désactiver l’option \"Optimiser les images via les "
|
217 |
+
"cronjobs\" tant que ces derniers sont incorrectement configurés."
|
218 |
+
|
219 |
+
#: classes/resmushitUI.class.php:363
|
220 |
+
msgid ""
|
221 |
+
"Cronjobs seems to have never been launched. Please install them by reading "
|
222 |
+
"the following <a href=\"https://resmush.it/wordpress/howto-configure-cronjobs"
|
223 |
+
"\" target=\"_blank\">instruction page</a>."
|
224 |
+
msgstr ""
|
225 |
+
"Les tâches planifiées semblent ne s’être jamais exécutées. Installez les en "
|
226 |
+
"suivant <a href=\"https://resmush.it/wordpress/howto-configure-cronjobs\" "
|
227 |
+
"target=\" _blank\">la documentation</a>."
|
228 |
+
|
229 |
+
#: classes/resmushitUI.class.php:367
|
230 |
+
msgid ""
|
231 |
+
"Cronjobs seems not to have run lately. Please read the following <a href="
|
232 |
+
"\"https://resmush.it/wordpress/howto-configure-cronjobs\" target=\"_blank"
|
233 |
+
"\">instruction page</a> to install them correctly."
|
234 |
+
msgstr ""
|
235 |
+
"Les tâches planifiées semblent ne pas s’être lancées récemment. Suivez les "
|
236 |
+
"instructions de la <a href=\"https://resmush.it/wordpress/howto-configure-"
|
237 |
+
"cronjobs\" target=\" _blank\">la documentation</a> pour les installer "
|
238 |
+
"correctement."
|
239 |
+
|
240 |
+
#: classes/resmushitUI.class.php:368
|
241 |
+
msgid "Expected Frequency :"
|
242 |
+
msgstr "Fréquence :"
|
243 |
+
|
244 |
+
#: classes/resmushitUI.class.php:368 resmushit.php:299
|
245 |
+
msgid "Every"
|
246 |
+
msgstr "Toutes les"
|
247 |
+
|
248 |
+
#: classes/resmushitUI.class.php:369
|
249 |
+
msgid "Last run :"
|
250 |
+
msgstr "Dernière exécution :"
|
251 |
+
|
252 |
+
#: classes/resmushitUI.class.php:369
|
253 |
+
msgid "ago"
|
254 |
+
msgstr ""
|
255 |
+
|
256 |
+
#: classes/resmushitUI.class.php:454
|
257 |
+
msgid "Optimize"
|
258 |
+
msgstr "Optimiser"
|
259 |
+
|
260 |
+
#: classes/resmushitUI.class.php:457
|
261 |
+
msgid "Reduced by"
|
262 |
+
msgstr "Réduction de"
|
263 |
+
|
264 |
+
#: classes/resmushitUI.class.php:457
|
265 |
+
msgid "saved"
|
266 |
+
msgstr "gagné"
|
267 |
+
|
268 |
+
#: classes/resmushitUI.class.php:458
|
269 |
+
msgid "Force re-optimize"
|
270 |
+
msgstr "Forcer la ré-optimisation"
|
271 |
+
|
272 |
+
#: resmushit.admin.php:43 resmushit.admin.php:98
|
273 |
+
msgid "Disable of reSmush.it"
|
274 |
+
msgstr "Désactiver l'optimisation reSmush.it"
|
275 |
+
|
276 |
+
#: resmushit.admin.php:44 resmushit.admin.php:105
|
277 |
+
msgid "reSmush.it status"
|
278 |
+
msgstr "Statut de reSmush.it"
|
279 |
+
|
280 |
+
#: resmushit.inc.php:119
|
281 |
+
msgid "year"
|
282 |
+
msgstr "année"
|
283 |
+
|
284 |
+
#: resmushit.inc.php:120
|
285 |
+
msgid "month"
|
286 |
+
msgstr "mois"
|
287 |
+
|
288 |
+
#: resmushit.inc.php:121
|
289 |
+
msgid "week"
|
290 |
+
msgstr "semaine"
|
291 |
+
|
292 |
+
#: resmushit.inc.php:122
|
293 |
+
msgid "day"
|
294 |
+
msgstr "jour"
|
295 |
+
|
296 |
+
#: resmushit.inc.php:123
|
297 |
+
msgid "hour"
|
298 |
+
msgstr "heure"
|
299 |
+
|
300 |
+
#: resmushit.inc.php:124
|
301 |
+
msgid "minute"
|
302 |
+
msgstr "minute"
|
303 |
+
|
304 |
+
#: resmushit.inc.php:125
|
305 |
+
msgid "second"
|
306 |
+
msgstr "seconde"
|
307 |
+
|
308 |
+
#: resmushit.inc.php:136
|
309 |
+
msgid "just now"
|
310 |
+
msgstr "à l’instant"
|
311 |
+
|
312 |
+
#: resmushit.php:299
|
313 |
+
msgid " "
|
314 |
+
msgstr ""
|
315 |
+
|
316 |
+
#. Plugin Name of the plugin/theme
|
317 |
+
msgid "reSmush.it Image Optimizer"
|
318 |
+
msgstr "reSmush.it Image Optimizer"
|
319 |
+
|
320 |
+
#. Plugin URI of the plugin/theme
|
321 |
+
#. Author URI of the plugin/theme
|
322 |
+
msgid "https://resmush.it"
|
323 |
+
msgstr "https://resmush.it"
|
324 |
+
|
325 |
+
#. Description of the plugin/theme
|
326 |
+
msgid "Image Optimization API. Provides image size optimization"
|
327 |
+
msgstr "Image Optimization API. Optimisation de la taille des images"
|
328 |
+
|
329 |
+
#. Author of the plugin/theme
|
330 |
+
msgid "reSmush.it"
|
331 |
+
msgstr "reSmush.it"
|
332 |
+
|
333 |
+
#~ msgid "Maecia"
|
334 |
+
#~ msgstr "Maecia"
|
335 |
+
|
336 |
+
#~ msgid "https://www.maecia.com"
|
337 |
+
#~ msgstr "https://www.maecia.com"
|
languages/{resmushit-it_IT.mo → resmushit-image-optimizer-it_IT.mo}
RENAMED
File without changes
|
languages/{resmushit-it_IT.po → resmushit-image-optimizer-it_IT.po}
RENAMED
File without changes
|
languages/{resmushit-sk_SK.mo → resmushit-image-optimizer-sk_SK.mo}
RENAMED
File without changes
|
languages/{resmushit-sk_SK.po → resmushit-image-optimizer-sk_SK.po}
RENAMED
File without changes
|
languages/resmushit-image-optimizer.pot
ADDED
@@ -0,0 +1,309 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#, fuzzy
|
2 |
+
msgid ""
|
3 |
+
msgstr ""
|
4 |
+
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
5 |
+
"Project-Id-Version: reSmush.it Image Optimizer\n"
|
6 |
+
"POT-Creation-Date: 2019-12-22 08:03+0100\n"
|
7 |
+
"PO-Revision-Date: 2018-04-04 13:39+0200\n"
|
8 |
+
"Last-Translator: \n"
|
9 |
+
"Language-Team: https://resmush.it\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.2.4\n"
|
14 |
+
"X-Poedit-Basepath: ..\n"
|
15 |
+
"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
|
16 |
+
"X-Poedit-WPHeader: resmushit.php\n"
|
17 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
18 |
+
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
|
19 |
+
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;"
|
20 |
+
"_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
|
21 |
+
"X-Poedit-SearchPath-0: .\n"
|
22 |
+
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
23 |
+
|
24 |
+
#: classes/resmushitUI.class.php:90 resmushit.php:269
|
25 |
+
msgid "Settings"
|
26 |
+
msgstr ""
|
27 |
+
|
28 |
+
#: classes/resmushitUI.class.php:91
|
29 |
+
msgid "New!"
|
30 |
+
msgstr ""
|
31 |
+
|
32 |
+
#: classes/resmushitUI.class.php:98
|
33 |
+
msgid "Image quality"
|
34 |
+
msgstr ""
|
35 |
+
|
36 |
+
#: classes/resmushitUI.class.php:98
|
37 |
+
msgid ""
|
38 |
+
"Default value is 92. The quality factor must be between 0 (very weak) and "
|
39 |
+
"100 (best quality)"
|
40 |
+
msgstr ""
|
41 |
+
|
42 |
+
#: classes/resmushitUI.class.php:99
|
43 |
+
msgid "Optimize on upload"
|
44 |
+
msgstr ""
|
45 |
+
|
46 |
+
#: classes/resmushitUI.class.php:99
|
47 |
+
msgid "All future images uploaded will be automatically optimized"
|
48 |
+
msgstr ""
|
49 |
+
|
50 |
+
#: classes/resmushitUI.class.php:100
|
51 |
+
msgid "Enable statistics"
|
52 |
+
msgstr ""
|
53 |
+
|
54 |
+
#: classes/resmushitUI.class.php:100
|
55 |
+
msgid "Generates statistics about optimized pictures"
|
56 |
+
msgstr ""
|
57 |
+
|
58 |
+
#: classes/resmushitUI.class.php:101
|
59 |
+
msgid "Enable logs"
|
60 |
+
msgstr ""
|
61 |
+
|
62 |
+
#: classes/resmushitUI.class.php:101
|
63 |
+
msgid "Enable file logging (for developers)"
|
64 |
+
msgstr ""
|
65 |
+
|
66 |
+
#: classes/resmushitUI.class.php:102
|
67 |
+
msgid "Process optimize on CRON"
|
68 |
+
msgstr ""
|
69 |
+
|
70 |
+
#: classes/resmushitUI.class.php:102
|
71 |
+
msgid "Will perform image optimization process through CRON tasks"
|
72 |
+
msgstr ""
|
73 |
+
|
74 |
+
#: classes/resmushitUI.class.php:121
|
75 |
+
msgid "Optimize unsmushed pictures"
|
76 |
+
msgstr ""
|
77 |
+
|
78 |
+
#: classes/resmushitUI.class.php:136
|
79 |
+
msgid "non optimized pictures will be automatically optimized"
|
80 |
+
msgstr ""
|
81 |
+
|
82 |
+
#: classes/resmushitUI.class.php:138
|
83 |
+
msgid ""
|
84 |
+
"These pictures will be automatically optimized using schedule tasks "
|
85 |
+
"(cronjobs)."
|
86 |
+
msgstr ""
|
87 |
+
|
88 |
+
#: classes/resmushitUI.class.php:140
|
89 |
+
msgid ""
|
90 |
+
"Image optimization process can be launched <b>manually</b> by clicking on "
|
91 |
+
"the button below :"
|
92 |
+
msgstr ""
|
93 |
+
|
94 |
+
#: classes/resmushitUI.class.php:142
|
95 |
+
msgid "There is currently"
|
96 |
+
msgstr ""
|
97 |
+
|
98 |
+
#: classes/resmushitUI.class.php:144
|
99 |
+
msgid "non optimized pictures"
|
100 |
+
msgstr ""
|
101 |
+
|
102 |
+
#: classes/resmushitUI.class.php:146
|
103 |
+
msgid ""
|
104 |
+
"This action will resmush all pictures which have not been optimized to the "
|
105 |
+
"good Image Quality Rate."
|
106 |
+
msgstr ""
|
107 |
+
|
108 |
+
#: classes/resmushitUI.class.php:152
|
109 |
+
msgid "Optimize all pictures manually"
|
110 |
+
msgstr ""
|
111 |
+
|
112 |
+
#: classes/resmushitUI.class.php:154
|
113 |
+
msgid "Optimize all pictures"
|
114 |
+
msgstr ""
|
115 |
+
|
116 |
+
#: classes/resmushitUI.class.php:159
|
117 |
+
msgid "Congrats ! All your pictures are correctly optimized"
|
118 |
+
msgstr ""
|
119 |
+
|
120 |
+
#: classes/resmushitUI.class.php:179
|
121 |
+
msgid "Files non optimized"
|
122 |
+
msgstr ""
|
123 |
+
|
124 |
+
#: classes/resmushitUI.class.php:190
|
125 |
+
msgid "pictures are too big (> 5MB) for the optimizer"
|
126 |
+
msgstr ""
|
127 |
+
|
128 |
+
#: classes/resmushitUI.class.php:192
|
129 |
+
msgid "picture is too big (> 5MB) for the optimizer"
|
130 |
+
msgstr ""
|
131 |
+
|
132 |
+
#: classes/resmushitUI.class.php:195
|
133 |
+
msgid "List of files above 5MB"
|
134 |
+
msgstr ""
|
135 |
+
|
136 |
+
#: classes/resmushitUI.class.php:227
|
137 |
+
msgid "Statistics"
|
138 |
+
msgstr ""
|
139 |
+
|
140 |
+
#: classes/resmushitUI.class.php:234
|
141 |
+
msgid "Space saved :"
|
142 |
+
msgstr ""
|
143 |
+
|
144 |
+
#: classes/resmushitUI.class.php:238
|
145 |
+
msgid "Total reduction :"
|
146 |
+
msgstr ""
|
147 |
+
|
148 |
+
#: classes/resmushitUI.class.php:242
|
149 |
+
msgid "Attachments optimized :"
|
150 |
+
msgstr ""
|
151 |
+
|
152 |
+
#: classes/resmushitUI.class.php:248
|
153 |
+
msgid "Image optimized (including thumbnails) :"
|
154 |
+
msgstr ""
|
155 |
+
|
156 |
+
#: classes/resmushitUI.class.php:254
|
157 |
+
msgid "Total images optimized :"
|
158 |
+
msgstr ""
|
159 |
+
|
160 |
+
#: classes/resmushitUI.class.php:259
|
161 |
+
msgid ""
|
162 |
+
"No picture has been optimized yet ! Add pictures to your Wordpress Media "
|
163 |
+
"Library."
|
164 |
+
msgstr ""
|
165 |
+
|
166 |
+
#: classes/resmushitUI.class.php:279
|
167 |
+
msgid "News"
|
168 |
+
msgstr ""
|
169 |
+
|
170 |
+
#: classes/resmushitUI.class.php:316
|
171 |
+
msgid "Maecia Agency - Paris France"
|
172 |
+
msgstr ""
|
173 |
+
|
174 |
+
#: classes/resmushitUI.class.php:321
|
175 |
+
msgid "Visit resmush.it for more informations"
|
176 |
+
msgstr ""
|
177 |
+
|
178 |
+
#: classes/resmushitUI.class.php:326
|
179 |
+
msgid "Follow reSmush.it on Twitter"
|
180 |
+
msgstr ""
|
181 |
+
|
182 |
+
#: classes/resmushitUI.class.php:347
|
183 |
+
msgid "Important informations"
|
184 |
+
msgstr ""
|
185 |
+
|
186 |
+
#: classes/resmushitUI.class.php:352
|
187 |
+
msgid "Cronjobs seems incorrectly configured"
|
188 |
+
msgstr ""
|
189 |
+
|
190 |
+
#: classes/resmushitUI.class.php:357
|
191 |
+
msgid ""
|
192 |
+
"Cronjobs are not correctly configured. The variable <em>DISABLE_WP_CRON</"
|
193 |
+
"em> must be set to <em>TRUE</em> in <em>wp-config.php</em>. Please install "
|
194 |
+
"them by reading the following <a href=\"https://resmush.it/wordpress/howto-"
|
195 |
+
"configure-cronjobs\" target=\"_blank\">instruction page</a>."
|
196 |
+
msgstr ""
|
197 |
+
|
198 |
+
#: classes/resmushitUI.class.php:359
|
199 |
+
msgid ""
|
200 |
+
"We advice to disable Remush.it option \"Process optimize on CRON\" as long "
|
201 |
+
"as Cron jobs are incorrectly set up."
|
202 |
+
msgstr ""
|
203 |
+
|
204 |
+
#: classes/resmushitUI.class.php:363
|
205 |
+
msgid ""
|
206 |
+
"Cronjobs seems to have never been launched. Please install them by reading "
|
207 |
+
"the following <a href=\"https://resmush.it/wordpress/howto-configure-"
|
208 |
+
"cronjobs\" target=\"_blank\">instruction page</a>."
|
209 |
+
msgstr ""
|
210 |
+
|
211 |
+
#: classes/resmushitUI.class.php:367
|
212 |
+
msgid ""
|
213 |
+
"Cronjobs seems not to have run lately. Please read the following <a href="
|
214 |
+
"\"https://resmush.it/wordpress/howto-configure-cronjobs\" target=\"_blank"
|
215 |
+
"\">instruction page</a> to install them correctly."
|
216 |
+
msgstr ""
|
217 |
+
|
218 |
+
#: classes/resmushitUI.class.php:368
|
219 |
+
msgid "Expected Frequency :"
|
220 |
+
msgstr ""
|
221 |
+
|
222 |
+
#: classes/resmushitUI.class.php:368 resmushit.php:299
|
223 |
+
msgid "Every"
|
224 |
+
msgstr ""
|
225 |
+
|
226 |
+
#: classes/resmushitUI.class.php:369
|
227 |
+
msgid "Last run :"
|
228 |
+
msgstr ""
|
229 |
+
|
230 |
+
#: classes/resmushitUI.class.php:369
|
231 |
+
msgid "ago"
|
232 |
+
msgstr ""
|
233 |
+
|
234 |
+
#: classes/resmushitUI.class.php:454
|
235 |
+
msgid "Optimize"
|
236 |
+
msgstr ""
|
237 |
+
|
238 |
+
#: classes/resmushitUI.class.php:457
|
239 |
+
msgid "Reduced by"
|
240 |
+
msgstr ""
|
241 |
+
|
242 |
+
#: classes/resmushitUI.class.php:457
|
243 |
+
msgid "saved"
|
244 |
+
msgstr ""
|
245 |
+
|
246 |
+
#: classes/resmushitUI.class.php:458
|
247 |
+
msgid "Force re-optimize"
|
248 |
+
msgstr ""
|
249 |
+
|
250 |
+
#: resmushit.admin.php:43 resmushit.admin.php:98
|
251 |
+
msgid "Disable of reSmush.it"
|
252 |
+
msgstr ""
|
253 |
+
|
254 |
+
#: resmushit.admin.php:44 resmushit.admin.php:105
|
255 |
+
msgid "reSmush.it status"
|
256 |
+
msgstr ""
|
257 |
+
|
258 |
+
#: resmushit.inc.php:119
|
259 |
+
msgid "year"
|
260 |
+
msgstr ""
|
261 |
+
|
262 |
+
#: resmushit.inc.php:120
|
263 |
+
msgid "month"
|
264 |
+
msgstr ""
|
265 |
+
|
266 |
+
#: resmushit.inc.php:121
|
267 |
+
msgid "week"
|
268 |
+
msgstr ""
|
269 |
+
|
270 |
+
#: resmushit.inc.php:122
|
271 |
+
msgid "day"
|
272 |
+
msgstr ""
|
273 |
+
|
274 |
+
#: resmushit.inc.php:123
|
275 |
+
msgid "hour"
|
276 |
+
msgstr ""
|
277 |
+
|
278 |
+
#: resmushit.inc.php:124
|
279 |
+
msgid "minute"
|
280 |
+
msgstr ""
|
281 |
+
|
282 |
+
#: resmushit.inc.php:125
|
283 |
+
msgid "second"
|
284 |
+
msgstr ""
|
285 |
+
|
286 |
+
#: resmushit.inc.php:136
|
287 |
+
msgid "just now"
|
288 |
+
msgstr ""
|
289 |
+
|
290 |
+
#: resmushit.php:299
|
291 |
+
msgid " "
|
292 |
+
msgstr ""
|
293 |
+
|
294 |
+
#. Plugin Name of the plugin/theme
|
295 |
+
msgid "reSmush.it Image Optimizer"
|
296 |
+
msgstr ""
|
297 |
+
|
298 |
+
#. Plugin URI of the plugin/theme
|
299 |
+
#. Author URI of the plugin/theme
|
300 |
+
msgid "https://resmush.it"
|
301 |
+
msgstr ""
|
302 |
+
|
303 |
+
#. Description of the plugin/theme
|
304 |
+
msgid "Image Optimization API. Provides image size optimization"
|
305 |
+
msgstr ""
|
306 |
+
|
307 |
+
#. Author of the plugin/theme
|
308 |
+
msgid "reSmush.it"
|
309 |
+
msgstr ""
|
languages/resmushit.pot
DELETED
@@ -1,188 +0,0 @@
|
|
1 |
-
#, fuzzy
|
2 |
-
msgid ""
|
3 |
-
msgstr ""
|
4 |
-
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
5 |
-
"Project-Id-Version: reSmush.it Image Optimizer\n"
|
6 |
-
"POT-Creation-Date: 2018-04-04 13:52+0200\n"
|
7 |
-
"PO-Revision-Date: 2018-04-04 13:39+0200\n"
|
8 |
-
"Last-Translator: \n"
|
9 |
-
"Language-Team: https://resmush.it\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.0.2\n"
|
14 |
-
"X-Poedit-Basepath: ..\n"
|
15 |
-
"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
|
16 |
-
"X-Poedit-WPHeader: resmushit.php\n"
|
17 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
18 |
-
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
|
19 |
-
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;"
|
20 |
-
"_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
|
21 |
-
"X-Poedit-SearchPath-0: .\n"
|
22 |
-
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
23 |
-
|
24 |
-
#: classes/resmushitUI.class.php:90
|
25 |
-
msgid "Settings"
|
26 |
-
msgstr ""
|
27 |
-
|
28 |
-
#: classes/resmushitUI.class.php:97
|
29 |
-
msgid "Image quality"
|
30 |
-
msgstr ""
|
31 |
-
|
32 |
-
#: classes/resmushitUI.class.php:97
|
33 |
-
msgid ""
|
34 |
-
"Default value is 92. The quality factor must be between 0 (very weak) and "
|
35 |
-
"100 (best quality)"
|
36 |
-
msgstr ""
|
37 |
-
|
38 |
-
#: classes/resmushitUI.class.php:98
|
39 |
-
msgid "Optimize on upload"
|
40 |
-
msgstr ""
|
41 |
-
|
42 |
-
#: classes/resmushitUI.class.php:98
|
43 |
-
msgid "All future images uploaded will be automatically optimized"
|
44 |
-
msgstr ""
|
45 |
-
|
46 |
-
#: classes/resmushitUI.class.php:99
|
47 |
-
msgid "Enable statistics"
|
48 |
-
msgstr ""
|
49 |
-
|
50 |
-
#: classes/resmushitUI.class.php:99
|
51 |
-
msgid "Generates statistics about optimized pictures"
|
52 |
-
msgstr ""
|
53 |
-
|
54 |
-
#: classes/resmushitUI.class.php:100
|
55 |
-
msgid "Enable logs"
|
56 |
-
msgstr ""
|
57 |
-
|
58 |
-
#: classes/resmushitUI.class.php:100
|
59 |
-
msgid "Enable file logging (for developers)"
|
60 |
-
msgstr ""
|
61 |
-
|
62 |
-
#: classes/resmushitUI.class.php:120
|
63 |
-
msgid "Optimize unsmushed pictures"
|
64 |
-
msgstr ""
|
65 |
-
|
66 |
-
#: classes/resmushitUI.class.php:125
|
67 |
-
msgid "There is currently"
|
68 |
-
msgstr ""
|
69 |
-
|
70 |
-
#: classes/resmushitUI.class.php:125
|
71 |
-
msgid "non optimized pictures"
|
72 |
-
msgstr ""
|
73 |
-
|
74 |
-
#: classes/resmushitUI.class.php:126
|
75 |
-
msgid ""
|
76 |
-
"This action will resmush all pictures which have not been optimized to the "
|
77 |
-
"good Image Quality Rate."
|
78 |
-
msgstr ""
|
79 |
-
|
80 |
-
#: classes/resmushitUI.class.php:128
|
81 |
-
msgid "Optimize all pictures"
|
82 |
-
msgstr ""
|
83 |
-
|
84 |
-
#: classes/resmushitUI.class.php:134
|
85 |
-
msgid "Congrats ! All your pictures are correctly optimized"
|
86 |
-
msgstr ""
|
87 |
-
|
88 |
-
#: classes/resmushitUI.class.php:155
|
89 |
-
msgid "Files non optimized"
|
90 |
-
msgstr ""
|
91 |
-
|
92 |
-
#: classes/resmushitUI.class.php:162
|
93 |
-
msgid "pictures are too big (> 5MB) for the optimizer"
|
94 |
-
msgstr ""
|
95 |
-
|
96 |
-
#: classes/resmushitUI.class.php:164
|
97 |
-
msgid "picture is too big (> 5MB) for the optimizer"
|
98 |
-
msgstr ""
|
99 |
-
|
100 |
-
#: classes/resmushitUI.class.php:168
|
101 |
-
msgid "List of files above 5MB"
|
102 |
-
msgstr ""
|
103 |
-
|
104 |
-
#: classes/resmushitUI.class.php:197
|
105 |
-
msgid "Statistics"
|
106 |
-
msgstr ""
|
107 |
-
|
108 |
-
#: classes/resmushitUI.class.php:204
|
109 |
-
msgid "Space saved :"
|
110 |
-
msgstr ""
|
111 |
-
|
112 |
-
#: classes/resmushitUI.class.php:205
|
113 |
-
msgid "Total reduction :"
|
114 |
-
msgstr ""
|
115 |
-
|
116 |
-
#: classes/resmushitUI.class.php:206
|
117 |
-
msgid "Attachments optimized :"
|
118 |
-
msgstr ""
|
119 |
-
|
120 |
-
#: classes/resmushitUI.class.php:207
|
121 |
-
msgid "Image optimized (including thumbnails) :"
|
122 |
-
msgstr ""
|
123 |
-
|
124 |
-
#: classes/resmushitUI.class.php:208
|
125 |
-
msgid "Total images optimized :"
|
126 |
-
msgstr ""
|
127 |
-
|
128 |
-
#: classes/resmushitUI.class.php:210
|
129 |
-
msgid ""
|
130 |
-
"No picture has been optimized yet ! Add pictures to your Wordpress Media "
|
131 |
-
"Library."
|
132 |
-
msgstr ""
|
133 |
-
|
134 |
-
#: classes/resmushitUI.class.php:231
|
135 |
-
msgid "News"
|
136 |
-
msgstr ""
|
137 |
-
|
138 |
-
#: classes/resmushitUI.class.php:262
|
139 |
-
msgid "Maecia Agency - Paris France"
|
140 |
-
msgstr ""
|
141 |
-
|
142 |
-
#: classes/resmushitUI.class.php:265
|
143 |
-
msgid "Visit resmush.it for more informations"
|
144 |
-
msgstr ""
|
145 |
-
|
146 |
-
#: classes/resmushitUI.class.php:268
|
147 |
-
msgid "Follow reSmush.it on Twitter"
|
148 |
-
msgstr ""
|
149 |
-
|
150 |
-
#: classes/resmushitUI.class.php:352
|
151 |
-
msgid "Optimize"
|
152 |
-
msgstr ""
|
153 |
-
|
154 |
-
#: classes/resmushitUI.class.php:355
|
155 |
-
msgid "Reduced by"
|
156 |
-
msgstr ""
|
157 |
-
|
158 |
-
#: classes/resmushitUI.class.php:355
|
159 |
-
msgid "saved"
|
160 |
-
msgstr ""
|
161 |
-
|
162 |
-
#: resmushit.admin.php:37 resmushit.admin.php:64
|
163 |
-
msgid "Disable of reSmush.it"
|
164 |
-
msgstr ""
|
165 |
-
|
166 |
-
#: resmushit.admin.php:38 resmushit.admin.php:71
|
167 |
-
msgid "reSmush.it status"
|
168 |
-
msgstr ""
|
169 |
-
|
170 |
-
#. Plugin Name of the plugin/theme
|
171 |
-
msgid "reSmush.it Image Optimizer"
|
172 |
-
msgstr ""
|
173 |
-
|
174 |
-
#. Plugin URI of the plugin/theme
|
175 |
-
msgid "http://www.resmush.it"
|
176 |
-
msgstr ""
|
177 |
-
|
178 |
-
#. Description of the plugin/theme
|
179 |
-
msgid "Image Optimization API. Provides image size optimization"
|
180 |
-
msgstr ""
|
181 |
-
|
182 |
-
#. Author of the plugin/theme
|
183 |
-
msgid "Maecia"
|
184 |
-
msgstr ""
|
185 |
-
|
186 |
-
#. Author URI of the plugin/theme
|
187 |
-
msgid "https://www.maecia.com"
|
188 |
-
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: resmushit
|
|
3 |
Tags: image, optimizer, image optimization, resmush.it, smush, jpg, png, gif, optimization, compression, Compress, Images, Pictures, Reduce Image Size, Smush, Smush.it
|
4 |
Requires at least: 4.0.0
|
5 |
Tested up to: 5.3.2
|
6 |
-
Stable tag: 0.2.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -54,7 +54,7 @@ Yes, by excluding/reverting this asset you'll have your original image available
|
|
54 |
|
55 |
= Is it possible to exclude some pictures from the optimizer ? =
|
56 |
|
57 |
-
Yes, since version 0.
|
58 |
|
59 |
= Have I a risk to lose my existing pictures ? =
|
60 |
|
@@ -70,6 +70,10 @@ Yes ! Absolutely free, the only restriction is to send images below 5MB.
|
|
70 |
|
71 |
== Changelog ==
|
72 |
|
|
|
|
|
|
|
|
|
73 |
= 0.2.0 =
|
74 |
* Add CRON feature
|
75 |
* Code refactoring
|
3 |
Tags: image, optimizer, image optimization, resmush.it, smush, jpg, png, gif, optimization, compression, Compress, Images, Pictures, Reduce Image Size, Smush, Smush.it
|
4 |
Requires at least: 4.0.0
|
5 |
Tested up to: 5.3.2
|
6 |
+
Stable tag: 0.2.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
54 |
|
55 |
= Is it possible to exclude some pictures from the optimizer ? =
|
56 |
|
57 |
+
Yes, since version 0.1.2, you can easily exclude an asset from the optimizer.
|
58 |
|
59 |
= Have I a risk to lose my existing pictures ? =
|
60 |
|
70 |
|
71 |
== Changelog ==
|
72 |
|
73 |
+
= 0.2.1 =
|
74 |
+
* Complete French translation
|
75 |
+
* Plugin translation fix
|
76 |
+
|
77 |
= 0.2.0 =
|
78 |
* Add CRON feature
|
79 |
* Code refactoring
|
resmushit.admin.php
CHANGED
@@ -40,8 +40,8 @@ add_action( 'admin_init', 'resmushit_settings_declare' );
|
|
40 |
* @return $columns
|
41 |
*/
|
42 |
function resmushit_media_list_add_column( $columns ) {
|
43 |
-
$columns["resmushit_disable"] = __('Disable of reSmush.it', 'resmushit');
|
44 |
-
$columns["resmushit_status"] = __('reSmush.it status', 'resmushit');
|
45 |
return $columns;
|
46 |
}
|
47 |
add_filter( 'manage_media_columns', 'resmushit_media_list_add_column' );
|
@@ -95,14 +95,14 @@ function resmushit_image_attachment_add_status_button($form_fields, $post) {
|
|
95 |
return $form_fields;
|
96 |
|
97 |
$form_fields["rsmt-disabled-checkbox"] = array(
|
98 |
-
"label" => __("Disable of reSmush.it"),
|
99 |
"input" => "html",
|
100 |
"value" => '',
|
101 |
"html" => reSmushitUI::mediaListCustomValuesDisable($post->ID, true)
|
102 |
);
|
103 |
|
104 |
$form_fields["rsmt-status-button"] = array(
|
105 |
-
"label" => __("reSmush.it status"),
|
106 |
"input" => "html",
|
107 |
"value" => '',
|
108 |
"html" => reSmushitUI::mediaListCustomValuesStatus($post->ID, true)
|
40 |
* @return $columns
|
41 |
*/
|
42 |
function resmushit_media_list_add_column( $columns ) {
|
43 |
+
$columns["resmushit_disable"] = __('Disable of reSmush.it', 'resmushit-image-optimizer');
|
44 |
+
$columns["resmushit_status"] = __('reSmush.it status', 'resmushit-image-optimizer');
|
45 |
return $columns;
|
46 |
}
|
47 |
add_filter( 'manage_media_columns', 'resmushit_media_list_add_column' );
|
95 |
return $form_fields;
|
96 |
|
97 |
$form_fields["rsmt-disabled-checkbox"] = array(
|
98 |
+
"label" => __("Disable of reSmush.it", "resmushit-image-optimizer"),
|
99 |
"input" => "html",
|
100 |
"value" => '',
|
101 |
"html" => reSmushitUI::mediaListCustomValuesDisable($post->ID, true)
|
102 |
);
|
103 |
|
104 |
$form_fields["rsmt-status-button"] = array(
|
105 |
+
"label" => __("reSmush.it status", "resmushit-image-optimizer"),
|
106 |
"input" => "html",
|
107 |
"value" => '',
|
108 |
"html" => reSmushitUI::mediaListCustomValuesStatus($post->ID, true)
|
resmushit.inc.php
CHANGED
@@ -116,13 +116,13 @@ function time_elapsed_string($duration, $full = false) {
|
|
116 |
$diff->d -= $diff->w * 7;
|
117 |
|
118 |
$string = array(
|
119 |
-
'y' => __('year', 'resmushit'),
|
120 |
-
'm' => __('month', 'resmushit'),
|
121 |
-
'w' => __('week', 'resmushit'),
|
122 |
-
'd' => __('day', 'resmushit'),
|
123 |
-
'h' => __('hour', 'resmushit'),
|
124 |
-
'i' => __('minute', 'resmushit'),
|
125 |
-
's' => __('second', 'resmushit'),
|
126 |
);
|
127 |
foreach ($string as $k => &$v) {
|
128 |
if ($diff->$k) {
|
@@ -133,5 +133,5 @@ function time_elapsed_string($duration, $full = false) {
|
|
133 |
}
|
134 |
|
135 |
if (!$full) $string = array_slice($string, 0, 1);
|
136 |
-
return $string ? implode(', ', $string) : __('just now', 'resmushit');
|
137 |
}
|
116 |
$diff->d -= $diff->w * 7;
|
117 |
|
118 |
$string = array(
|
119 |
+
'y' => __('year', 'resmushit-image-optimizer'),
|
120 |
+
'm' => __('month', 'resmushit-image-optimizer'),
|
121 |
+
'w' => __('week', 'resmushit-image-optimizer'),
|
122 |
+
'd' => __('day', 'resmushit-image-optimizer'),
|
123 |
+
'h' => __('hour', 'resmushit-image-optimizer'),
|
124 |
+
'i' => __('minute', 'resmushit-image-optimizer'),
|
125 |
+
's' => __('second', 'resmushit-image-optimizer'),
|
126 |
);
|
127 |
foreach ($string as $k => &$v) {
|
128 |
if ($diff->$k) {
|
133 |
}
|
134 |
|
135 |
if (!$full) $string = array_slice($string, 0, 1);
|
136 |
+
return $string ? implode(', ', $string) : __('just now', 'resmushit-image-optimizer');
|
137 |
}
|
resmushit.php
CHANGED
@@ -8,16 +8,17 @@
|
|
8 |
*
|
9 |
* @wordpress-plugin
|
10 |
* Plugin Name: reSmush.it Image Optimizer
|
11 |
-
* Plugin URI: https://
|
12 |
* Description: Image Optimization API. Provides image size optimization
|
13 |
-
* Version: 0.2.
|
14 |
-
* Timestamp: 2019.12.
|
15 |
* Author: reSmush.it
|
16 |
* Author URI: https://resmush.it
|
17 |
* Author: Charles Bourgeaux
|
18 |
* License: GPL-2.0+
|
19 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
20 |
* Domain Path: /languages
|
|
|
21 |
*/
|
22 |
|
23 |
require('resmushit.inc.php');
|
@@ -68,6 +69,13 @@ register_activation_hook( __FILE__, 'resmushit_activate' );
|
|
68 |
add_action( 'admin_init', 'resmushit_activate' );
|
69 |
|
70 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
|
72 |
|
73 |
/**
|
@@ -265,7 +273,7 @@ add_action( 'wp_ajax_resmushit_update_statistics', 'resmushit_update_statistics'
|
|
265 |
* @return string
|
266 |
*/
|
267 |
function resmushit_add_plugin_page_settings_link($links) {
|
268 |
-
$links[] = '<a href="' . admin_url( 'upload.php?page=resmushit_options' ) . '">' . __('Settings') . '</a>';
|
269 |
return $links;
|
270 |
}
|
271 |
add_filter('plugin_action_links_'.plugin_basename(__FILE__), 'resmushit_add_plugin_page_settings_link');
|
@@ -295,7 +303,7 @@ add_action('update_option_resmushit_cron', 'resmushit_on_cron_activation', 100,
|
|
295 |
function resmushit_add_cron_interval( $schedules ) {
|
296 |
$schedules['resmushit_interval'] = array(
|
297 |
'interval' => RESMUSHIT_CRON_FREQUENCY,
|
298 |
-
'display' => esc_html__( 'Every ' . time_elapsed_string(RESMUSHIT_CRON_FREQUENCY) ),
|
299 |
);
|
300 |
return $schedules;
|
301 |
}
|
8 |
*
|
9 |
* @wordpress-plugin
|
10 |
* Plugin Name: reSmush.it Image Optimizer
|
11 |
+
* Plugin URI: https://wordpress.org/plugins/resmushit-image-optimizer/
|
12 |
* Description: Image Optimization API. Provides image size optimization
|
13 |
+
* Version: 0.2.1
|
14 |
+
* Timestamp: 2019.12.22
|
15 |
* Author: reSmush.it
|
16 |
* Author URI: https://resmush.it
|
17 |
* Author: Charles Bourgeaux
|
18 |
* License: GPL-2.0+
|
19 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
20 |
* Domain Path: /languages
|
21 |
+
* Text Domain: resmushit-image-optimizer
|
22 |
*/
|
23 |
|
24 |
require('resmushit.inc.php');
|
69 |
add_action( 'admin_init', 'resmushit_activate' );
|
70 |
|
71 |
|
72 |
+
/**
|
73 |
+
* Run using the 'init' action.
|
74 |
+
*/
|
75 |
+
function resmushit_init() {
|
76 |
+
load_plugin_textdomain( 'resmushit-image-optimizer', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
|
77 |
+
}
|
78 |
+
add_action( 'admin_init', 'resmushit_init' );
|
79 |
|
80 |
|
81 |
/**
|
273 |
* @return string
|
274 |
*/
|
275 |
function resmushit_add_plugin_page_settings_link($links) {
|
276 |
+
$links[] = '<a href="' . admin_url( 'upload.php?page=resmushit_options' ) . '">' . __('Settings', "resmushit-image-optimizer") . '</a>';
|
277 |
return $links;
|
278 |
}
|
279 |
add_filter('plugin_action_links_'.plugin_basename(__FILE__), 'resmushit_add_plugin_page_settings_link');
|
303 |
function resmushit_add_cron_interval( $schedules ) {
|
304 |
$schedules['resmushit_interval'] = array(
|
305 |
'interval' => RESMUSHIT_CRON_FREQUENCY,
|
306 |
+
'display' => esc_html__( __('Every', 'resmushit-image-optimizer') . ' ' . time_elapsed_string(RESMUSHIT_CRON_FREQUENCY) ),
|
307 |
);
|
308 |
return $schedules;
|
309 |
}
|
resmushit.settings.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
|
3 |
define('RESMUSHIT_ENDPOINT', 'http://api.resmush.it/');
|
4 |
-
define('RESMUSHIT_VERSION', '0.2.
|
5 |
define('RESMUSHIT_DEFAULT_QLTY', '92');
|
6 |
define('RESMUSHIT_TIMEOUT', '10');
|
7 |
define('RESMUSHIT_LOGS_PATH', 'resmushit.log');
|
1 |
<?php
|
2 |
|
3 |
define('RESMUSHIT_ENDPOINT', 'http://api.resmush.it/');
|
4 |
+
define('RESMUSHIT_VERSION', '0.2.1');
|
5 |
define('RESMUSHIT_DEFAULT_QLTY', '92');
|
6 |
define('RESMUSHIT_TIMEOUT', '10');
|
7 |
define('RESMUSHIT_LOGS_PATH', 'resmushit.log');
|