Plugin Directory

Changeset 169404


Ignore:
Timestamp:
11/01/2009 10:01:34 PM (16 years ago)
Author:
bernabauer
Message:

versao 1.2

Location:
flash-video-resizer
Files:
9 added
8 edited

Legend:

Unmodified
Added
Removed
  • flash-video-resizer/trunk/en_US.po

    r146476 r169404  
    33"Project-Id-Version: flash-video-resizer\n"
    44"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"
    66"PO-Revision-Date: \n"
    77"Last-Translator: Bernardo Bauer <[email protected]>\n"
     
    1717"X-Poedit-SearchPath-0: .\n"
    1818
    19 #: flash-video-resizer.php:41
     19#: flash-video-resizer.php:44
    2020msgid "Alerta Flash Video Resizer"
    21 msgstr "Warning: Flash Video Resizer"
     21msgstr "Flash Video Resizer's Warning"
    2222
    23 #: flash-video-resizer.php:41
    24 msgid "Você precisa definir a largura do vídeo!"
    25 msgstr "You have to set a width!"
     23#: flash-video-resizer.php:44
     24msgid "Você precisa"
     25msgstr "You have to"
    2626
    27 #: flash-video-resizer.php:189
     27#: flash-video-resizer.php:44
     28msgid "definir"
     29msgstr "define"
     30
     31#: flash-video-resizer.php:44
     32msgid "a largura do vídeo!"
     33msgstr "the width of the video!"
     34
     35#: flash-video-resizer.php:251
    2836msgid "Largura"
    2937msgstr "Width"
    3038
    31 #: flash-video-resizer.php:241
     39#: flash-video-resizer.php:288
    3240msgid "Defina o tamanho da largura do vídeo"
    33 msgstr "Specify the width of the video"
     41msgstr "Define the width of the video"
    3442
    35 #: flash-video-resizer.php:256
     43#: flash-video-resizer.php:288
     44msgid "Problemas com o plugin?"
     45msgstr "Problems with the plugin?"
     46
     47#: flash-video-resizer.php:288
     48msgid "Resolva aqui"
     49msgstr "Support forum (interface in portuguese)"
     50
     51#: flash-video-resizer.php:305
    3652msgid "Post"
    3753msgstr "Post"
    3854
    39 #: flash-video-resizer.php:259
     55#: flash-video-resizer.php:308
    4056msgid "Página Principal"
    4157msgstr "Home"
    4258
    43 #: flash-video-resizer.php:262
     59#: flash-video-resizer.php:311
    4460msgid "Arquivo (Página com multiplos artigos de Categorias, Tags, Autor e Data)"
    45 msgstr "Archive (pages with multiple posts like Categories, Tags, Authos e Date)"
     61msgstr "Archive (pages with multiple posts like Categories, Tags, Author and Date)"
    4662
    47 #: flash-video-resizer.php:265
     63#: flash-video-resizer.php:314
    4864msgid "Busca"
    4965msgstr "Search"
    5066
    51 #: flash-video-resizer.php:268
     67#: flash-video-resizer.php:317
    5268msgid "Página"
    5369msgstr "Page"
    5470
    55 #: flash-video-resizer.php:280
     71#: flash-video-resizer.php:329
    5672msgid "Settings"
    5773msgstr "Settings"
    5874
     75#~ msgid "Você precisa definir a largura do vídeo!"
     76#~ msgstr "You have to set the width of the video!"
    5977#~ msgid "Arquivo"
    6078#~ msgstr "Archive"
  • flash-video-resizer/trunk/flash-video-resizer.php

    r146479 r169404  
    44Plugin URI: http://bernabauer.com/wp-plugins
    55Description: Resize flash video to an ajustable width.
    6 Version: 1.1
     6Version: 1.2
    77Author: bernabauer
    88Author URI: http://bernabauer.com
     
    2828
    2929global $fvr_version;
    30 $fvr_version = "1.1";
     30$fvr_version = "1.2";
    3131
    3232$fvr_options = get_option('fvr_width');
     
    4242     */
    4343    function fvr_warning() {
    44         echo "<div class='updated fade-ff0000'><p><strong>".__('Alerta Flash Video Resizer', 'fvr')."</strong><br /> ".__('Você precisa definir a 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>";
    4545    }
    4646
     
    173173            }
    174174            #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
    175234        }
    176235        return "<!-- Flash Video Resizer ".$fvr_options['versao']." : ".$w."pixel -->".$thecontent;
     
    201260    global $fvr_version;
    202261
     262    $fvr_options = get_option('fvr_width');
    203263    $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);
    225267    }
    226268}
     
    243285 
    244286 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>";
    246288 }
    247289 
  • flash-video-resizer/trunk/flash-video-resizer.po

    r146476 r169404  
    33"Project-Id-Version: flash-video-resizer\n"
    44"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"
    66"PO-Revision-Date: \n"
    77"Last-Translator: Bernardo Bauer <[email protected]>\n"
     
    1717"X-Poedit-SearchPath-0: .\n"
    1818
    19 #: flash-video-resizer.php:41
     19#: flash-video-resizer.php:44
    2020msgid "Alerta Flash Video Resizer"
    2121msgstr "Flash Video Resizer's Warning"
    2222
    23 #: flash-video-resizer.php:41
    24 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
     24msgid "Você precisa"
     25msgstr "You have to"
    2626
    27 #: flash-video-resizer.php:189
     27#: flash-video-resizer.php:44
     28msgid "definir"
     29msgstr "define"
     30
     31#: flash-video-resizer.php:44
     32msgid "a largura do vídeo!"
     33msgstr "the width of the video!"
     34
     35#: flash-video-resizer.php:251
    2836msgid "Largura"
    2937msgstr "Width"
    3038
    31 #: flash-video-resizer.php:241
     39#: flash-video-resizer.php:288
    3240msgid "Defina o tamanho da largura do vídeo"
    33 msgstr "Specify the width of the video"
     41msgstr "Define the width of the video"
    3442
    35 #: flash-video-resizer.php:256
     43#: flash-video-resizer.php:288
     44msgid "Problemas com o plugin?"
     45msgstr "Problems with the plugin?"
     46
     47#: flash-video-resizer.php:288
     48msgid "Resolva aqui"
     49msgstr "Support forum (interface in portuguese)"
     50
     51#: flash-video-resizer.php:305
    3652msgid "Post"
    3753msgstr "Post"
    3854
    39 #: flash-video-resizer.php:259
     55#: flash-video-resizer.php:308
    4056msgid "Página Principal"
    4157msgstr "Home"
    4258
    43 #: flash-video-resizer.php:262
     59#: flash-video-resizer.php:311
    4460msgid "Arquivo (Página com multiplos artigos de Categorias, Tags, Autor e Data)"
    45 msgstr "Archive (pages with multiple posts like Categories, Tags, Authos e Date)"
     61msgstr "Archive (pages with multiple posts like Categories, Tags, Author and Date)"
    4662
    47 #: flash-video-resizer.php:265
     63#: flash-video-resizer.php:314
    4864msgid "Busca"
    4965msgstr "Search"
    5066
    51 #: flash-video-resizer.php:268
     67#: flash-video-resizer.php:317
    5268msgid "Página"
    5369msgstr "Page"
    5470
    55 #: flash-video-resizer.php:280
     71#: flash-video-resizer.php:329
    5672msgid "Settings"
    5773msgstr "Settings"
    5874
     75#~ msgid "Você precisa definir a largura do vídeo!"
     76#~ msgstr "You have to set the width of the video!"
    5977#~ msgid "Arquivo"
    6078#~ msgstr "Archive"
  • flash-video-resizer/trunk/readme.txt

    r146476 r169404  
    44Tags: flash, video, resize
    55Requires at least: 2.8
    6 Tested up to: 2.8
    7 Stable tag: 1.1
     6Tested up to: 2.8.5
     7Stable tag: 1.2
    88
    99Resize flash video to a specific size without having to edit HTML code.
     
    1111== Description ==
    1212
    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.
     13English:
     14This plugin resizes flash videos using a width specified in WordPress's Admin Panel.
     15Tested flash video services listed below.
    1516
    16 - Tested flash video services :
    17 - Testado com os serviços :
     17Português:
     18Este plugin redimensiona videos em flash para uma largura determinada por uma opção no painel de administração do WordPress.
     19Testado com os serviços listados abaixo
    1820
    1921*   YouTube
     
    2830*   TutorialVid
    2931*   Brightcove
     32*   VideoLog (Brazil)
     33*   MySpace
    3034
    3135== Installation ==
     
    5054== Changelog ==
    5155
     56= 1.2 =
     57* Included support for VideoLog and MySpace
     58* Incluído suporte para redimensionar vídeos do VideoLog e MySpace.
     59
    5260= 1.1 =
    5361* Localization fixed.
Note: See TracChangeset for help on using the changeset viewer.