Version Description
- Updated brazilian translation
- Fix for wordpress 4.5 - @nate-allen
Download this release
Release Info
Developer | sewpafly |
Plugin | Post Thumbnail Editor |
Version | 2.4.7 |
Comparing to | |
See all releases |
Code changes from version 2.4.6 to 2.4.7
- README.txt +8 -5
- i18n/post-thumbnail-editor-pt_BR.mo +0 -0
- i18n/post-thumbnail-editor-pt_BR.po +352 -150
- js/snippets/pte_enable_media.js +2 -2
- php/functions.php +28 -6
- post-thumbnail-editor.php +16 -14
README.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: sewpafly
|
|
3 |
Donate link: http://sewpafly.github.io/post-thumbnail-editor/#toc_donations
|
4 |
Tags: post-thumbnail, post thumbnail, featured image, featured, editor, image, awesome, crop
|
5 |
Requires at least: 4.1
|
6 |
-
Tested up to: 4.
|
7 |
Stable tag: trunk
|
8 |
License: GPLv2
|
9 |
|
@@ -75,8 +75,12 @@ If you want to post a problem on the [support forums][wp] or at [github][gh] ple
|
|
75 |
|
76 |
== Changelog ==
|
77 |
|
|
|
|
|
|
|
|
|
78 |
= 2.4.6 =
|
79 |
-
*
|
80 |
* Check if featuredImage exists before override to avoid JS error (@gbonhevi)
|
81 |
|
82 |
= 2.4.5 =
|
@@ -196,6 +200,5 @@ If you want to post a problem on the [support forums][wp] or at [github][gh] ple
|
|
196 |
|
197 |
== Upgrade Notice ==
|
198 |
|
199 |
-
= 2.4.
|
200 |
-
|
201 |
-
* Fixed post media library bug
|
3 |
Donate link: http://sewpafly.github.io/post-thumbnail-editor/#toc_donations
|
4 |
Tags: post-thumbnail, post thumbnail, featured image, featured, editor, image, awesome, crop
|
5 |
Requires at least: 4.1
|
6 |
+
Tested up to: 4.5
|
7 |
Stable tag: trunk
|
8 |
License: GPLv2
|
9 |
|
75 |
|
76 |
== Changelog ==
|
77 |
|
78 |
+
= 2.4.7 =
|
79 |
+
* Updated brazilian translation
|
80 |
+
* Fix for wordpress 4.5 - @nate-allen
|
81 |
+
|
82 |
= 2.4.6 =
|
83 |
+
* Updated polish translation
|
84 |
* Check if featuredImage exists before override to avoid JS error (@gbonhevi)
|
85 |
|
86 |
= 2.4.5 =
|
200 |
|
201 |
== Upgrade Notice ==
|
202 |
|
203 |
+
= 2.4.7 =
|
204 |
+
Some bug fixes - thanks @nate-allen
|
|
i18n/post-thumbnail-editor-pt_BR.mo
CHANGED
Binary file
|
i18n/post-thumbnail-editor-pt_BR.po
CHANGED
@@ -3,242 +3,338 @@
|
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: Post Thumbnail Editor 1.0.3\n"
|
6 |
-
"Report-Msgid-Bugs-To: http://wordpress.org/
|
7 |
-
"POT-Creation-Date:
|
8 |
-
"PO-Revision-Date:
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: \n"
|
|
|
11 |
"MIME-Version: 1.0\n"
|
12 |
"Content-Type: text/plain; charset=UTF-8\n"
|
13 |
"Content-Transfer-Encoding: 8bit\n"
|
|
|
14 |
|
15 |
-
#: html/pte.php:
|
16 |
-
msgid "
|
17 |
-
msgstr "
|
18 |
|
19 |
-
#: html/pte.php:
|
20 |
-
msgid "
|
21 |
-
msgstr "
|
22 |
|
23 |
-
#: html/pte.php:
|
24 |
-
msgid "
|
25 |
-
msgstr "
|
26 |
|
27 |
-
#: html/pte.php:
|
28 |
-
msgid "
|
29 |
-
msgstr "
|
30 |
|
31 |
-
#: html/pte.php:
|
32 |
-
msgid "
|
33 |
-
msgstr "
|
34 |
|
35 |
-
#: html/pte.php:
|
36 |
-
msgid "
|
37 |
-
msgstr "
|
38 |
|
39 |
-
#: html/pte.php:
|
40 |
-
msgid "
|
41 |
-
msgstr "
|
42 |
|
43 |
-
#: html/pte.php:
|
44 |
-
|
45 |
-
|
46 |
-
msgstr "Percebemos algumas questões importantes:"
|
47 |
|
48 |
-
#: html/pte.php:
|
49 |
-
msgid "
|
50 |
-
msgstr "
|
51 |
|
52 |
-
|
53 |
-
|
54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
|
56 |
#: html/pte.php:101
|
57 |
-
msgid "
|
58 |
-
msgstr "
|
59 |
|
60 |
-
#: html/pte.php:
|
61 |
-
msgid "
|
62 |
-
msgstr "
|
63 |
|
64 |
-
#: html/pte.php:
|
65 |
-
msgid "
|
66 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
|
68 |
-
#. #-#-#-#-# post-thumbnail-editor.pot (Post Thumbnail Editor 1.0.3) #-#-#-#-#
|
69 |
-
#. Plugin Name of the plugin/theme
|
70 |
#: html/pte.php:135
|
71 |
-
|
72 |
-
|
73 |
-
#: post-thumbnail-editor.php:178
|
74 |
-
#: post-thumbnail-editor.php:179
|
75 |
-
msgid "Post Thumbnail Editor"
|
76 |
-
msgstr "Post Thumbnail Editor"
|
77 |
|
78 |
-
|
79 |
-
|
|
|
|
|
|
|
|
|
|
|
80 |
|
81 |
-
#: html/pte.php:
|
82 |
-
msgid "
|
83 |
-
msgstr "
|
84 |
|
85 |
-
#: html/pte.php:
|
86 |
-
msgid "
|
87 |
-
msgstr "
|
88 |
|
89 |
-
#: html/pte.php:
|
90 |
-
msgid "
|
91 |
-
msgstr "
|
92 |
|
93 |
#: html/pte.php:160
|
94 |
-
msgid "
|
95 |
-
msgstr "
|
96 |
|
97 |
-
#: html/pte.php:
|
98 |
-
|
99 |
-
|
100 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
|
102 |
-
#: html/pte.php:
|
103 |
-
msgid "
|
104 |
-
msgstr "
|
105 |
|
106 |
-
#: html/pte.php:
|
107 |
-
msgid "
|
108 |
-
msgstr "
|
109 |
|
110 |
-
#: html/pte.php:
|
111 |
-
msgid "
|
112 |
-
msgstr "
|
113 |
|
114 |
-
#: html/pte.php:
|
115 |
-
msgid "
|
116 |
-
msgstr "
|
117 |
|
118 |
-
#: html/pte.php:
|
119 |
-
msgid "
|
120 |
-
msgstr "
|
121 |
|
122 |
-
#: php/
|
123 |
-
msgid "
|
124 |
-
msgstr "
|
125 |
|
126 |
-
#: php/functions.php:
|
127 |
-
msgid "
|
128 |
-
msgstr "
|
129 |
|
130 |
-
#: php/functions.php:
|
131 |
-
msgid "
|
132 |
-
msgstr "
|
133 |
|
134 |
-
#: php/functions.php:
|
135 |
-
msgid "
|
136 |
-
msgstr "
|
137 |
|
138 |
-
#: php/functions.php:
|
|
|
|
|
|
|
|
|
139 |
msgid "Invalid meta data for POST #%d: %s"
|
140 |
msgstr "dado inválido do POST #%d: %s"
|
141 |
|
142 |
-
#: php/functions.php:
|
143 |
msgid "Please contact support"
|
144 |
msgstr "Favor contatar suporte"
|
145 |
|
146 |
-
#: php/log.php:
|
147 |
msgid "ERROR"
|
148 |
msgstr "ERROR"
|
149 |
|
150 |
-
#: php/log.php:
|
151 |
msgid "WARNING"
|
152 |
msgstr "WARNING"
|
153 |
|
154 |
-
#: php/log.php:
|
|
|
|
|
|
|
|
|
155 |
msgid "DEBUG"
|
156 |
msgstr "DEBUG"
|
157 |
|
158 |
-
#: php/log.php:
|
159 |
msgid "ERROR Logging Message: %s"
|
160 |
-
msgstr ""
|
161 |
|
162 |
-
#: php/options.php:
|
163 |
-
msgid "These site-wide settings can only be changed by an administrator"
|
164 |
-
msgstr "Essas configurações do site só podem ser alteradas por um usuário administrador"
|
165 |
-
|
166 |
-
#: php/options.php:19
|
167 |
msgid "User Options"
|
168 |
msgstr "Opções de Usuário"
|
169 |
|
170 |
-
#: php/options.php:
|
171 |
-
msgid "
|
172 |
-
msgstr "
|
|
|
|
|
|
|
|
|
173 |
|
174 |
-
#: php/options.php:
|
175 |
msgid "Reset to defaults"
|
176 |
msgstr "Resetar dados para padrão"
|
177 |
|
178 |
-
#: php/options.php:
|
179 |
msgid "Site Options"
|
180 |
msgstr "Opções de Site"
|
181 |
|
182 |
-
#: php/options.php:
|
183 |
-
|
184 |
-
|
185 |
-
msgstr "Miniaturas"
|
186 |
|
187 |
-
#: php/options.php:
|
188 |
msgid "Save Changes"
|
189 |
msgstr "Salvar Alterações"
|
190 |
|
191 |
-
#: php/options.php:
|
192 |
-
msgid "
|
193 |
-
|
|
|
|
|
|
|
194 |
|
195 |
-
#: php/options.php:
|
196 |
-
msgid "
|
197 |
-
msgstr "
|
198 |
|
199 |
-
#: php/options.php:
|
200 |
-
msgid "
|
201 |
-
msgstr "
|
202 |
|
203 |
-
#: php/options.php:
|
204 |
-
msgid "
|
205 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
206 |
|
207 |
-
#: php/options.php:
|
208 |
-
msgid "
|
209 |
-
msgstr "
|
210 |
|
211 |
-
#: php/options.php:
|
212 |
-
msgid "
|
213 |
-
msgstr "
|
214 |
|
215 |
-
#: php/options.php:
|
216 |
-
msgid "
|
217 |
-
msgstr "
|
218 |
|
219 |
-
#: php/options.php:
|
220 |
-
msgid "
|
221 |
-
msgstr "
|
222 |
|
223 |
-
#: php/options.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
224 |
msgid "Reset User Options"
|
225 |
msgstr "Resetar configurações de Usuário"
|
226 |
|
227 |
-
#: php/options.php:
|
228 |
msgid "Post Thumbnail"
|
229 |
msgstr "Miniatura do Post"
|
230 |
|
231 |
-
#: php/options.php:
|
232 |
msgid "Hidden"
|
233 |
msgstr "Ocultar"
|
234 |
|
235 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
236 |
msgid "Edit Thumbnails"
|
237 |
msgstr "Editar Miniaturas"
|
238 |
|
239 |
#. Plugin URI of the plugin/theme
|
240 |
-
|
241 |
-
|
|
|
242 |
|
243 |
#. Description of the plugin/theme
|
244 |
msgid "Individually manage your post thumbnails"
|
@@ -246,9 +342,115 @@ msgstr "Gerenciar individualmente as miniaturas do post"
|
|
246 |
|
247 |
#. Author of the plugin/theme
|
248 |
msgid "sewpafly"
|
249 |
-
msgstr ""
|
250 |
|
251 |
-
|
252 |
-
|
253 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
254 |
|
|
|
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: Post Thumbnail Editor 1.0.3\n"
|
6 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/post-thumbnail-editor\n"
|
7 |
+
"POT-Creation-Date: 2015-07-20 15:02-0300\n"
|
8 |
+
"PO-Revision-Date: 2015-07-20 15:24-0300\n"
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: \n"
|
11 |
+
"Language: pt_BR\n"
|
12 |
"MIME-Version: 1.0\n"
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
+
"X-Generator: Poedit 1.8.2\n"
|
16 |
|
17 |
+
#: html/pte.php:23
|
18 |
+
msgid "No thumbnails selected"
|
19 |
+
msgstr "Sem miniaturas selecionadas"
|
20 |
|
21 |
+
#: html/pte.php:24
|
22 |
+
msgid "No crop selected"
|
23 |
+
msgstr "Sem área de corte selecionada"
|
24 |
|
25 |
+
#: html/pte.php:25
|
26 |
+
msgid "Cropping will likely result in skewed imagery"
|
27 |
+
msgstr "Recorte provavelmente resultará em imagens distorcidas"
|
28 |
|
29 |
+
#: html/pte.php:26
|
30 |
+
msgid "There was a problem saving the crop..."
|
31 |
+
msgstr "Houve um problema ao salvar o recorte…"
|
32 |
|
33 |
+
#: html/pte.php:27 php/options.php:22
|
34 |
+
msgid "Crop and Save"
|
35 |
+
msgstr "Recortar e Salvar"
|
36 |
|
37 |
+
#: html/pte.php:28 html/pte.php:52
|
38 |
+
msgid "Crop"
|
39 |
+
msgstr "Recorte"
|
40 |
|
41 |
+
#: html/pte.php:29 html/pte.php:201
|
42 |
+
msgid "Save"
|
43 |
+
msgstr "Salvar"
|
44 |
|
45 |
+
#: html/pte.php:30
|
46 |
+
msgid "Set transparent"
|
47 |
+
msgstr "Transparente"
|
|
|
48 |
|
49 |
+
#: html/pte.php:31
|
50 |
+
msgid "transparent/white"
|
51 |
+
msgstr "transparente/branco"
|
52 |
|
53 |
+
#. Plugin Name of the plugin/theme
|
54 |
+
#: html/pte.php:46 php/options.php:79 post-thumbnail-editor.php:211
|
55 |
+
#: post-thumbnail-editor.php:251 post-thumbnail-editor.php:340
|
56 |
+
#: post-thumbnail-editor.php:393 post-thumbnail-editor.php:394
|
57 |
+
#: post-thumbnail-editor.php:400 post-thumbnail-editor.php:401
|
58 |
+
#: post-thumbnail-editor.php:444
|
59 |
+
msgid "Post Thumbnail Editor"
|
60 |
+
msgstr "Post Thumbnail Editor"
|
61 |
+
|
62 |
+
#: html/pte.php:47
|
63 |
+
msgid "crop and resize"
|
64 |
+
msgstr "Recortar e Salvar"
|
65 |
+
|
66 |
+
#: html/pte.php:53
|
67 |
+
msgid "View"
|
68 |
+
msgstr "Visualizar"
|
69 |
+
|
70 |
+
#: html/pte.php:85
|
71 |
+
msgid "Options"
|
72 |
+
msgstr "Opções"
|
73 |
|
74 |
#: html/pte.php:101
|
75 |
+
msgid "Aspect Ratio"
|
76 |
+
msgstr "Proporção"
|
77 |
|
78 |
+
#: html/pte.php:104
|
79 |
+
msgid "width/height"
|
80 |
+
msgstr "largura/altura"
|
81 |
|
82 |
+
#: html/pte.php:110
|
83 |
+
msgid "Crop and save"
|
84 |
+
msgstr "Recortar e salvar"
|
85 |
+
|
86 |
+
#: html/pte.php:119
|
87 |
+
msgid "Change the current thumbnails position:"
|
88 |
+
msgstr "Mudar a posição da miniatura selecionada:"
|
89 |
+
|
90 |
+
#: html/pte.php:122 php/options.php:54
|
91 |
+
msgid "JPEG Compression"
|
92 |
+
msgstr "Compressão JPEG"
|
93 |
+
|
94 |
+
#: html/pte.php:126
|
95 |
+
msgid "0 to 100 (Default: %d)"
|
96 |
+
msgstr "0 a 100 (Padrão: %d)"
|
97 |
|
|
|
|
|
98 |
#: html/pte.php:135
|
99 |
+
msgid "Fit crop to thumbnail by adding border"
|
100 |
+
msgstr "Ajustar a área de corte da miniatura adicionando uma borda"
|
|
|
|
|
|
|
|
|
101 |
|
102 |
+
#: html/pte.php:157 php/options.php:49 post-thumbnail-editor.php:361
|
103 |
+
msgid "Thumbnails"
|
104 |
+
msgstr "Miniaturas"
|
105 |
+
|
106 |
+
#: html/pte.php:158
|
107 |
+
msgid "width"
|
108 |
+
msgstr "largura"
|
109 |
|
110 |
+
#: html/pte.php:158
|
111 |
+
msgid "W"
|
112 |
+
msgstr "L"
|
113 |
|
114 |
+
#: html/pte.php:159
|
115 |
+
msgid "height"
|
116 |
+
msgstr "altura"
|
117 |
|
118 |
+
#: html/pte.php:159
|
119 |
+
msgid "H"
|
120 |
+
msgstr "A"
|
121 |
|
122 |
#: html/pte.php:160
|
123 |
+
msgid "crop"
|
124 |
+
msgstr "recorte"
|
125 |
|
126 |
+
#: html/pte.php:160
|
127 |
+
msgid "C"
|
128 |
+
msgstr "C"
|
129 |
+
|
130 |
+
#: html/pte.php:166
|
131 |
+
msgid "Save all"
|
132 |
+
msgstr "Salvar todos"
|
133 |
+
|
134 |
+
#: html/pte.php:171
|
135 |
+
msgid "Reset all"
|
136 |
+
msgstr "Recomeçar todos"
|
137 |
+
|
138 |
+
#: html/pte.php:175
|
139 |
+
msgid "View all/modified"
|
140 |
+
msgstr "Ver todos/modificados"
|
141 |
+
|
142 |
+
#: html/pte.php:204
|
143 |
+
msgid "Reset"
|
144 |
+
msgstr "Recomeçar"
|
145 |
+
|
146 |
+
#: html/pte.php:207
|
147 |
+
msgid "Compare/View"
|
148 |
+
msgstr "Comparar/Ver"
|
149 |
|
150 |
+
#: html/pte.php:214
|
151 |
+
msgid "These thumbnails have an aspect ratio set:"
|
152 |
+
msgstr "Estas miniaturas tem uma proporção definida:"
|
153 |
|
154 |
+
#: html/pte.php:223
|
155 |
+
msgid "Current Thumbnails"
|
156 |
+
msgstr "Miniaturas atuais"
|
157 |
|
158 |
+
#: html/pte.php:253
|
159 |
+
msgid "Original"
|
160 |
+
msgstr "Original"
|
161 |
|
162 |
+
#: html/pte.php:260
|
163 |
+
msgid "No image has been generated yet for image: "
|
164 |
+
msgstr "Nenhuma miniatura foi gerada ainda para imagem:"
|
165 |
|
166 |
+
#: html/pte.php:267
|
167 |
+
msgid "Proposed"
|
168 |
+
msgstr "Proposto"
|
169 |
|
170 |
+
#: php/class-pte-image-editor-gd.php:65 php/class-pte-image-editor-imagick.php:61
|
171 |
+
msgid "Image crop failed."
|
172 |
+
msgstr "Recorte de imagem falhou."
|
173 |
|
174 |
+
#: php/functions.php:110
|
175 |
+
msgid "Thumbnail"
|
176 |
+
msgstr "Miniatura"
|
177 |
|
178 |
+
#: php/functions.php:111
|
179 |
+
msgid "Medium"
|
180 |
+
msgstr "Médio"
|
181 |
|
182 |
+
#: php/functions.php:112
|
183 |
+
msgid "Large"
|
184 |
+
msgstr "Grande"
|
185 |
|
186 |
+
#: php/functions.php:113
|
187 |
+
msgid "Full Size"
|
188 |
+
msgstr "Tamanho original"
|
189 |
+
|
190 |
+
#: php/functions.php:241
|
191 |
msgid "Invalid meta data for POST #%d: %s"
|
192 |
msgstr "dado inválido do POST #%d: %s"
|
193 |
|
194 |
+
#: php/functions.php:246
|
195 |
msgid "Please contact support"
|
196 |
msgstr "Favor contatar suporte"
|
197 |
|
198 |
+
#: php/log.php:16
|
199 |
msgid "ERROR"
|
200 |
msgstr "ERROR"
|
201 |
|
202 |
+
#: php/log.php:19
|
203 |
msgid "WARNING"
|
204 |
msgstr "WARNING"
|
205 |
|
206 |
+
#: php/log.php:22
|
207 |
+
msgid "INFO"
|
208 |
+
msgstr "INFO"
|
209 |
+
|
210 |
+
#: php/log.php:25
|
211 |
msgid "DEBUG"
|
212 |
msgstr "DEBUG"
|
213 |
|
214 |
+
#: php/log.php:222
|
215 |
msgid "ERROR Logging Message: %s"
|
216 |
+
msgstr "ERROR Gravando a mensagem: %s"
|
217 |
|
218 |
+
#: php/options.php:11
|
|
|
|
|
|
|
|
|
219 |
msgid "User Options"
|
220 |
msgstr "Opções de Usuário"
|
221 |
|
222 |
+
#: php/options.php:16
|
223 |
+
msgid "Debug"
|
224 |
+
msgstr "Debug"
|
225 |
+
|
226 |
+
#: php/options.php:28
|
227 |
+
msgid "Crop Picture Size"
|
228 |
+
msgstr "Tamanho do recorte da imagem"
|
229 |
|
230 |
+
#: php/options.php:34
|
231 |
msgid "Reset to defaults"
|
232 |
msgstr "Resetar dados para padrão"
|
233 |
|
234 |
+
#: php/options.php:45
|
235 |
msgid "Site Options"
|
236 |
msgstr "Opções de Site"
|
237 |
|
238 |
+
#: php/options.php:59
|
239 |
+
msgid "Cache Buster"
|
240 |
+
msgstr "Invalidar cache"
|
|
|
241 |
|
242 |
+
#: php/options.php:87
|
243 |
msgid "Save Changes"
|
244 |
msgstr "Salvar Alterações"
|
245 |
|
246 |
+
#: php/options.php:101
|
247 |
+
msgid ""
|
248 |
+
"Only users with the 'manage_options' capability may make changes to these settings."
|
249 |
+
msgstr ""
|
250 |
+
"Somente os usuários com a capacidade de 'manage_options' podem fazer alterações a "
|
251 |
+
"estas configurações."
|
252 |
|
253 |
+
#: php/options.php:127
|
254 |
+
msgid "JPEG Compression needs to be set from 0 to 100."
|
255 |
+
msgstr "Compressão JPEG precisa de um valor entre 0 e 100."
|
256 |
|
257 |
+
#: php/options.php:165
|
258 |
+
msgid "Crop Size must be between 0 and 10000."
|
259 |
+
msgstr "Tamanho do Recorte deve ser entre 0 e 10.00."
|
260 |
|
261 |
+
#: php/options.php:184
|
262 |
+
msgid "Enable debugging"
|
263 |
+
msgstr "Habilitar Debug"
|
264 |
+
|
265 |
+
#: php/options.php:187
|
266 |
+
msgid ""
|
267 |
+
"WP_DEBUG is currently set to true and will override this setting. (debug is enabled)"
|
268 |
+
msgstr "WP_DEBUG está como true e sobrescreverá esta opção. ( Debug está ativo ) "
|
269 |
|
270 |
+
#: php/options.php:194
|
271 |
+
msgid "Use <a href=\"%s\">ChromePhp</a> for log output"
|
272 |
+
msgstr "Use <a href=“%s”>ChromePhp</a> para o log de saída."
|
273 |
|
274 |
+
#: php/options.php:202
|
275 |
+
msgid "Write log output to a <a href=\"%s\">file</a>"
|
276 |
+
msgstr "Gravar o log de saída para um <a href=“%s”>file</a>"
|
277 |
|
278 |
+
#: php/options.php:217
|
279 |
+
msgid "I know what I'm doing, bypass the image verification."
|
280 |
+
msgstr "Eu sei o que estou fazendo, ignore a verificação da imagem."
|
281 |
|
282 |
+
#: php/options.php:230
|
283 |
+
msgid "Set the max size for the crop image."
|
284 |
+
msgstr "Definir o tamanho máximo para o recorte da imagem."
|
285 |
|
286 |
+
#: php/options.php:231
|
287 |
+
msgid "No entry defaults to 600"
|
288 |
+
msgstr "Sem entrada o padrão será 600"
|
289 |
+
|
290 |
+
#: php/options.php:238
|
291 |
+
msgid ""
|
292 |
+
"Check this to save the generated working image to disk instead of creating on the "
|
293 |
+
"fly (experimental)"
|
294 |
+
msgstr ""
|
295 |
+
"Marque aqui para salvar a imagem que está sendo trabalhada no disk ao invés de cria-"
|
296 |
+
"lá dinamicamente. ( experimental )"
|
297 |
+
|
298 |
+
#: php/options.php:249
|
299 |
msgid "Reset User Options"
|
300 |
msgstr "Resetar configurações de Usuário"
|
301 |
|
302 |
+
#: php/options.php:275
|
303 |
msgid "Post Thumbnail"
|
304 |
msgstr "Miniatura do Post"
|
305 |
|
306 |
+
#: php/options.php:276
|
307 |
msgid "Hidden"
|
308 |
msgstr "Ocultar"
|
309 |
|
310 |
+
#: php/options.php:306
|
311 |
+
msgid "Set the compression level for resizing jpeg images (0 to 100)."
|
312 |
+
msgstr ""
|
313 |
+
"Definir o valor da compressão quando redimensionar imagens JPEG ( de 0 a 100 )."
|
314 |
+
|
315 |
+
#: php/options.php:307
|
316 |
+
msgid "No entry defaults to using the 'jpeg_quality' filter or 90"
|
317 |
+
msgstr ""
|
318 |
+
"Sem entrada o padrão será utilizar o valor definido do filtro ‘jpeg_quality’ ou 90."
|
319 |
+
|
320 |
+
#: php/options.php:319
|
321 |
+
msgid "Append timestamp to filename. Useful for solving caching problems."
|
322 |
+
msgstr ""
|
323 |
+
"Adicionar hora e data no nome do arquivo. Útil para resolver problemas de cache."
|
324 |
+
|
325 |
+
#: php/options.php:330
|
326 |
+
msgid "These site-wide settings can only be changed by an administrator"
|
327 |
+
msgstr ""
|
328 |
+
"Essas configurações do site só podem ser alteradas por um usuário administrador"
|
329 |
+
|
330 |
+
#: post-thumbnail-editor.php:360
|
331 |
msgid "Edit Thumbnails"
|
332 |
msgstr "Editar Miniaturas"
|
333 |
|
334 |
#. Plugin URI of the plugin/theme
|
335 |
+
#. Author URI of the plugin/theme
|
336 |
+
msgid "http://sewpafly.github.io/post-thumbnail-editor/"
|
337 |
+
msgstr "http://sewpafly.github.io/post-thumbnail-editor/"
|
338 |
|
339 |
#. Description of the plugin/theme
|
340 |
msgid "Individually manage your post thumbnails"
|
342 |
|
343 |
#. Author of the plugin/theme
|
344 |
msgid "sewpafly"
|
345 |
+
msgstr "sewpafly"
|
346 |
|
347 |
+
#~ msgid "Post Thumbnail Editor - Step 1"
|
348 |
+
#~ msgstr "Editar Miniatura do Post - Passo 1"
|
349 |
+
|
350 |
+
#~ msgid "Create Thumbnails"
|
351 |
+
#~ msgstr "Criar Thumbs"
|
352 |
+
|
353 |
+
#~ msgid "Choose the images/thumbnails that you want to edit:"
|
354 |
+
#~ msgstr "Escolha as imagens/miniaturas que pretende editar:"
|
355 |
+
|
356 |
+
#~ msgid "Select: %1$sAll%2$s | %3$sNone%4$s"
|
357 |
+
#~ msgstr "Selecione: %1$sTodas%2$s | %3$sNenhuma%4$s"
|
358 |
+
|
359 |
+
#~ msgid "Current image:"
|
360 |
+
#~ msgstr "Imagem atual:"
|
361 |
+
|
362 |
+
#~ msgid "Back"
|
363 |
+
#~ msgstr "Voltar"
|
364 |
+
|
365 |
+
#~ msgid "Post Thumbnail Editor - Step 2"
|
366 |
+
#~ msgstr "Editar Miniatura do Post - Passo 2"
|
367 |
+
|
368 |
+
#~ msgid "We noticed some potential issues:"
|
369 |
+
#~ msgstr "Percebemos algumas questões importantes:"
|
370 |
+
|
371 |
+
#~ msgid "View %1$slogs%2$s for further information"
|
372 |
+
#~ msgstr "Acesse %1$slogs%2$s para maiores informações"
|
373 |
+
|
374 |
+
#~ msgid "%1$sEnable debugging%2$s for additional information"
|
375 |
+
#~ msgstr "%1$sHabilite o Debug%2$s para informações adicionais"
|
376 |
+
|
377 |
+
#~ msgid "Select the images you want to keep: %1$sAll%2$s | %3$sNone%4$s"
|
378 |
+
#~ msgstr "Selecione as imagens que pretende manter: %1$sTodas%2$s | %3$sNenhuma%4$s"
|
379 |
+
|
380 |
+
#~ msgid "Okay, these look good..."
|
381 |
+
#~ msgstr "Ok, parece que ficou bom..."
|
382 |
+
|
383 |
+
#~ msgid "I'd rather start over..."
|
384 |
+
#~ msgstr "Eu odiei! Refazer..."
|
385 |
+
|
386 |
+
#~ msgid "Post Thumbnail Editor Here"
|
387 |
+
#~ msgstr "Clique aqui para Editar a Miniatura"
|
388 |
+
|
389 |
+
#~ msgid "Images were created successfully."
|
390 |
+
#~ msgstr "As Imagens foram geradas com sucesso."
|
391 |
+
|
392 |
+
#~ msgid "Click %1$shere%2$s to modify another thumbnail."
|
393 |
+
#~ msgstr "Clique %1$saqui%2$s para modificar outra miniatura."
|
394 |
+
|
395 |
+
#~ msgid "Please wait"
|
396 |
+
#~ msgstr "Aguarde por favor"
|
397 |
+
|
398 |
+
#~ msgid "Click here to show application logs"
|
399 |
+
#~ msgstr "Clique aqui para visualizar os logs da aplicação"
|
400 |
+
|
401 |
+
#~ msgid ""
|
402 |
+
#~ "If you are having any issues with this plugin, create a problem report on "
|
403 |
+
#~ "%1$sgithub%2$s or %3$swordpress.org%4$s so that I can look into it. Copy these "
|
404 |
+
#~ "log statements and include some information about what you were trying to do, the "
|
405 |
+
#~ "expected output, and the output you got (the more information the better). "
|
406 |
+
#~ "Thanks and good luck!"
|
407 |
+
#~ msgstr ""
|
408 |
+
#~ "Se você tiver algum problema ao utilizar este plugin, me informe detalhes sobre "
|
409 |
+
#~ "este BUG no %1$sgithub%2$s or %3$swordpress.org%4$s para eu dar uma olhada. "
|
410 |
+
#~ "Copiei os erros gerados pelo log e inclua o que e quando você tentou fazer que "
|
411 |
+
#~ "não deu certo bem detalhado (Em Inglês). Obrigado e boa sorte!"
|
412 |
+
|
413 |
+
#~ msgid "Send to Pastebin"
|
414 |
+
#~ msgstr "Enviar para o site Pastebin"
|
415 |
+
|
416 |
+
#~ msgid "Clear Messages"
|
417 |
+
#~ msgstr "Limpar Messagens"
|
418 |
+
|
419 |
+
#~ msgid "Run Tests"
|
420 |
+
#~ msgstr "Rodar Testes"
|
421 |
+
|
422 |
+
#~ msgid "Close"
|
423 |
+
#~ msgstr "Fechar"
|
424 |
+
|
425 |
+
#~ msgid "Sorry, there was a problem trying to send to pastebin"
|
426 |
+
#~ msgstr "Deculpe, mas houve um problema ao tentar enviar para o pastebin"
|
427 |
+
|
428 |
+
#~ msgid "PASTEBIN URL:"
|
429 |
+
#~ msgstr "URL do PASTEBIN:"
|
430 |
+
|
431 |
+
#~ msgid "Disabling aspect ratio"
|
432 |
+
#~ msgstr "Desabilitando área de corte proporcional"
|
433 |
+
|
434 |
+
#~ msgid "Error parsing selection information"
|
435 |
+
#~ msgstr "Erro na análise da informação de seleção"
|
436 |
+
|
437 |
+
#~ msgid "Thickbox dimensions"
|
438 |
+
#~ msgstr "dimensões do Thickbox"
|
439 |
+
|
440 |
+
#~ msgid "Thickbox width must be at least 750 pixels."
|
441 |
+
#~ msgstr "A largura do Thickbox deve ser no mínimo 750 px."
|
442 |
+
|
443 |
+
#~ msgid "Thickbox height must be greater than 550 pixels."
|
444 |
+
#~ msgstr "A altura do Thickbox deve ser maior que 550 px."
|
445 |
+
|
446 |
+
#~ msgid "Width:"
|
447 |
+
#~ msgstr "Largura:"
|
448 |
+
|
449 |
+
#~ msgid "Set this to a value greater than 750."
|
450 |
+
#~ msgstr "Defina em um valor maior que 750."
|
451 |
+
|
452 |
+
#~ msgid "Height:"
|
453 |
+
#~ msgstr "Altura:"
|
454 |
|
455 |
+
#~ msgid "Set this to a value greater than 550."
|
456 |
+
#~ msgstr "Defina em um valor maior que 550."
|
js/snippets/pte_enable_media.js
CHANGED
@@ -13,10 +13,10 @@
|
|
13 |
var injectTemplate, template;
|
14 |
// Change the attachment-details html
|
15 |
injectTemplate = _.template("<a class=\"pte\" href=\"" +
|
16 |
-
pteL10n.fallbackUrl.replace(/&TB_iframe=true/,'') +
|
17 |
"\">\n " +
|
18 |
pteL10n.PTE +
|
19 |
-
"\n</a>"
|
20 |
template = $("#tmpl-attachment-details").text();
|
21 |
template = template.replace(/(<div class="compat-meta">)/, "" + injectTemplate + "\n$1");
|
22 |
$("#tmpl-attachment-details").text(template);
|
13 |
var injectTemplate, template;
|
14 |
// Change the attachment-details html
|
15 |
injectTemplate = _.template("<a class=\"pte\" href=\"" +
|
16 |
+
pteL10n.fallbackUrl.replace(/&TB_iframe=true/,'') +
|
17 |
"\">\n " +
|
18 |
pteL10n.PTE +
|
19 |
+
"\n</a>")({id:"{{ data.id }}"});
|
20 |
template = $("#tmpl-attachment-details").text();
|
21 |
template = template.replace(/(<div class="compat-meta">)/, "" + injectTemplate + "\n$1");
|
22 |
$("#tmpl-attachment-details").text(template);
|
php/functions.php
CHANGED
@@ -252,12 +252,34 @@ function pte_body( $id ){
|
|
252 |
|
253 |
// Generate an image and put into the ptetmp directory
|
254 |
if (false === $editor_image = pte_generate_working_image($id)) {
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
261 |
}
|
262 |
|
263 |
require( PTE_PLUGINPATH . "html/pte.php" );
|
252 |
|
253 |
// Generate an image and put into the ptetmp directory
|
254 |
if (false === $editor_image = pte_generate_working_image($id)) {
|
255 |
+
|
256 |
+
/**
|
257 |
+
* Check if a question mark is included in the URL. If so,
|
258 |
+
* we use an ampersand rather than a question mark. This
|
259 |
+
* fix makes it possible to use WPML.
|
260 |
+
*
|
261 |
+
* @author Daniel Koop <daniel@eenvoudmedia.nl>
|
262 |
+
*/
|
263 |
+
|
264 |
+
if(strpos(admin_url('admin-ajax.php'), '?'))
|
265 |
+
{
|
266 |
+
$editor_image = sprintf("%s&action=pte_imgedit_preview&_ajax_nonce=%s&postid=%d&rand=%d",
|
267 |
+
admin_url('admin-ajax.php'),
|
268 |
+
$nonce,
|
269 |
+
$id,
|
270 |
+
rand(1,99999)
|
271 |
+
);
|
272 |
+
}
|
273 |
+
else
|
274 |
+
{
|
275 |
+
$editor_image = sprintf("%s?action=pte_imgedit_preview&_ajax_nonce=%s&postid=%d&rand=%d",
|
276 |
+
admin_url('admin-ajax.php'),
|
277 |
+
$nonce,
|
278 |
+
$id,
|
279 |
+
rand(1,99999)
|
280 |
+
);
|
281 |
+
}
|
282 |
+
|
283 |
}
|
284 |
|
285 |
require( PTE_PLUGINPATH . "html/pte.php" );
|
post-thumbnail-editor.php
CHANGED
@@ -4,7 +4,7 @@ Plugin name: Post Thumbnail Editor
|
|
4 |
Plugin URI: http://sewpafly.github.io/post-thumbnail-editor/
|
5 |
Author: sewpafly
|
6 |
Author URI: http://sewpafly.github.io/post-thumbnail-editor/
|
7 |
-
Version: 2.4.
|
8 |
Description: Individually manage your post thumbnails
|
9 |
|
10 |
LICENSE
|
@@ -28,13 +28,13 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
28 |
|
29 |
*/
|
30 |
|
31 |
-
/*
|
32 |
-
* Useful constants
|
33 |
*/
|
34 |
define( 'PTE_PLUGINURL', plugins_url(basename( dirname(__FILE__))) . "/");
|
35 |
define( 'PTE_PLUGINPATH', dirname(__FILE__) . "/");
|
36 |
define( 'PTE_DOMAIN', "post-thumbnail-editor");
|
37 |
-
define( 'PTE_VERSION', "2.4.
|
38 |
|
39 |
// TODO:
|
40 |
// * Find the best place for the require log (only when it's really needed, create an init function?)
|
@@ -142,7 +142,7 @@ function pte_url( $id, $iframe=false ){
|
|
142 |
. "&TB_iframe=true";
|
143 |
}
|
144 |
else {
|
145 |
-
$pte_url = admin_url('upload.php')
|
146 |
. "?page=pte-edit&pte-id={$id}";
|
147 |
}
|
148 |
|
@@ -245,10 +245,10 @@ function pte_admin_post_thumbnail_html( $content, $post_id ){
|
|
245 |
if ( $thumbnail_id == null )
|
246 |
return $content;
|
247 |
|
248 |
-
return $content .= '<p id="pte-link" class="hide-if-no-js"><a class="thickbox" href="'
|
249 |
. pte_url( $thumbnail_id, true )
|
250 |
-
. '">'
|
251 |
-
. esc_html__( 'Post Thumbnail Editor', PTE_DOMAIN )
|
252 |
. '</a></p>';
|
253 |
}
|
254 |
|
@@ -270,6 +270,8 @@ function pte_ajax(){
|
|
270 |
require_once(PTE_PLUGINPATH . 'php/functions.php');
|
271 |
PteLogger::debug( "PARAMETERS: " . print_r( $_REQUEST, true ) );
|
272 |
|
|
|
|
|
273 |
switch ($_GET['pte-action'])
|
274 |
{
|
275 |
case "iframe":
|
@@ -308,26 +310,26 @@ function pte_check_id( $id ) {
|
|
308 |
}
|
309 |
if ( current_user_can( 'edit_post', $id )
|
310 |
|| current_user_can( 'pte-edit', $id ) )
|
311 |
-
|
312 |
return apply_filters( 'pte-capability-check', true, $id );
|
313 |
}
|
314 |
return apply_filters( 'pte-capability-check', false, $id );
|
315 |
}
|
316 |
|
317 |
-
/**
|
318 |
* Upload.php (the media library page) fires:
|
319 |
* - 'load-upload.php' (wp-admin/admin.php)
|
320 |
* - GRID VIEW:
|
321 |
-
* + 'wp_enqueue_media' (upload.php:wp-includes/media.php:wp_enqueue_media)
|
322 |
* - LIST VIEW:
|
323 |
* + 'media_row_actions' (filter)(class-wp-media-list-table.php)
|
324 |
*/
|
325 |
add_action('load-upload.php', 'pte_media_library_boot');
|
326 |
-
function pte_media_library_boot() {
|
327 |
add_action('wp_enqueue_media', 'pte_load_media_library');
|
328 |
}
|
329 |
function pte_load_media_library() {
|
330 |
-
global $mode;
|
331 |
if ('grid' !== $mode) return;
|
332 |
wp_enqueue_script( 'pte'
|
333 |
, PTE_PLUGINURL . 'js/snippets/pte_enable_media.js'
|
@@ -432,7 +434,7 @@ add_action( 'load-media_page_pte-edit', 'pte_edit_setup' );
|
|
432 |
function pte_edit_setup() {
|
433 |
global $post, $title, $pte_body;
|
434 |
$post_id = (int) $_GET['pte-id'];
|
435 |
-
if ( !isset( $post_id )
|
436 |
|| !is_int( $post_id )
|
437 |
|| !wp_attachment_is_image( $post_id )
|
438 |
|| !pte_check_id( $post_id ) ) {
|
4 |
Plugin URI: http://sewpafly.github.io/post-thumbnail-editor/
|
5 |
Author: sewpafly
|
6 |
Author URI: http://sewpafly.github.io/post-thumbnail-editor/
|
7 |
+
Version: 2.4.7
|
8 |
Description: Individually manage your post thumbnails
|
9 |
|
10 |
LICENSE
|
28 |
|
29 |
*/
|
30 |
|
31 |
+
/*
|
32 |
+
* Useful constants
|
33 |
*/
|
34 |
define( 'PTE_PLUGINURL', plugins_url(basename( dirname(__FILE__))) . "/");
|
35 |
define( 'PTE_PLUGINPATH', dirname(__FILE__) . "/");
|
36 |
define( 'PTE_DOMAIN', "post-thumbnail-editor");
|
37 |
+
define( 'PTE_VERSION', "2.4.7");
|
38 |
|
39 |
// TODO:
|
40 |
// * Find the best place for the require log (only when it's really needed, create an init function?)
|
142 |
. "&TB_iframe=true";
|
143 |
}
|
144 |
else {
|
145 |
+
$pte_url = admin_url('upload.php')
|
146 |
. "?page=pte-edit&pte-id={$id}";
|
147 |
}
|
148 |
|
245 |
if ( $thumbnail_id == null )
|
246 |
return $content;
|
247 |
|
248 |
+
return $content .= '<p id="pte-link" class="hide-if-no-js"><a class="thickbox" href="'
|
249 |
. pte_url( $thumbnail_id, true )
|
250 |
+
. '">'
|
251 |
+
. esc_html__( 'Post Thumbnail Editor', PTE_DOMAIN )
|
252 |
. '</a></p>';
|
253 |
}
|
254 |
|
270 |
require_once(PTE_PLUGINPATH . 'php/functions.php');
|
271 |
PteLogger::debug( "PARAMETERS: " . print_r( $_REQUEST, true ) );
|
272 |
|
273 |
+
header('Content-type: application/json');
|
274 |
+
|
275 |
switch ($_GET['pte-action'])
|
276 |
{
|
277 |
case "iframe":
|
310 |
}
|
311 |
if ( current_user_can( 'edit_post', $id )
|
312 |
|| current_user_can( 'pte-edit', $id ) )
|
313 |
+
{
|
314 |
return apply_filters( 'pte-capability-check', true, $id );
|
315 |
}
|
316 |
return apply_filters( 'pte-capability-check', false, $id );
|
317 |
}
|
318 |
|
319 |
+
/**
|
320 |
* Upload.php (the media library page) fires:
|
321 |
* - 'load-upload.php' (wp-admin/admin.php)
|
322 |
* - GRID VIEW:
|
323 |
+
* + 'wp_enqueue_media' (upload.php:wp-includes/media.php:wp_enqueue_media)
|
324 |
* - LIST VIEW:
|
325 |
* + 'media_row_actions' (filter)(class-wp-media-list-table.php)
|
326 |
*/
|
327 |
add_action('load-upload.php', 'pte_media_library_boot');
|
328 |
+
function pte_media_library_boot() {
|
329 |
add_action('wp_enqueue_media', 'pte_load_media_library');
|
330 |
}
|
331 |
function pte_load_media_library() {
|
332 |
+
global $mode;
|
333 |
if ('grid' !== $mode) return;
|
334 |
wp_enqueue_script( 'pte'
|
335 |
, PTE_PLUGINURL . 'js/snippets/pte_enable_media.js'
|
434 |
function pte_edit_setup() {
|
435 |
global $post, $title, $pte_body;
|
436 |
$post_id = (int) $_GET['pte-id'];
|
437 |
+
if ( !isset( $post_id )
|
438 |
|| !is_int( $post_id )
|
439 |
|| !wp_attachment_is_image( $post_id )
|
440 |
|| !pte_check_id( $post_id ) ) {
|