Changeset 169404
- Timestamp:
- 11/01/2009 10:01:34 PM (16 years ago)
- Location:
- flash-video-resizer
- Files:
-
- 9 added
- 8 edited
-
tags/1.2 (added)
-
tags/1.2/en_US.mo (added)
-
tags/1.2/en_US.po (added)
-
tags/1.2/flash-video-resizer.mo (added)
-
tags/1.2/flash-video-resizer.php (added)
-
tags/1.2/flash-video-resizer.po (added)
-
tags/1.2/readme.txt (added)
-
tags/1.2/screenshot-1.png (added)
-
tags/1.2/screenshot-2.png (added)
-
trunk/en_US.mo (modified) (previous)
-
trunk/en_US.po (modified) (2 diffs)
-
trunk/flash-video-resizer.mo (modified) (previous)
-
trunk/flash-video-resizer.php (modified) (6 diffs)
-
trunk/flash-video-resizer.po (modified) (2 diffs)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/screenshot-1.png (modified) (previous)
-
trunk/screenshot-2.png (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
-
flash-video-resizer/trunk/en_US.po
r146476 r169404 3 3 "Project-Id-Version: flash-video-resizer\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2009- 08-16 20:12-0300\n"5 "POT-Creation-Date: 2009-11-01 19:44-0300\n" 6 6 "PO-Revision-Date: \n" 7 7 "Last-Translator: Bernardo Bauer <[email protected]>\n" … … 17 17 "X-Poedit-SearchPath-0: .\n" 18 18 19 #: flash-video-resizer.php:4 119 #: flash-video-resizer.php:44 20 20 msgid "Alerta Flash Video Resizer" 21 msgstr " Warning: Flash Video Resizer"21 msgstr "Flash Video Resizer's Warning" 22 22 23 #: flash-video-resizer.php:4 124 msgid "Você precisa definir a largura do vídeo!"25 msgstr "You have to set a width!"23 #: flash-video-resizer.php:44 24 msgid "Você precisa" 25 msgstr "You have to" 26 26 27 #: flash-video-resizer.php:189 27 #: flash-video-resizer.php:44 28 msgid "definir" 29 msgstr "define" 30 31 #: flash-video-resizer.php:44 32 msgid "a largura do vídeo!" 33 msgstr "the width of the video!" 34 35 #: flash-video-resizer.php:251 28 36 msgid "Largura" 29 37 msgstr "Width" 30 38 31 #: flash-video-resizer.php:2 4139 #: flash-video-resizer.php:288 32 40 msgid "Defina o tamanho da largura do vídeo" 33 msgstr " Specifythe width of the video"41 msgstr "Define the width of the video" 34 42 35 #: flash-video-resizer.php:256 43 #: flash-video-resizer.php:288 44 msgid "Problemas com o plugin?" 45 msgstr "Problems with the plugin?" 46 47 #: flash-video-resizer.php:288 48 msgid "Resolva aqui" 49 msgstr "Support forum (interface in portuguese)" 50 51 #: flash-video-resizer.php:305 36 52 msgid "Post" 37 53 msgstr "Post" 38 54 39 #: flash-video-resizer.php: 25955 #: flash-video-resizer.php:308 40 56 msgid "Página Principal" 41 57 msgstr "Home" 42 58 43 #: flash-video-resizer.php: 26259 #: flash-video-resizer.php:311 44 60 msgid "Arquivo (Página com multiplos artigos de Categorias, Tags, Autor e Data)" 45 msgstr "Archive (pages with multiple posts like Categories, Tags, Autho s eDate)"61 msgstr "Archive (pages with multiple posts like Categories, Tags, Author and Date)" 46 62 47 #: flash-video-resizer.php: 26563 #: flash-video-resizer.php:314 48 64 msgid "Busca" 49 65 msgstr "Search" 50 66 51 #: flash-video-resizer.php: 26867 #: flash-video-resizer.php:317 52 68 msgid "Página" 53 69 msgstr "Page" 54 70 55 #: flash-video-resizer.php: 28071 #: flash-video-resizer.php:329 56 72 msgid "Settings" 57 73 msgstr "Settings" 58 74 75 #~ msgid "Você precisa definir a largura do vídeo!" 76 #~ msgstr "You have to set the width of the video!" 59 77 #~ msgid "Arquivo" 60 78 #~ msgstr "Archive" -
flash-video-resizer/trunk/flash-video-resizer.php
r146479 r169404 4 4 Plugin URI: http://bernabauer.com/wp-plugins 5 5 Description: Resize flash video to an ajustable width. 6 Version: 1. 16 Version: 1.2 7 7 Author: bernabauer 8 8 Author URI: http://bernabauer.com … … 28 28 29 29 global $fvr_version; 30 $fvr_version = "1. 1";30 $fvr_version = "1.2"; 31 31 32 32 $fvr_options = get_option('fvr_width'); … … 42 42 */ 43 43 function fvr_warning() { 44 echo "<div class='updated fade-ff0000'><p><strong>".__('Alerta Flash Video Resizer', 'fvr')."</strong><br /> ".__('Você precisa definira largura do vídeo!', 'fvr')."</p></div>";44 echo "<div class='updated fade-ff0000'><p><strong>".__('Alerta Flash Video Resizer', 'fvr')."</strong><br /> ".__('Você precisa',"fvr")." <a href=\"options-reading.php\">".__('definir',"fvr")."</a> ".__('a largura do vídeo!', 'fvr')."</p></div>"; 45 45 } 46 46 … … 173 173 } 174 174 #fim trata metacafe 175 if (stripos($thecontent, "vids.myspace.com") > 0) { 176 #trata MySpace 177 $ret_object = preg_match_all('/object.*? width=["|\']([0-9]+)["|\'].*?height=["|\']([0-9]+)["|\'].*?/', $thecontent, $object_dim, PREG_SET_ORDER); 178 $i=0; 179 if ($ret_object != 0) { 180 foreach ($object_dim as $d) { 181 $ratio = $d[1]/$d[2]; 182 $h = $w / $ratio; 183 $h = (int) $h; 184 echo "<br />w ".$d[1]." h ".$d[2]." - w ".$w."h ".$h; 185 186 $thecontent = str_replace("height='".$d[2]."'", "height='".$h."'", $thecontent); 187 $thecontent = str_replace("width='".$d[1]."'", "width='".$w."'", $thecontent); 188 } 189 190 } else { 191 $ret_object = preg_match_all('/object.*? height=["|\']([0-9]+)["|\'].*?width=["|\']([0-9]+)["|\'].*?/', $thecontent, $object_dim, PREG_SET_ORDER); 192 $i=0; 193 if ($ret_object != 0) { 194 $ratio = $d[1]/$d[2]; 195 $h = $w / $ratio; 196 $h = (int) $h; 197 198 $thecontent = str_replace("heigh='".$d[1]."'", "height='".$h."'", $thecontent); 199 $thecontent = str_replace("width='".$d[2]."'", "width='".$w."'", $thecontent); 200 } 201 } #fim else 202 } #fim trata myspace 203 if (stripos($thecontent, "videolog.tv") > 0) { 204 #trata VideoLog 205 $ret_object = preg_match_all('/width=["|\']([0-9]+)["|\'].*?height=["|\']([0-9]+)["|\'].*?/', $thecontent, $object_dim, PREG_SET_ORDER); 206 $i=0; 207 if ($ret_object != 0) { 208 foreach ($object_dim as $d) { 209 $ratio = $d[1]/$d[2]; 210 $h = $w / $ratio; 211 $h = (int) $h; 212 213 $thecontent = str_replace("height='".$d[2]."'", "height='".$h."'", $thecontent); 214 $thecontent = str_replace("width='".$d[1]."'", "width='".$w."'", $thecontent); 215 $thecontent = str_replace("height=".$d[2], "height=".$h, $thecontent); 216 $thecontent = str_replace("width=".$d[1], "width=".$w, $thecontent); 217 } 218 219 } else { 220 $ret_object = preg_match_all('/height=["|\']([0-9]+)["|\'].*?width=["|\']([0-9]+)["|\'].*?/', $thecontent, $object_dim, PREG_SET_ORDER); 221 $i=0; 222 if ($ret_object != 0) { 223 $ratio = $d[1]/$d[2]; 224 $h = $w / $ratio; 225 $h = (int) $h; 226 227 $thecontent = str_replace("heigh='".$d[1]."'", "height='".$h."'", $thecontent); 228 $thecontent = str_replace("width='".$d[2]."'", "width='".$w."'", $thecontent); 229 $thecontent = str_replace("heigh=".$d[1], "height=".$h, $thecontent); 230 $thecontent = str_replace("width=".$d[2], "width=".$w, $thecontent); 231 } 232 } #fim else 233 } #fim trata myspace 175 234 } 176 235 return "<!-- Flash Video Resizer ".$fvr_options['versao']." : ".$w."pixel -->".$thecontent; … … 201 260 global $fvr_version; 202 261 262 $fvr_options = get_option('fvr_width'); 203 263 $fvr_options['versao'] = $fvr_version; 204 205 $fvr_width = get_option('fvr_width'); 206 207 if ($fvr_width) { 208 if ($fvr_width['versao'] != $fvr_options['versao']) { 209 $fvr_options['artigo'] = $fvr_width; 210 $fvr_options['home'] = $fvr_width; 211 $fvr_options['arquivo'] = $fvr_width; 212 $fvr_options['busca'] = $fvr_width; 213 $fvr_options['pagina'] = $fvr_width; 214 215 update_option('fvr_width', $fvr_options); 216 } 217 } else { 218 $fvr_options['artigo'] = 400; 219 $fvr_options['home'] = 400; 220 $fvr_options['arquivo'] = 400; 221 $fvr_options['busca'] = 400; 222 $fvr_options['pagina'] = 400; 223 224 update_option('fvr_width', $fvr_options); 264 265 if ($fvr_width['versao'] != $fvr_options['versao']) { 266 update_option('fvr_width', $fvr_options); 225 267 } 226 268 } … … 243 285 244 286 function fvr_setting_section_callback_function() { 245 echo '<p>'.__("Defina o tamanho da largura do vídeo", "fvr").'</p> ';287 echo '<p>'.__("Defina o tamanho da largura do vídeo", "fvr").'</p><p>'.__("Problemas com o plugin?", "fvr")." <a href=\"http://forum.bernabauer.com/viewforum.php?f=9\" target=\"_blank\">".__("Resolva aqui", "fvr")."</a></p>"; 246 288 } 247 289 -
flash-video-resizer/trunk/flash-video-resizer.po
r146476 r169404 3 3 "Project-Id-Version: flash-video-resizer\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2009- 08-16 20:11-0300\n"5 "POT-Creation-Date: 2009-11-01 19:44-0300\n" 6 6 "PO-Revision-Date: \n" 7 7 "Last-Translator: Bernardo Bauer <[email protected]>\n" … … 17 17 "X-Poedit-SearchPath-0: .\n" 18 18 19 #: flash-video-resizer.php:4 119 #: flash-video-resizer.php:44 20 20 msgid "Alerta Flash Video Resizer" 21 21 msgstr "Flash Video Resizer's Warning" 22 22 23 #: flash-video-resizer.php:4 124 msgid "Você precisa definir a largura do vídeo!"25 msgstr "You have to set the width of the video!"23 #: flash-video-resizer.php:44 24 msgid "Você precisa" 25 msgstr "You have to" 26 26 27 #: flash-video-resizer.php:189 27 #: flash-video-resizer.php:44 28 msgid "definir" 29 msgstr "define" 30 31 #: flash-video-resizer.php:44 32 msgid "a largura do vídeo!" 33 msgstr "the width of the video!" 34 35 #: flash-video-resizer.php:251 28 36 msgid "Largura" 29 37 msgstr "Width" 30 38 31 #: flash-video-resizer.php:2 4139 #: flash-video-resizer.php:288 32 40 msgid "Defina o tamanho da largura do vídeo" 33 msgstr " Specifythe width of the video"41 msgstr "Define the width of the video" 34 42 35 #: flash-video-resizer.php:256 43 #: flash-video-resizer.php:288 44 msgid "Problemas com o plugin?" 45 msgstr "Problems with the plugin?" 46 47 #: flash-video-resizer.php:288 48 msgid "Resolva aqui" 49 msgstr "Support forum (interface in portuguese)" 50 51 #: flash-video-resizer.php:305 36 52 msgid "Post" 37 53 msgstr "Post" 38 54 39 #: flash-video-resizer.php: 25955 #: flash-video-resizer.php:308 40 56 msgid "Página Principal" 41 57 msgstr "Home" 42 58 43 #: flash-video-resizer.php: 26259 #: flash-video-resizer.php:311 44 60 msgid "Arquivo (Página com multiplos artigos de Categorias, Tags, Autor e Data)" 45 msgstr "Archive (pages with multiple posts like Categories, Tags, Autho s eDate)"61 msgstr "Archive (pages with multiple posts like Categories, Tags, Author and Date)" 46 62 47 #: flash-video-resizer.php: 26563 #: flash-video-resizer.php:314 48 64 msgid "Busca" 49 65 msgstr "Search" 50 66 51 #: flash-video-resizer.php: 26867 #: flash-video-resizer.php:317 52 68 msgid "Página" 53 69 msgstr "Page" 54 70 55 #: flash-video-resizer.php: 28071 #: flash-video-resizer.php:329 56 72 msgid "Settings" 57 73 msgstr "Settings" 58 74 75 #~ msgid "Você precisa definir a largura do vídeo!" 76 #~ msgstr "You have to set the width of the video!" 59 77 #~ msgid "Arquivo" 60 78 #~ msgstr "Archive" -
flash-video-resizer/trunk/readme.txt
r146476 r169404 4 4 Tags: flash, video, resize 5 5 Requires at least: 2.8 6 Tested up to: 2.8 7 Stable tag: 1. 16 Tested up to: 2.8.5 7 Stable tag: 1.2 8 8 9 9 Resize flash video to a specific size without having to edit HTML code. … … 11 11 == Description == 12 12 13 - This plugin resizes flash videos using a width specified in WordPress's Admin Panel. 14 - Este plugin redimensiona videos em flash para uma largura determinada por uma opção no painel de administração do WordPress. 13 English: 14 This plugin resizes flash videos using a width specified in WordPress's Admin Panel. 15 Tested flash video services listed below. 15 16 16 - Tested flash video services : 17 - Testado com os serviços : 17 Português: 18 Este plugin redimensiona videos em flash para uma largura determinada por uma opção no painel de administração do WordPress. 19 Testado com os serviços listados abaixo 18 20 19 21 * YouTube … … 28 30 * TutorialVid 29 31 * Brightcove 32 * VideoLog (Brazil) 33 * MySpace 30 34 31 35 == Installation == … … 50 54 == Changelog == 51 55 56 = 1.2 = 57 * Included support for VideoLog and MySpace 58 * Incluído suporte para redimensionar vídeos do VideoLog e MySpace. 59 52 60 = 1.1 = 53 61 * Localization fixed.
Note: See TracChangeset
for help on using the changeset viewer.