Version Description
- Fix custom sizes with either height or width set to '0'
- Added German translation
Download this release
Release Info
Developer | sewpafly |
Plugin | Post Thumbnail Editor |
Version | 1.0.5 |
Comparing to | |
See all releases |
Code changes from version 1.0.4 to 1.0.5
- README.txt +8 -1
- i18n/post-thumbnail-editor-de_DE.mo +0 -0
- i18n/post-thumbnail-editor-de_DE.po +242 -0
- php/functions.php +23 -8
- post-thumbnail-editor.php +4 -3
README.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: sewpafly
|
|
3 |
Donate link: https://www.wepay.com/donate/34543
|
4 |
Tags: post-thumbnail, post thumbnail, featured image, featured, editor, image, awesome
|
5 |
Requires at least: 3.2
|
6 |
-
Tested up to: 3.
|
7 |
Stable tag: trunk
|
8 |
|
9 |
Fed up with the lack of automated tools to properly crop and scale post thumbnails? Maybe this plugin can help.
|
@@ -63,6 +63,10 @@ Using a version with [json_encode](http://www.php.net/manual/en/function.json-en
|
|
63 |
|
64 |
== Changelog ==
|
65 |
|
|
|
|
|
|
|
|
|
66 |
= 1.0.4 =
|
67 |
* Added full paths to php includes
|
68 |
* Fix handling for thumbnail names with spaces
|
@@ -98,6 +102,9 @@ Using a version with [json_encode](http://www.php.net/manual/en/function.json-en
|
|
98 |
|
99 |
== Upgrade Notice ==
|
100 |
|
|
|
|
|
|
|
101 |
= 1.0.4 =
|
102 |
Bugfixes & portuguese translation
|
103 |
|
3 |
Donate link: https://www.wepay.com/donate/34543
|
4 |
Tags: post-thumbnail, post thumbnail, featured image, featured, editor, image, awesome
|
5 |
Requires at least: 3.2
|
6 |
+
Tested up to: 3.3.1
|
7 |
Stable tag: trunk
|
8 |
|
9 |
Fed up with the lack of automated tools to properly crop and scale post thumbnails? Maybe this plugin can help.
|
63 |
|
64 |
== Changelog ==
|
65 |
|
66 |
+
= 1.0.5 =
|
67 |
+
* Fix custom sizes with either height or width set to '0'
|
68 |
+
* Added German translation
|
69 |
+
|
70 |
= 1.0.4 =
|
71 |
* Added full paths to php includes
|
72 |
* Fix handling for thumbnail names with spaces
|
102 |
|
103 |
== Upgrade Notice ==
|
104 |
|
105 |
+
= 1.0.5 =
|
106 |
+
Bugfix & added German translation
|
107 |
+
|
108 |
= 1.0.4 =
|
109 |
Bugfixes & portuguese translation
|
110 |
|
i18n/post-thumbnail-editor-de_DE.mo
ADDED
Binary file
|
i18n/post-thumbnail-editor-de_DE.po
ADDED
@@ -0,0 +1,242 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright (C) 2010 Post Thumbnail Editor
|
2 |
+
# This file is distributed under the same license as the Post Thumbnail Editor package.
|
3 |
+
msgid ""
|
4 |
+
msgstr ""
|
5 |
+
"Project-Id-Version: Post Thumbnail Editor 1.0.1-alpha2\n"
|
6 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/post-thumbnail-editor\n"
|
7 |
+
"POT-Creation-Date: 2011-09-06 15:57:59+00:00\n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"PO-Revision-Date: 2012-04-02 10:57+0100\n"
|
12 |
+
"Last-Translator: Christian Wenzl <post@christian-wenzl.de>\n"
|
13 |
+
"Language-Team: Christian Wenzl <post@christian-wenzl.de>\n"
|
14 |
+
"X-Poedit-Language: German\n"
|
15 |
+
"X-Poedit-Country: GERMANY\n"
|
16 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
17 |
+
|
18 |
+
#: html/pte.php:20
|
19 |
+
msgid "Post Thumbnail Editor - Step 1"
|
20 |
+
msgstr "Vorschaubild Editor - Schritt 1"
|
21 |
+
|
22 |
+
#: html/pte.php:33
|
23 |
+
msgid "Create Thumbnails"
|
24 |
+
msgstr "Erzeuge Vorschaubilder"
|
25 |
+
|
26 |
+
#: html/pte.php:39
|
27 |
+
msgid "Choose the images/thumbnails that you want to edit:"
|
28 |
+
msgstr "Wählen Sie die zu bearbeitenden Bilder:"
|
29 |
+
|
30 |
+
#: html/pte.php:42
|
31 |
+
msgid "Select: %1$sAll%2$s | %3$sNone%4$s"
|
32 |
+
msgstr "Auswahl: %1$sAlle%2$s | %3$sKeine%4$s"
|
33 |
+
|
34 |
+
#: html/pte.php:59
|
35 |
+
msgid "Current image:"
|
36 |
+
msgstr "Aktuelles Bild:"
|
37 |
+
|
38 |
+
#: html/pte.php:78
|
39 |
+
msgid "Back"
|
40 |
+
msgstr "Zurück"
|
41 |
+
|
42 |
+
#: html/pte.php:80
|
43 |
+
msgid "Post Thumbnail Editor - Step 2"
|
44 |
+
msgstr "Vorschaubild Editor - Schritt 2"
|
45 |
+
|
46 |
+
#: html/pte.php:83
|
47 |
+
#: html/pte.php:144
|
48 |
+
msgid "We noticed some potential issues:"
|
49 |
+
msgstr "Es sind einige Probleme aufgetreten:"
|
50 |
+
|
51 |
+
#: html/pte.php:86
|
52 |
+
msgid "View %1$slogs%2$s for further information"
|
53 |
+
msgstr "Weitere Informationen finden Sie in den %1$sLogdateien%2$s"
|
54 |
+
|
55 |
+
#: html/pte.php:91
|
56 |
+
msgid "%1$sEnable debugging%2$s for additional information"
|
57 |
+
msgstr "%1$sDebug aktivieren%2$s um weitere Informationen zu erhalten"
|
58 |
+
|
59 |
+
#: html/pte.php:101
|
60 |
+
msgid "Select the images you want to keep: %1$sAll%2$s | %3$sNone%4$s"
|
61 |
+
msgstr "Wählen Sie die zu behaltenden Bilder aus: %1$sAlle%2$s | %3$sKeine%4$s"
|
62 |
+
|
63 |
+
#: html/pte.php:124
|
64 |
+
msgid "Okay, these look good..."
|
65 |
+
msgstr "Okey, sieht gut aus..."
|
66 |
+
|
67 |
+
#: html/pte.php:128
|
68 |
+
msgid "I'd rather start over..."
|
69 |
+
msgstr "Nochmal neu beginnen..."
|
70 |
+
|
71 |
+
#. #-#-#-#-# post-thumbnail-editor.pot (Post Thumbnail Editor 1.0.1-alpha2) #-#-#-#-#
|
72 |
+
#. Plugin Name of the plugin/theme
|
73 |
+
#: html/pte.php:135
|
74 |
+
#: post-thumbnail-editor.php:113
|
75 |
+
#: post-thumbnail-editor.php:178
|
76 |
+
#: post-thumbnail-editor.php:179
|
77 |
+
#: php/options.php:64
|
78 |
+
msgid "Post Thumbnail Editor"
|
79 |
+
msgstr "Vorschaubild Editor"
|
80 |
+
|
81 |
+
#: html/pte.php:138
|
82 |
+
msgid "Images were created successfully."
|
83 |
+
msgstr "Die Bilder wurden erfolgreich erstellt."
|
84 |
+
|
85 |
+
#: html/pte.php:140
|
86 |
+
msgid "Click %1$shere%2$s to modify another thumbnail."
|
87 |
+
msgstr "Klicken Sie %1$shier%2$s um ein weiteres Vorschaubild zu bearbeiten."
|
88 |
+
|
89 |
+
#: html/pte.php:156
|
90 |
+
msgid "Please wait"
|
91 |
+
msgstr "Etwas Geduld"
|
92 |
+
|
93 |
+
#: html/pte.php:160
|
94 |
+
msgid "Click here to show application logs"
|
95 |
+
msgstr "Klicken Sie hier um die Logdatei einzusehen"
|
96 |
+
|
97 |
+
#: html/pte.php:162
|
98 |
+
#: php/options.php:30
|
99 |
+
msgid "Debug"
|
100 |
+
msgstr "Debug"
|
101 |
+
|
102 |
+
#: html/pte.php:167
|
103 |
+
msgid "If you are having any issues with this plugin, create a problem report on %1$sgithub%2$s or %3$swordpress.org%4$s so that I can look into it. Copy these log statements and include some information about what you were trying "
|
104 |
+
msgstr "Falls Sie irgendwelche Probleme bei diesem Plugin feststellen, melden Sie dies bitte bei %1$sgithub%2$s oder %3$swordpress.org%4$s damit sich der Entwickler darum kümmern kann. Kopieren Sie diese Log-Informationen dazu, ergänzend von einer kurzen Beschreibung was Sie versucht haben."
|
105 |
+
|
106 |
+
#: html/pte.php:181
|
107 |
+
msgid "Send to Pastebin"
|
108 |
+
msgstr "In den Papierkorb"
|
109 |
+
|
110 |
+
#: html/pte.php:182
|
111 |
+
msgid "Clear Messages"
|
112 |
+
msgstr "Nachrichten leeren"
|
113 |
+
|
114 |
+
#: html/pte.php:185
|
115 |
+
msgid "Run Tests"
|
116 |
+
msgstr "Tests starten"
|
117 |
+
|
118 |
+
#: html/pte.php:186
|
119 |
+
msgid "Close"
|
120 |
+
msgstr "Schließen"
|
121 |
+
|
122 |
+
#: post-thumbnail-editor.php:167
|
123 |
+
msgid "Edit Thumbnails"
|
124 |
+
msgstr "Vorschaubilder bearbeiten"
|
125 |
+
|
126 |
+
#: post-thumbnail-editor.php:168
|
127 |
+
#: php/options.php:51
|
128 |
+
msgid "Thumbnails"
|
129 |
+
msgstr "Vorschaubilder"
|
130 |
+
|
131 |
+
#: php/log.php:15
|
132 |
+
msgid "ERROR"
|
133 |
+
msgstr "FEHLER"
|
134 |
+
|
135 |
+
#: php/log.php:18
|
136 |
+
msgid "WARNING"
|
137 |
+
msgstr "WARNUNG"
|
138 |
+
|
139 |
+
#: php/log.php:21
|
140 |
+
msgid "DEBUG"
|
141 |
+
msgstr "DEBUG"
|
142 |
+
|
143 |
+
#: php/log.php:99
|
144 |
+
msgid "ERROR Logging Message: %s"
|
145 |
+
msgstr "FEHLERMELDUNG: %s"
|
146 |
+
|
147 |
+
#: php/options.php:8
|
148 |
+
msgid "These site-wide settings can only be changed by an administrator"
|
149 |
+
msgstr "Diese seitenweite Einstellung kann nur durch einen Administrator geändert werden"
|
150 |
+
|
151 |
+
#: php/options.php:19
|
152 |
+
msgid "User Options"
|
153 |
+
msgstr "Benutzer Einstellungen"
|
154 |
+
|
155 |
+
#: php/options.php:24
|
156 |
+
msgid "Thickbox dimensions"
|
157 |
+
msgstr "Abmessungen der Thickbox"
|
158 |
+
|
159 |
+
#: php/options.php:36
|
160 |
+
msgid "Reset to defaults"
|
161 |
+
msgstr "Auf Standardeinstellungen zurücksetzen"
|
162 |
+
|
163 |
+
#: php/options.php:47
|
164 |
+
msgid "Site Options"
|
165 |
+
msgstr "Seiteneinstellungen"
|
166 |
+
|
167 |
+
#: php/options.php:72
|
168 |
+
msgid "Save Changes"
|
169 |
+
msgstr "Änderungen speichern"
|
170 |
+
|
171 |
+
#: php/options.php:86
|
172 |
+
msgid "Only users with the 'manage_options' capability may make changes to these settings."
|
173 |
+
msgstr "Nur Benutzer mit dem Recht 'manage_options' (Einstellungen bearbeiten) können diese Optionen ändern."
|
174 |
+
|
175 |
+
#: php/options.php:118
|
176 |
+
msgid "Thickbox width must be at least 750 pixels."
|
177 |
+
msgstr "Breite der Thickbox muss mind. 750 Pixel betragen."
|
178 |
+
|
179 |
+
#: php/options.php:128
|
180 |
+
msgid "Thickbox height must be greater than 550 pixels."
|
181 |
+
msgstr "Höhe der Thickbox muss mind. 750 Pixel betragen."
|
182 |
+
|
183 |
+
#: php/options.php:142
|
184 |
+
msgid "Width:"
|
185 |
+
msgstr "Breite:"
|
186 |
+
|
187 |
+
#: php/options.php:146
|
188 |
+
msgid "Set this to a value greater than 750."
|
189 |
+
msgstr "mind. 750 Pixel"
|
190 |
+
|
191 |
+
#: php/options.php:153
|
192 |
+
msgid "Height:"
|
193 |
+
msgstr "Höhe:"
|
194 |
+
|
195 |
+
#: php/options.php:157
|
196 |
+
msgid "Set this to a value greater than 550."
|
197 |
+
msgstr "mind. 550 Pixel"
|
198 |
+
|
199 |
+
#: php/options.php:169
|
200 |
+
msgid "Enable debugging"
|
201 |
+
msgstr "Debugging aktivieren"
|
202 |
+
|
203 |
+
#: php/options.php:178
|
204 |
+
msgid "Reset User Options"
|
205 |
+
msgstr "Benutzereinstellungen zurücksetzen"
|
206 |
+
|
207 |
+
#: php/options.php:204
|
208 |
+
msgid "Post Thumbnail"
|
209 |
+
msgstr "Artikel Vorschaubild"
|
210 |
+
|
211 |
+
#: php/options.php:205
|
212 |
+
msgid "Hidden"
|
213 |
+
msgstr "Versteckt"
|
214 |
+
|
215 |
+
#: php/functions.php:257
|
216 |
+
msgid "Sorry, there was a problem trying to send to pastebin"
|
217 |
+
msgstr "Ups, konnte die Datei nicht in den Papierkorb legen."
|
218 |
+
|
219 |
+
#: php/functions.php:258
|
220 |
+
msgid "PASTEBIN URL:"
|
221 |
+
msgstr "Url zum Papierkorb:"
|
222 |
+
|
223 |
+
#: php/functions.php:259
|
224 |
+
msgid "Disabling aspect ratio"
|
225 |
+
msgstr "Seitenverhältnis nicht beachten"
|
226 |
+
|
227 |
+
#. Plugin URI of the plugin/theme
|
228 |
+
msgid "http://wordpress.org/extend/plugins/post-thumbnail-editor/"
|
229 |
+
msgstr "http://wordpress.org/extend/plugins/post-thumbnail-editor/"
|
230 |
+
|
231 |
+
#. Description of the plugin/theme
|
232 |
+
msgid "Individually manage your post thumbnails"
|
233 |
+
msgstr "Verändern Sie die Vorschaubilder individuell nach Ihren Vorstellungen"
|
234 |
+
|
235 |
+
#. Author of the plugin/theme
|
236 |
+
msgid "sewpafly"
|
237 |
+
msgstr "sewpafly"
|
238 |
+
|
239 |
+
#. Author URI of the plugin/theme
|
240 |
+
msgid "http://sewpafly.github.com/post-thumbnail-editor"
|
241 |
+
msgstr "http://sewpafly.github.com/post-thumbnail-editor"
|
242 |
+
|
php/functions.php
CHANGED
@@ -323,21 +323,36 @@ function pte_check_int( $int ){
|
|
323 |
* but the other dimension is wrong
|
324 |
*/
|
325 |
function pte_get_width_height( $size_information, $w, $h ){
|
|
|
326 |
if ( $size_information['crop'] == 1 ){
|
|
|
327 |
$dst_w = $size_information['width'];
|
328 |
$dst_h = $size_information['height'];
|
329 |
}
|
330 |
// Crop isn't set so the height / width should be based on the biggest side
|
331 |
-
|
332 |
-
$dst_w = $size_information['width'];
|
333 |
-
$dst_h = round( ($dst_w/$w) * $h, 0);
|
334 |
-
}
|
335 |
else {
|
336 |
-
$
|
337 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
338 |
}
|
339 |
-
|
340 |
-
return $return;
|
341 |
}
|
342 |
|
343 |
/*
|
323 |
* but the other dimension is wrong
|
324 |
*/
|
325 |
function pte_get_width_height( $size_information, $w, $h ){
|
326 |
+
$logger = PteLogger::singleton();
|
327 |
if ( $size_information['crop'] == 1 ){
|
328 |
+
$logger->debug("GETwidthheightCROPPED");
|
329 |
$dst_w = $size_information['width'];
|
330 |
$dst_h = $size_information['height'];
|
331 |
}
|
332 |
// Crop isn't set so the height / width should be based on the biggest side
|
333 |
+
// or check if the post_thumbnail has a 0 for a side.
|
|
|
|
|
|
|
334 |
else {
|
335 |
+
$use_width = false;
|
336 |
+
if ( $w > $h ) $use_width = true;
|
337 |
+
if ( $size_information['height'] == 0 ) $use_width = true;
|
338 |
+
if ( $size_information['width'] == 0 ) $use_width = false;
|
339 |
+
|
340 |
+
$logger->debug("GETwidthheightPARAMS\nWIDTH: $w\nHEIGHT: $h\nUSE_WIDTH: $use_width");
|
341 |
+
if ( $use_width ){
|
342 |
+
$dst_w = $size_information['width'];
|
343 |
+
$dst_h = round( ($dst_w/$w) * $h, 0);
|
344 |
+
}
|
345 |
+
else {
|
346 |
+
$dst_h = $size_information['height'];
|
347 |
+
$dst_w = round( ($dst_h/$h) * $w, 0);
|
348 |
+
}
|
349 |
+
}
|
350 |
+
|
351 |
+
// Sanity Check
|
352 |
+
if ( $dst_h == 0 || $dst_w == 0 ){
|
353 |
+
$logger->error( "Invalid derived dimensions: ${dst_w} x ${dst_h}" );
|
354 |
}
|
355 |
+
return compact( "dst_w", "dst_h" );
|
|
|
356 |
}
|
357 |
|
358 |
/*
|
post-thumbnail-editor.php
CHANGED
@@ -3,13 +3,13 @@
|
|
3 |
Plugin URI: http://wordpress.org/extend/plugins/post-thumbnail-editor/
|
4 |
Author: sewpafly
|
5 |
Author URI: http://sewpafly.github.com/post-thumbnail-editor
|
6 |
-
Version: 1.0.
|
7 |
Description: Individually manage your post thumbnails
|
8 |
|
9 |
LICENSE
|
10 |
=======
|
11 |
|
12 |
-
Copyright
|
13 |
|
14 |
This program is free software; you can redistribute it and/or modify
|
15 |
it under the terms of the GNU General Public License as published by
|
@@ -35,7 +35,7 @@
|
|
35 |
define( 'PTE_PLUGINURL', plugins_url(basename( dirname(__FILE__))) . "/");
|
36 |
define( 'PTE_PLUGINPATH', dirname(__FILE__) . "/");
|
37 |
define( 'PTE_DOMAIN', "post-thumbnail-editor");
|
38 |
-
define( 'PTE_VERSION', "1.0.
|
39 |
|
40 |
/*
|
41 |
* Option Functionality
|
@@ -217,4 +217,5 @@ add_action( 'load-options.php', 'pte_options' );
|
|
217 |
load_plugin_textdomain( PTE_DOMAIN
|
218 |
, false
|
219 |
, basename( PTE_PLUGINPATH ) . DIRECTORY_SEPARATOR . "i18n" );
|
|
|
220 |
?>
|
3 |
Plugin URI: http://wordpress.org/extend/plugins/post-thumbnail-editor/
|
4 |
Author: sewpafly
|
5 |
Author URI: http://sewpafly.github.com/post-thumbnail-editor
|
6 |
+
Version: 1.0.5
|
7 |
Description: Individually manage your post thumbnails
|
8 |
|
9 |
LICENSE
|
10 |
=======
|
11 |
|
12 |
+
Copyright 2012 (email : sewpafly@gmail.com)
|
13 |
|
14 |
This program is free software; you can redistribute it and/or modify
|
15 |
it under the terms of the GNU General Public License as published by
|
35 |
define( 'PTE_PLUGINURL', plugins_url(basename( dirname(__FILE__))) . "/");
|
36 |
define( 'PTE_PLUGINPATH', dirname(__FILE__) . "/");
|
37 |
define( 'PTE_DOMAIN', "post-thumbnail-editor");
|
38 |
+
define( 'PTE_VERSION', "1.0.5");
|
39 |
|
40 |
/*
|
41 |
* Option Functionality
|
217 |
load_plugin_textdomain( PTE_DOMAIN
|
218 |
, false
|
219 |
, basename( PTE_PLUGINPATH ) . DIRECTORY_SEPARATOR . "i18n" );
|
220 |
+
|
221 |
?>
|