Plugin Directory

Changeset 148312


Ignore:
Timestamp:
08/23/2009 08:15:36 AM (17 years ago)
Author:
ruslany
Message:

Error in the link to the media playr. Also made the link anchor text localizeable.

Location:
wp-media-player/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • wp-media-player/trunk/languages/wp-media-player-ru_RU.po

    r144533 r148312  
    470470msgstr "Вставить в запись"
    471471
     472#: wp-media-player.php:469
     473msgid "Play Video"
     474msgstr "Играть видео"
     475
    472476#: wp-media-player.php:560
    473477msgid "Media Player"
  • wp-media-player/trunk/languages/wp-media-player.pot

    r144533 r148312  
    485485msgstr ""
    486486
     487#: wp-media-player.php:469
     488msgid "Play Video"
     489msgstr ""
     490
    487491#: wp-media-player.php:560
    488492msgid "Media Player"
  • wp-media-player/trunk/player-stats.php

    r147754 r148312  
    210210            </tr>
    211211        </table>
    212         <!-- </Paging> -->
     212    <!-- </Paging> -->
    213213<?php
    214214    }
  • wp-media-player/trunk/wp-media-player.php

    r147754 r148312  
    108108         */
    109109        function initialize()
    110         {   
     110        {
    111111            $this -> pluginurl = apply_filters( 'wp_media_player_url', get_bloginfo( 'wpurl' ) . '/wp-content/plugins/wp-media-player/' );
    112112
     
    204204                $quote_pos = strpos($data, $enclosure, $pos);
    205205                $newline_pos = strpos($data, $newline, $pos);
    206 
    207206                // Which one comes first?
    208207                $pos = min(($comma_pos === false) ? $end : $comma_pos, ($quote_pos === false) ? $end : $quote_pos, ($newline_pos === false) ? $end : $newline_pos);
    209 
    210208                // Cache it
    211209                $char = (isset($data[$pos])) ? $data[$pos] : null;
    212210                $done = ($pos == $end);
    213 
    214211                // It it a special character?
    215212                if ($done || $char == $delimiter || $char == $newline){
    216 
    217213                // Ignore it as we're still in a quote
    218214                    if ($quote_open && !$done){
    219215                        continue;
    220216                    }
    221 
    222217                    $length = $pos - ++$last_pos;
    223 
    224218                    // Is the last thing a quote?
    225219                    if ($trim_quote){
     
    227221                        --$length;
    228222                    }
    229 
    230223                    // Get all the contents of this column
    231224                    $return[$row][] = ($length > 0) ? str_replace($enclosure . $enclosure, $enclosure, substr($data, $last_pos, $length)) : '';
    232                    
    233225                    // And we're done
    234226                    if ($done){
    235227                        break;
    236228                        }
    237 
    238229                    // Save the last position
    239230                    $last_pos = $pos;
    240 
    241231                    // Next row?
    242232                    if ($char == $newline){
     
    247237                // Our quote?
    248238                else if ($char == $enclosure){
    249 
    250239                    // Toggle it
    251240                    if ($quote_open == false){
     
    253242                        $quote_open = true;
    254243                        $trim_quote = false;
    255 
    256244                        // Trim this opening quote?
    257245                        if ($last_pos + 1 == $pos){
     
    479467                }
    480468                else{
    481                     $scriptcode = "<a href=\"".get_permalink()."#mediaPlayer_".$post_id."_$i\">Play Video ".is_single()."</a>";
     469                    $scriptcode = "<a href=\"".get_permalink()."#mediaPlayer_".$post_id."_$i\">".__('Play Video', 'wp-media-player')."</a>";
    482470                }
    483471                $content = $this -> str_replace_once( $match[0], $scriptcode, $content);
Note: See TracChangeset for help on using the changeset viewer.