Version Description
Download this release
Release Info
Developer | Rahe |
Plugin | Simple Image Sizes |
Version | 2.3.1 |
Comparing to | |
See all releases |
Code changes from version 2.3 to 2.3.1
- inc/class.admin.php +42 -9
- js/sis-attachments.js +47 -7
- js/sis-attachments.min.js +3 -2
- languages/sis-fr_FR.mo +0 -0
- languages/sis-fr_FR.po +263 -257
- readme.txt +6 -1
- simple_image_sizes.php +2 -2
inc/class.admin.php
CHANGED
@@ -10,10 +10,10 @@ Class SISAdmin {
|
|
10 |
add_action ( 'admin_enqueue_scripts', array( &$this, 'registerScripts' ), 11 );
|
11 |
|
12 |
// Add ajax action
|
13 |
-
add_action('
|
14 |
-
add_action('
|
15 |
-
add_action('
|
16 |
-
add_action('
|
17 |
|
18 |
// Add image sizes in the form, check if 3.3 is installed or not
|
19 |
if( !function_exists( 'is_main_query' ) ) {
|
@@ -23,10 +23,13 @@ Class SISAdmin {
|
|
23 |
}
|
24 |
|
25 |
// Add link in plugins list
|
26 |
-
add_filter('plugin_action_links', array( &$this,'addSettingsLink'), 10, 2 );
|
27 |
|
28 |
// Add action in media row quick actions
|
29 |
-
add_filter( 'media_row_actions', array(&$this, 'addActionsList'), 10, 2 );
|
|
|
|
|
|
|
30 |
|
31 |
}
|
32 |
|
@@ -52,7 +55,7 @@ Class SISAdmin {
|
|
52 |
// Add CSS
|
53 |
wp_enqueue_style( 'jquery-ui-sis', SIS_URL.'css/Aristo/jquery-ui-1.8.7.custom.css', array(), '1.8.7' );
|
54 |
wp_enqueue_style( 'sis_css', SIS_URL.'css/sis-style.css', array(), SIS_VERSION );
|
55 |
-
} elseif( $hook_suffix == 'upload.php' ) {
|
56 |
// Add javascript
|
57 |
wp_enqueue_script( 'sis_js', SIS_URL.'js/sis-attachments.min.js', array( 'jquery' ), SIS_VERSION );
|
58 |
|
@@ -84,6 +87,7 @@ Class SISAdmin {
|
|
84 |
'deleteImage' => __( 'Delete', 'sis' ),
|
85 |
'noMedia' => __( 'No media in your site to regenerate !', 'sis' ),
|
86 |
'regenerating' => __( 'Regenerating ', 'sis'),
|
|
|
87 |
'validate' => __( 'Validate image size name', 'sis' ),
|
88 |
'done' => __( 'Done.', 'sis' ),
|
89 |
'size' => __( 'Size', 'sis' ),
|
@@ -726,8 +730,10 @@ Class SISAdmin {
|
|
726 |
|
727 |
$resized = image_make_intermediate_size( $file, $size_data['width'], $size_data['height'], $size_data['crop'] );
|
728 |
|
729 |
-
|
730 |
-
|
|
|
|
|
731 |
|
732 |
if ( $resized )
|
733 |
$metadata['sizes'][$size] = $resized;
|
@@ -877,5 +883,32 @@ Class SISAdmin {
|
|
877 |
// return slug if not found
|
878 |
return $thumbnailSlug;
|
879 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
880 |
}
|
881 |
?>
|
10 |
add_action ( 'admin_enqueue_scripts', array( &$this, 'registerScripts' ), 11 );
|
11 |
|
12 |
// Add ajax action
|
13 |
+
add_action( 'wp_ajax_'.'sis_ajax_thumbnail_rebuild', array( &$this, 'ajaxThumbnailRebuildAjax' ) );
|
14 |
+
add_action( 'wp_ajax_'.'get_sizes', array( &$this, 'ajaxGetSizes' ) );
|
15 |
+
add_action( 'wp_ajax_'.'add_size', array( &$this, 'ajaxAddSize' ) );
|
16 |
+
add_action( 'wp_ajax_'.'remove_size', array( &$this, 'ajaxRemoveSize' ) );
|
17 |
|
18 |
// Add image sizes in the form, check if 3.3 is installed or not
|
19 |
if( !function_exists( 'is_main_query' ) ) {
|
23 |
}
|
24 |
|
25 |
// Add link in plugins list
|
26 |
+
add_filter( 'plugin_action_links', array( &$this,'addSettingsLink' ), 10, 2 );
|
27 |
|
28 |
// Add action in media row quick actions
|
29 |
+
add_filter( 'media_row_actions', array(&$this, 'addActionsList' ), 10, 2 );
|
30 |
+
|
31 |
+
// Add filter for the Media single
|
32 |
+
add_filter( 'attachment_fields_to_edit', array( &$this, 'addFieldRegenerate' ), 9, 2 );
|
33 |
|
34 |
}
|
35 |
|
55 |
// Add CSS
|
56 |
wp_enqueue_style( 'jquery-ui-sis', SIS_URL.'css/Aristo/jquery-ui-1.8.7.custom.css', array(), '1.8.7' );
|
57 |
wp_enqueue_style( 'sis_css', SIS_URL.'css/sis-style.css', array(), SIS_VERSION );
|
58 |
+
} elseif( $hook_suffix == 'upload.php' || ( $hook_suffix == 'media.php' && isset( $_GET['attachment_id'] ) && isset( $_GET['action'] ) && $_GET['action'] == 'edit' ) ) {
|
59 |
// Add javascript
|
60 |
wp_enqueue_script( 'sis_js', SIS_URL.'js/sis-attachments.min.js', array( 'jquery' ), SIS_VERSION );
|
61 |
|
87 |
'deleteImage' => __( 'Delete', 'sis' ),
|
88 |
'noMedia' => __( 'No media in your site to regenerate !', 'sis' ),
|
89 |
'regenerating' => __( 'Regenerating ', 'sis'),
|
90 |
+
'regenerate' => __( 'Regenerate ', 'sis'),
|
91 |
'validate' => __( 'Validate image size name', 'sis' ),
|
92 |
'done' => __( 'Done.', 'sis' ),
|
93 |
'size' => __( 'Size', 'sis' ),
|
730 |
|
731 |
$resized = image_make_intermediate_size( $file, $size_data['width'], $size_data['height'], $size_data['crop'] );
|
732 |
|
733 |
+
if( isset( $meta_datas['size'][$size] ) ) {
|
734 |
+
// Remove the size from the orignal sizes for after work
|
735 |
+
unset( $meta_datas['size'][$size] );
|
736 |
+
}
|
737 |
|
738 |
if ( $resized )
|
739 |
$metadata['sizes'][$size] = $resized;
|
883 |
// return slug if not found
|
884 |
return $thumbnailSlug;
|
885 |
}
|
886 |
+
|
887 |
+
/**
|
888 |
+
* Get a thumbnail name from its slug
|
889 |
+
*
|
890 |
+
* @access public
|
891 |
+
* @param array $fields : the fields of the media
|
892 |
+
* @param object $post : the post object
|
893 |
+
* @return array
|
894 |
+
* @since 2.3.1
|
895 |
+
* @author Nicolas Juen
|
896 |
+
*/
|
897 |
+
function addFieldRegenerate( $fields, $post ) {
|
898 |
+
// Check this is an image
|
899 |
+
if( strpos( $post->post_mime_type, 'image' ) === false )
|
900 |
+
return $fields;
|
901 |
+
|
902 |
+
$fields['sis-regenerate'] = array(
|
903 |
+
'label' => __( 'Regenerate Thumbnails', 'sis' ),
|
904 |
+
'input' => 'html',
|
905 |
+
'html' => '
|
906 |
+
<input type="button" class="button title sis-regenerate-one" value="'.__( 'Regenerate Thumbnails', 'sis' ).'" />
|
907 |
+
<span class="title"><em></em></span>
|
908 |
+
<input type="hidden" class="regen" value="'.wp_create_nonce( 'regen' ).'" />
|
909 |
+
'
|
910 |
+
);
|
911 |
+
return $fields;
|
912 |
+
}
|
913 |
}
|
914 |
?>
|
js/sis-attachments.js
CHANGED
@@ -1,6 +1,37 @@
|
|
1 |
-
jQuery( function(){
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
jQuery( '.sis-regenerate-one' ).click( function( e ) {
|
3 |
e.preventDefault();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
var regenerate = {
|
5 |
list : '',
|
6 |
percent : '' ,
|
@@ -9,13 +40,21 @@ jQuery( function(){
|
|
9 |
messageZone : '',
|
10 |
init: function( el ) {
|
11 |
this.el = jQuery( el );
|
12 |
-
id =
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
this.list = { 'id' : this.id, 'title' : 'titre' };
|
16 |
|
17 |
if( this.el.find('.title em').size() == 0 )
|
18 |
this.el.find('.title strong').after('<em/>');
|
|
|
19 |
this.messageZone = this.el.find('.title em');
|
20 |
|
21 |
if( !this.el.hasClass( 'ajaxing' ) )
|
@@ -52,9 +91,10 @@ jQuery( function(){
|
|
52 |
_self.el.fadeTo( 'fast' ,'1' ).removeClass('ajaxing');
|
53 |
}
|
54 |
});
|
55 |
-
|
56 |
}
|
57 |
}
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
|
1 |
+
jQuery( function() {
|
2 |
+
// Add action dinamycally
|
3 |
+
jQuery( 'select[name="action"]' ).append(
|
4 |
+
jQuery( '<option/>' ).attr( 'value', 'sis-regenerate' ).text( sis.regenerate )
|
5 |
+
);
|
6 |
+
|
7 |
+
// Regenerate one element
|
8 |
jQuery( '.sis-regenerate-one' ).click( function( e ) {
|
9 |
e.preventDefault();
|
10 |
+
new SISAttachRegenerate( this );
|
11 |
+
});
|
12 |
+
|
13 |
+
// On bulk actions
|
14 |
+
jQuery( '#doaction' ).click( function( e ) {
|
15 |
+
if( jQuery( this ).parent().find( 'select' ).val() == 'sis-regenerate' ) {
|
16 |
+
// Get checked checkbocxes
|
17 |
+
var els = jQuery( '.wp-list-table.media #the-list tr input[type="checkbox"]:checked' );
|
18 |
+
|
19 |
+
// Check there is any elements selected
|
20 |
+
if( els.length > 0 ) {
|
21 |
+
|
22 |
+
// Stop default action
|
23 |
+
e.preventDefault();
|
24 |
+
|
25 |
+
// Make all the selected elements
|
26 |
+
els.each( function( i,el ) {
|
27 |
+
new SISAttachRegenerate( jQuery( this ) );
|
28 |
+
} )
|
29 |
+
}
|
30 |
+
}
|
31 |
+
} );
|
32 |
+
|
33 |
+
// Function for regenerating the elements
|
34 |
+
var SISAttachRegenerate = function( el ) {
|
35 |
var regenerate = {
|
36 |
list : '',
|
37 |
percent : '' ,
|
40 |
messageZone : '',
|
41 |
init: function( el ) {
|
42 |
this.el = jQuery( el );
|
43 |
+
id = this.el.attr( 'id' );
|
44 |
+
|
45 |
+
// IF no id found
|
46 |
+
if( !id ) {
|
47 |
+
id = this.el.closest( '.media-item' ).attr( 'id' );
|
48 |
+
this.id = id.replace( 'media-item-', '' );
|
49 |
+
} else {
|
50 |
+
this.id = id.replace( 'post-', '' );
|
51 |
+
}
|
52 |
|
53 |
this.list = { 'id' : this.id, 'title' : 'titre' };
|
54 |
|
55 |
if( this.el.find('.title em').size() == 0 )
|
56 |
this.el.find('.title strong').after('<em/>');
|
57 |
+
|
58 |
this.messageZone = this.el.find('.title em');
|
59 |
|
60 |
if( !this.el.hasClass( 'ajaxing' ) )
|
91 |
_self.el.fadeTo( 'fast' ,'1' ).removeClass('ajaxing');
|
92 |
}
|
93 |
});
|
|
|
94 |
}
|
95 |
}
|
96 |
+
|
97 |
+
// Launch regeneration
|
98 |
+
regenerate.init( jQuery( el ).closest( 'tr' ) );
|
99 |
+
}
|
100 |
+
} );
|
js/sis-attachments.min.js
CHANGED
@@ -1,2 +1,3 @@
|
|
1 |
-
jQuery(function(){jQuery("
|
2 |
-
|
|
1 |
+
jQuery(function(){jQuery('select[name="action"]').append(jQuery("<option/>").attr("value","sis-regenerate").text(sis.regenerate));jQuery(".sis-regenerate-one").click(function(a){a.preventDefault();new c(this)});jQuery("#doaction").click(function(a){if("sis-regenerate"==jQuery(this).parent().find("select").val()){var b=jQuery('.wp-list-table.media #the-list tr input[type="checkbox"]:checked');0<b.length&&(a.preventDefault(),b.each(function(){new c(jQuery(this))}))}});var c=function(a){({list:"",percent:"",
|
2 |
+
el:"",id:"",messageZone:"",init:function(b){this.el=jQuery(b);(id=this.el.attr("id"))?this.id=id.replace("post-",""):(id=this.el.closest(".media-item").attr("id"),this.id=id.replace("media-item-",""));this.list={id:this.id,title:"titre"};0==this.el.find(".title em").size()&&this.el.find(".title strong").after("<em/>");this.messageZone=this.el.find(".title em");this.el.hasClass("ajaxing")||this.regenItem()},setMessage:function(b){this.messageZone.html(" - "+b).addClass("updated").addClass("fade").show()},
|
3 |
+
regenItem:function(){var b=this,a=jQuery("input.regen").val();jQuery.ajax({url:sis.ajaxUrl,type:"POST",dataType:"json",data:"action=sis_ajax_thumbnail_rebuild&do=regen&id="+this.list.id+"&nonce="+a,beforeSend:function(){b.el.fadeTo("fast","0.2").addClass("ajaxing")},success:function(a){var c="",c=!a.src||!a.time||a.error||"object"!==typeof a?"object"!==typeof a?sis.phpError:a.error:sis.soloRegenerated.replace("%s",a.time);b.setMessage(c);b.el.fadeTo("fast","1").removeClass("ajaxing")}})}}).init(jQuery(a).closest("tr"))}});
|
languages/sis-fr_FR.mo
CHANGED
Binary file
|
languages/sis-fr_FR.po
CHANGED
@@ -1,257 +1,263 @@
|
|
1 |
-
# Copyright (C) 2010
|
2 |
-
# This file is distributed under the same license as the package.
|
3 |
-
msgid ""
|
4 |
-
msgstr ""
|
5 |
-
"Project-Id-Version: Simple image sizes\n"
|
6 |
-
"Report-Msgid-Bugs-To: \n"
|
7 |
-
"POT-Creation-Date: 2012-
|
8 |
-
"PO-Revision-Date: 2012-
|
9 |
-
"Last-Translator:
|
10 |
-
"Language-Team: Beapi <njuen@beapi.fr>\n"
|
11 |
-
"MIME-Version: 1.0\n"
|
12 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
13 |
-
"Content-Transfer-Encoding: 8bit\n"
|
14 |
-
"X-Poedit-Language: French\n"
|
15 |
-
"X-Poedit-Country: FRANCE\n"
|
16 |
-
"X-Poedit-SourceCharset: utf-8\n"
|
17 |
-
"X-Poedit-KeywordsList: __;_e;__\n"
|
18 |
-
"X-Poedit-Basepath: ../\n"
|
19 |
-
"X-Poedit-SearchPath-0: .\n"
|
20 |
-
|
21 |
-
#: inc/class.admin.php:
|
22 |
-
msgid "Reading attachments..."
|
23 |
-
msgstr "Chargement des médias..."
|
24 |
-
|
25 |
-
#: inc/class.admin.php:
|
26 |
-
#: inc/class.admin.php:
|
27 |
-
msgid "Maximum width"
|
28 |
-
msgstr "Largeur maximum"
|
29 |
-
|
30 |
-
#: inc/class.admin.php:
|
31 |
-
#: inc/class.admin.php:
|
32 |
-
msgid "Maximum height"
|
33 |
-
msgstr "Hauteur maximum"
|
34 |
-
|
35 |
-
#: inc/class.admin.php:
|
36 |
-
#: inc/class.admin.php:
|
37 |
-
#: inc/class.admin.php:
|
38 |
-
#: inc/class.admin.php:
|
39 |
-
msgid "Crop ?"
|
40 |
-
msgstr "Rogner ?"
|
41 |
-
|
42 |
-
#: inc/class.admin.php:
|
43 |
-
#: inc/class.admin.php:
|
44 |
-
msgid "yes"
|
45 |
-
msgstr "oui"
|
46 |
-
|
47 |
-
#: inc/class.admin.php:
|
48 |
-
#: inc/class.admin.php:
|
49 |
-
msgid "no"
|
50 |
-
msgstr "non"
|
51 |
-
|
52 |
-
#: inc/class.admin.php:
|
53 |
-
#: inc/class.admin.php:
|
54 |
-
msgid "Show in post insertion ?"
|
55 |
-
msgstr "Afficher dans l'insertion ?"
|
56 |
-
|
57 |
-
#: inc/class.admin.php:
|
58 |
-
msgid " of "
|
59 |
-
msgstr " de "
|
60 |
-
|
61 |
-
#: inc/class.admin.php:
|
62 |
-
msgid " or "
|
63 |
-
msgstr " ou "
|
64 |
-
|
65 |
-
#: inc/class.admin.php:
|
66 |
-
msgid " before the end."
|
67 |
-
msgstr " avant la fin."
|
68 |
-
|
69 |
-
#: inc/class.admin.php:
|
70 |
-
#: inc/class.admin.php:
|
71 |
-
msgid "Delete"
|
72 |
-
msgstr "Supprimer"
|
73 |
-
|
74 |
-
#: inc/class.admin.php:
|
75 |
-
msgid "No media in your site to regenerate !"
|
76 |
-
msgstr "Pas de médias à regénérer !"
|
77 |
-
|
78 |
-
#: inc/class.admin.php:
|
79 |
-
msgid "Regenerating "
|
80 |
-
msgstr "Regénération "
|
81 |
-
|
82 |
-
#: inc/class.admin.php:
|
83 |
-
msgid "
|
84 |
-
msgstr "
|
85 |
-
|
86 |
-
#: inc/class.admin.php:
|
87 |
-
msgid "
|
88 |
-
msgstr "
|
89 |
-
|
90 |
-
#: inc/class.admin.php:
|
91 |
-
msgid "
|
92 |
-
msgstr "
|
93 |
-
|
94 |
-
#: inc/class.admin.php:
|
95 |
-
msgid "
|
96 |
-
msgstr "
|
97 |
-
|
98 |
-
#: inc/class.admin.php:
|
99 |
-
msgid "
|
100 |
-
msgstr "
|
101 |
-
|
102 |
-
#: inc/class.admin.php:
|
103 |
-
msgid "
|
104 |
-
msgstr "
|
105 |
-
|
106 |
-
#: inc/class.admin.php:
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
#: inc/class.admin.php:
|
112 |
-
msgid "
|
113 |
-
msgstr "
|
114 |
-
|
115 |
-
#: inc/class.admin.php:
|
116 |
-
msgid "
|
117 |
-
msgstr "
|
118 |
-
|
119 |
-
#: inc/class.admin.php:
|
120 |
-
msgid "
|
121 |
-
msgstr "
|
122 |
-
|
123 |
-
#: inc/class.admin.php:
|
124 |
-
msgid "
|
125 |
-
msgstr "
|
126 |
-
|
127 |
-
#: inc/class.admin.php:
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
#: inc/class.admin.php:
|
133 |
-
msgid "
|
134 |
-
msgstr "
|
135 |
-
|
136 |
-
#: inc/class.admin.php:
|
137 |
-
msgid "
|
138 |
-
msgstr "
|
139 |
-
|
140 |
-
#: inc/class.admin.php:
|
141 |
-
msgid "
|
142 |
-
msgstr "
|
143 |
-
|
144 |
-
#: inc/class.admin.php:
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
msgid "
|
151 |
-
msgstr "
|
152 |
-
|
153 |
-
#: inc/class.admin.php:
|
154 |
-
msgid "
|
155 |
-
msgstr "
|
156 |
-
|
157 |
-
#: inc/class.admin.php:
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
msgid "
|
164 |
-
msgstr "
|
165 |
-
|
166 |
-
#: inc/class.admin.php:
|
167 |
-
msgid "
|
168 |
-
msgstr "
|
169 |
-
|
170 |
-
#: inc/class.admin.php:
|
171 |
-
msgid "
|
172 |
-
msgstr "
|
173 |
-
|
174 |
-
#: inc/class.admin.php:
|
175 |
-
msgid "
|
176 |
-
msgstr "
|
177 |
-
|
178 |
-
#: inc/class.admin.php:
|
179 |
-
msgid "
|
180 |
-
msgstr "
|
181 |
-
|
182 |
-
#: inc/class.admin.php:
|
183 |
-
msgid "
|
184 |
-
msgstr "
|
185 |
-
|
186 |
-
#: inc/class.admin.php:
|
187 |
-
msgid "
|
188 |
-
msgstr "
|
189 |
-
|
190 |
-
#: inc/class.admin.php:
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
#: inc/class.admin.php:
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
#: inc/class.admin.php:
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
#: inc/class.admin.php:
|
206 |
-
msgid "
|
207 |
-
msgstr "
|
208 |
-
|
209 |
-
#: inc/class.admin.php:
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
#: inc/class.admin.php:
|
215 |
-
msgid "
|
216 |
-
msgstr "
|
217 |
-
|
218 |
-
#: inc/class.admin.php:
|
219 |
-
msgid "
|
220 |
-
msgstr "
|
221 |
-
|
222 |
-
#: inc/class.admin.php:
|
223 |
-
msgid "
|
224 |
-
msgstr "
|
225 |
-
|
226 |
-
#: inc/class.admin.php:
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
#~ msgid "
|
251 |
-
#~ msgstr "
|
252 |
-
|
253 |
-
#~ msgid "
|
254 |
-
#~ msgstr "
|
255 |
-
|
256 |
-
#~ msgid "
|
257 |
-
#~ msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright (C) 2010
|
2 |
+
# This file is distributed under the same license as the package.
|
3 |
+
msgid ""
|
4 |
+
msgstr ""
|
5 |
+
"Project-Id-Version: Simple image sizes\n"
|
6 |
+
"Report-Msgid-Bugs-To: \n"
|
7 |
+
"POT-Creation-Date: 2012-03-31 01:51+0100\n"
|
8 |
+
"PO-Revision-Date: 2012-03-31 01:52+0100\n"
|
9 |
+
"Last-Translator: \n"
|
10 |
+
"Language-Team: Beapi <njuen@beapi.fr>\n"
|
11 |
+
"MIME-Version: 1.0\n"
|
12 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
13 |
+
"Content-Transfer-Encoding: 8bit\n"
|
14 |
+
"X-Poedit-Language: French\n"
|
15 |
+
"X-Poedit-Country: FRANCE\n"
|
16 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
17 |
+
"X-Poedit-KeywordsList: __;_e;__\n"
|
18 |
+
"X-Poedit-Basepath: ../\n"
|
19 |
+
"X-Poedit-SearchPath-0: .\n"
|
20 |
+
|
21 |
+
#: inc/class.admin.php:77
|
22 |
+
msgid "Reading attachments..."
|
23 |
+
msgstr "Chargement des médias..."
|
24 |
+
|
25 |
+
#: inc/class.admin.php:78
|
26 |
+
#: inc/class.admin.php:241
|
27 |
+
msgid "Maximum width"
|
28 |
+
msgstr "Largeur maximum"
|
29 |
+
|
30 |
+
#: inc/class.admin.php:79
|
31 |
+
#: inc/class.admin.php:245
|
32 |
+
msgid "Maximum height"
|
33 |
+
msgstr "Hauteur maximum"
|
34 |
+
|
35 |
+
#: inc/class.admin.php:80
|
36 |
+
#: inc/class.admin.php:254
|
37 |
+
#: inc/class.admin.php:327
|
38 |
+
#: inc/class.admin.php:386
|
39 |
+
msgid "Crop ?"
|
40 |
+
msgstr "Rogner ?"
|
41 |
+
|
42 |
+
#: inc/class.admin.php:81
|
43 |
+
#: inc/class.admin.php:374
|
44 |
+
msgid "yes"
|
45 |
+
msgstr "oui"
|
46 |
+
|
47 |
+
#: inc/class.admin.php:82
|
48 |
+
#: inc/class.admin.php:374
|
49 |
+
msgid "no"
|
50 |
+
msgstr "non"
|
51 |
+
|
52 |
+
#: inc/class.admin.php:83
|
53 |
+
#: inc/class.admin.php:257
|
54 |
+
msgid "Show in post insertion ?"
|
55 |
+
msgstr "Afficher dans l'insertion ?"
|
56 |
+
|
57 |
+
#: inc/class.admin.php:84
|
58 |
+
msgid " of "
|
59 |
+
msgstr " de "
|
60 |
+
|
61 |
+
#: inc/class.admin.php:85
|
62 |
+
msgid " or "
|
63 |
+
msgstr " ou "
|
64 |
+
|
65 |
+
#: inc/class.admin.php:86
|
66 |
+
msgid " before the end."
|
67 |
+
msgstr " avant la fin."
|
68 |
+
|
69 |
+
#: inc/class.admin.php:87
|
70 |
+
#: inc/class.admin.php:259
|
71 |
+
msgid "Delete"
|
72 |
+
msgstr "Supprimer"
|
73 |
+
|
74 |
+
#: inc/class.admin.php:88
|
75 |
+
msgid "No media in your site to regenerate !"
|
76 |
+
msgstr "Pas de médias à regénérer !"
|
77 |
+
|
78 |
+
#: inc/class.admin.php:89
|
79 |
+
msgid "Regenerating "
|
80 |
+
msgstr "Regénération "
|
81 |
+
|
82 |
+
#: inc/class.admin.php:90
|
83 |
+
msgid "Regenerate "
|
84 |
+
msgstr "Regénérer "
|
85 |
+
|
86 |
+
#: inc/class.admin.php:91
|
87 |
+
msgid "Validate image size name"
|
88 |
+
msgstr "Valider le nom de la taille d'image"
|
89 |
+
|
90 |
+
#: inc/class.admin.php:92
|
91 |
+
msgid "Done."
|
92 |
+
msgstr "Fini."
|
93 |
+
|
94 |
+
#: inc/class.admin.php:93
|
95 |
+
msgid "Size"
|
96 |
+
msgstr "Taille "
|
97 |
+
|
98 |
+
#: inc/class.admin.php:94
|
99 |
+
msgid "Don't use the basic Wordpress thumbnail size name, use the form above to edit them"
|
100 |
+
msgstr "N'utilisez pas les tailles par défaut de WordPress comme nom de taille, éditez leurs valeurs avec le formulaire ci-dessus."
|
101 |
+
|
102 |
+
#: inc/class.admin.php:95
|
103 |
+
msgid "This size is already registered, edit it instead of recreating it."
|
104 |
+
msgstr "Cette taille existe déjà, éditez la au lieu de la recréer."
|
105 |
+
|
106 |
+
#: inc/class.admin.php:96
|
107 |
+
msgid "Do you really want to delete these size ?"
|
108 |
+
msgstr "Voulez-vous réellement supprimer cette taille ?"
|
109 |
+
|
110 |
+
#: inc/class.admin.php:97
|
111 |
+
#: inc/class.admin.php:260
|
112 |
+
msgid "Update"
|
113 |
+
msgstr "Mettre à jour"
|
114 |
+
|
115 |
+
#: inc/class.admin.php:98
|
116 |
+
msgid "Error requesting page"
|
117 |
+
msgstr "Erreur lors de la requête vers la page"
|
118 |
+
|
119 |
+
#: inc/class.admin.php:99
|
120 |
+
msgid "images have been regenerated !"
|
121 |
+
msgstr "images ont été regénérées !"
|
122 |
+
|
123 |
+
#: inc/class.admin.php:100
|
124 |
+
msgid "Validate"
|
125 |
+
msgstr "Valider"
|
126 |
+
|
127 |
+
#: inc/class.admin.php:101
|
128 |
+
msgid " started at"
|
129 |
+
msgstr " commencé à "
|
130 |
+
|
131 |
+
#: inc/class.admin.php:102
|
132 |
+
#: inc/class.admin.php:249
|
133 |
+
msgid "Public name"
|
134 |
+
msgstr "Nom public"
|
135 |
+
|
136 |
+
#: inc/class.admin.php:103
|
137 |
+
msgid " finished at :"
|
138 |
+
msgstr " terminé à :"
|
139 |
+
|
140 |
+
#: inc/class.admin.php:104
|
141 |
+
msgid "Error during the php treatment, be sure to not have php errors in your page"
|
142 |
+
msgstr "Erreur durant le traitement, soyez sûr de ne pas avoir d'erreurs php dans votre page"
|
143 |
+
|
144 |
+
#: inc/class.admin.php:105
|
145 |
+
msgid "All the sizes you have modifed are not saved, continue anyway ?"
|
146 |
+
msgstr "Toutes les tailles qui ont été modifiée n'ont pas été sauvées, continuer tout de même ?"
|
147 |
+
|
148 |
+
#: inc/class.admin.php:106
|
149 |
+
#, php-format
|
150 |
+
msgid "This image has been regenerated in %s seconds"
|
151 |
+
msgstr "Cette image a été regénérée en %s secondes"
|
152 |
+
|
153 |
+
#: inc/class.admin.php:121
|
154 |
+
msgid "Regenerate thumbnails"
|
155 |
+
msgstr "Régénérer les vignettes"
|
156 |
+
|
157 |
+
#: inc/class.admin.php:141
|
158 |
+
msgid "Settings"
|
159 |
+
msgstr "Paramètres"
|
160 |
+
|
161 |
+
#: inc/class.admin.php:190
|
162 |
+
#, php-format
|
163 |
+
msgid "%s size"
|
164 |
+
msgstr "Taille %s"
|
165 |
+
|
166 |
+
#: inc/class.admin.php:197
|
167 |
+
msgid "Add a new size"
|
168 |
+
msgstr "Ajouter une nouvelle taille"
|
169 |
+
|
170 |
+
#: inc/class.admin.php:200
|
171 |
+
msgid "Legend of the sizes"
|
172 |
+
msgstr "Légende des tailles"
|
173 |
+
|
174 |
+
#: inc/class.admin.php:203
|
175 |
+
msgid "Get php for theme"
|
176 |
+
msgstr "Récupérer le PHP pour le thème"
|
177 |
+
|
178 |
+
#: inc/class.admin.php:206
|
179 |
+
msgid "Thumbnail regeneration"
|
180 |
+
msgstr "Régénération des vignettes"
|
181 |
+
|
182 |
+
#: inc/class.admin.php:286
|
183 |
+
msgid "Copy and paste the code below into your Wordpress theme function file if you wanted to save them and deactivate the plugin."
|
184 |
+
msgstr "Copiez et collez le code ci-dessous dans votre fichier de fonctions de votre thème WordPress si vous voulez les conserver et désactiver ce plugin."
|
185 |
+
|
186 |
+
#: inc/class.admin.php:299
|
187 |
+
msgid "The images created on your theme are <span style=\"color:#F2A13A\">orange</span> and your custom size are <span style=\"color:#89D76A\"> green </span>."
|
188 |
+
msgstr "Les tailles d'images crées par votre thème sont en <span style=\"color:#F2A13A\">orange</span> et vos tailles personnalisées sont en <span style=\"color:#89D76A\"> vert </span>."
|
189 |
+
|
190 |
+
#: inc/class.admin.php:319
|
191 |
+
msgid "Select which thumbnails you want to rebuild:"
|
192 |
+
msgstr "Sélectionnez les tailles de vignettes à régénérer"
|
193 |
+
|
194 |
+
#: inc/class.admin.php:324
|
195 |
+
#: inc/class.admin.php:383
|
196 |
+
msgid "Size name"
|
197 |
+
msgstr "Nom de la taille"
|
198 |
+
|
199 |
+
#: inc/class.admin.php:325
|
200 |
+
#: inc/class.admin.php:384
|
201 |
+
msgid "Width"
|
202 |
+
msgstr "Largeur"
|
203 |
+
|
204 |
+
#: inc/class.admin.php:326
|
205 |
+
#: inc/class.admin.php:385
|
206 |
+
msgid "Height"
|
207 |
+
msgstr "Hauteur"
|
208 |
+
|
209 |
+
#: inc/class.admin.php:391
|
210 |
+
msgid "Select which post type source thumbnails you want to rebuild:"
|
211 |
+
msgstr "Sélectionnez quelles vignettes de quel type de contenu vous souhaitez régénérer : "
|
212 |
+
|
213 |
+
#: inc/class.admin.php:396
|
214 |
+
#: inc/class.admin.php:424
|
215 |
+
msgid "Post type"
|
216 |
+
msgstr "Type de contenu"
|
217 |
+
|
218 |
+
#: inc/class.admin.php:446
|
219 |
+
msgid "End time calculated :"
|
220 |
+
msgstr "Fin du traitement calculé :"
|
221 |
+
|
222 |
+
#: inc/class.admin.php:457
|
223 |
+
msgid "Last image:"
|
224 |
+
msgstr "Dernière image :"
|
225 |
+
|
226 |
+
#: inc/class.admin.php:458
|
227 |
+
#: inc/class.admin.php:903
|
228 |
+
#: inc/class.admin.php:906
|
229 |
+
msgid "Regenerate Thumbnails"
|
230 |
+
msgstr "Régénérer les vignettes"
|
231 |
+
|
232 |
+
#: inc/class.admin.php:651
|
233 |
+
msgid "Trying to cheat ?"
|
234 |
+
msgstr "Cheater ?"
|
235 |
+
|
236 |
+
#: inc/class.admin.php:660
|
237 |
+
msgid "No id given in POST datas."
|
238 |
+
msgstr "Pas d'id donné dans les données du POST."
|
239 |
+
|
240 |
+
#: inc/class.admin.php:670
|
241 |
+
#, php-format
|
242 |
+
msgid "This file already exists in this size and have not been regenerated :<br/><a target=\"_blank\" href=\"%1$s\" >%2$s</a>"
|
243 |
+
msgstr "Ce fichier existe déjà dans cette ces tailles d'image et n'a pas été regénéré :<br/><a target=\"_blank\" href=\"%1$s\" >%2$s</a>"
|
244 |
+
|
245 |
+
#: inc/class.admin.php:672
|
246 |
+
#, php-format
|
247 |
+
msgid "This file does not exists and have not been regenerated :<br/><a target=\"_blank\" href=\"%1$s\" >%2$s</a>"
|
248 |
+
msgstr "Ce fichier existe déjà dans cette ces tailles d'image et n'a pas été regénéré :<br/><a target=\"_blank\" href=\"%1$s\" >%2$s</a>"
|
249 |
+
|
250 |
+
#~ msgid "Size "
|
251 |
+
#~ msgstr "Taille "
|
252 |
+
|
253 |
+
#~ msgid "Theme size"
|
254 |
+
#~ msgstr "Taille de thème"
|
255 |
+
|
256 |
+
#~ msgid "Add a new size of thumbnail"
|
257 |
+
#~ msgstr "Ajouter une nouvelle taille de vignette"
|
258 |
+
|
259 |
+
#~ msgid "Get the PHP for the theme"
|
260 |
+
#~ msgstr "Récupérer le PHP pour le thème"
|
261 |
+
|
262 |
+
#~ msgid "Resize ?"
|
263 |
+
#~ msgstr "Regénérer ?"
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.beapi.fr/donate/
|
|
4 |
Tags: images, image, custom sizes, custom images, thumbnail regenerate, thumbnail, regenerate
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.3.1
|
7 |
-
Stable tag: 2.3
|
8 |
|
9 |
== Description ==
|
10 |
|
@@ -14,6 +14,8 @@ You can now get all the code to copy and paste to your function theme file.
|
|
14 |
Now you can use the generated sizes directly into your posts and insert images at the right size !
|
15 |
Now you choose if you want display the size in the post insert image.
|
16 |
Now you can regenerate the images one by one in the 'Medias' general pane.
|
|
|
|
|
17 |
|
18 |
I have added a timer so when you regeneration your thumbnails, you can know approximately when the regeneration will be ended.
|
19 |
I have improved the php and javascript, you can know if the image have been regenerated or not or if there is an error and which one.
|
@@ -36,6 +38,9 @@ Contribute on https://github.com/Rahe/Simple-image-sizes
|
|
36 |
4. Regenerating image sizes
|
37 |
|
38 |
== Changelog ==
|
|
|
|
|
|
|
39 |
* 2.3
|
40 |
* Add the custom size name in the attachment insertion
|
41 |
* Exclude post_type wich do not support the post-thumbnail feature
|
4 |
Tags: images, image, custom sizes, custom images, thumbnail regenerate, thumbnail, regenerate
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.3.1
|
7 |
+
Stable tag: 2.3.1
|
8 |
|
9 |
== Description ==
|
10 |
|
14 |
Now you can use the generated sizes directly into your posts and insert images at the right size !
|
15 |
Now you choose if you want display the size in the post insert image.
|
16 |
Now you can regenerate the images one by one in the 'Medias' general pane.
|
17 |
+
Now you can regenerate the images by bulk action in the 'Medias' general pane.
|
18 |
+
Now you can regenerate the image sizes on single attachment edit page.
|
19 |
|
20 |
I have added a timer so when you regeneration your thumbnails, you can know approximately when the regeneration will be ended.
|
21 |
I have improved the php and javascript, you can know if the image have been regenerated or not or if there is an error and which one.
|
38 |
4. Regenerating image sizes
|
39 |
|
40 |
== Changelog ==
|
41 |
+
* 2.3.1
|
42 |
+
* Add Ajax bulk actions on medias list
|
43 |
+
* Add ajax thumbnail rebuild on single media
|
44 |
* 2.3
|
45 |
* Add the custom size name in the attachment insertion
|
46 |
* Exclude post_type wich do not support the post-thumbnail feature
|
simple_image_sizes.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Simple Image Size
|
4 |
Plugin URI: http://redmine.beapi.fr/projects/show/simple-image-sizes
|
5 |
Description: Add options in media setting page for images sizes
|
6 |
-
Version: 2.3
|
7 |
Author: Rahe
|
8 |
Author URI: http://nicolas-juen.fr
|
9 |
Text Domain: sis
|
@@ -29,7 +29,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
29 |
|
30 |
define( 'SIS_URL', plugins_url('/', __FILE__) );
|
31 |
define( 'SIS_DIR', dirname(__FILE__) );
|
32 |
-
define( 'SIS_VERSION', '2.3' );
|
33 |
define( 'SIS_OPTION', 'custom_image_sizes' );
|
34 |
|
35 |
require_once( SIS_DIR . DIRECTORY_SEPARATOR . 'inc' . DIRECTORY_SEPARATOR . 'class.admin.php' );
|
3 |
Plugin Name: Simple Image Size
|
4 |
Plugin URI: http://redmine.beapi.fr/projects/show/simple-image-sizes
|
5 |
Description: Add options in media setting page for images sizes
|
6 |
+
Version: 2.3.1
|
7 |
Author: Rahe
|
8 |
Author URI: http://nicolas-juen.fr
|
9 |
Text Domain: sis
|
29 |
|
30 |
define( 'SIS_URL', plugins_url('/', __FILE__) );
|
31 |
define( 'SIS_DIR', dirname(__FILE__) );
|
32 |
+
define( 'SIS_VERSION', '2.3.1' );
|
33 |
define( 'SIS_OPTION', 'custom_image_sizes' );
|
34 |
|
35 |
require_once( SIS_DIR . DIRECTORY_SEPARATOR . 'inc' . DIRECTORY_SEPARATOR . 'class.admin.php' );
|