Plugin Directory

Changeset 523710


Ignore:
Timestamp:
03/26/2012 11:55:46 AM (14 years ago)
Author:
chilibean
Message:

German language files included

Location:
wp-eyeem/trunk
Files:
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • wp-eyeem/trunk/WP_EyeEm.class.php

    r523678 r523710  
    6464       
    6565    }
    66    
    67 //  public function __toString()
    68 //  {
    69 //      $ret = "";
    70        
    71        
    72 //      if ($this->user->totalPhotos > 0)
    73 //      {
    74 //          $ret .= "<div>The 20 newest photos by ".$this->user->nickname." on EyeEm</div>";
    75            
    76 //          foreach ($this->photos as $photo)
    77 //          {
    78 //              $ret .= "
    79 //              <div class=\"eyeem_post\">
    80 //                  <a href=\"" . $photo->webUrl . "\" title=\"" . $photo->caption . " by " . $this->user->nickname . " on EyeEm\" target=\"_blank\"><img class=\"eyeem_photo\" title=\"" . $photo->caption . " by " . $this->user->nickname . " on EyeEm\" alt=\"" . $photo->caption . " by " . $this->user->nickname . " on EyeEm\" src=\"" . $this->getMaxWidthPhotoUrl($photo) . "\" /></a>
    81 //                      <div class=\"eyeem_caption\"><a href=\"" . $photo->webUrl . "\" target=\"_blank\">" . $photo->caption . "</a> by <a href=\"" . $this->user->webUrl . "\" target=\"_blank\">" . $this->user->nickname . "</a> on <a href=\"http://www.eyeem.com\" target=\"_blank\">EyeEm</a></div>
    82 //              </div>
    83 //              ";
    84 //          }
    85 
    86 //      }
    87 //      else
    88 //      {
    89 //          $ret .= "<p>User has no photos</p>";   
    90 //      }
    91        
    92 //      return $ret;
    93 //  }
    94    
    9566}
    9667?>
  • wp-eyeem/trunk/wp-eyeem.php

    r523678 r523710  
    1313
    1414$plugin_dir = basename(dirname(__FILE__));
    15 load_plugin_textdomain('wp-eyeem', null, $plugin_dir . "/languages/");
     15load_plugin_textdomain('wp-eyeem', false, $plugin_dir . "/languages/");
    1616
    1717
     
    3232        catch (Exception $e)
    3333        {
    34             echo printf(__("User with id %s not found.", "wp-eyeem"),$username);
     34            echo sprintf(__("User with id %s not found.", "wp-eyeem"),$username);
    3535        }
    3636    }
     
    4545    {
    4646        $ret .= "<div>";
    47         $ret .= printf(__("The 20 newest photos by %s on EyeEm", "wp-eyeem"), $eyeem->getUser()->nickname);
     47        $ret .= sprintf(__("The 20 newest photos by %s on EyeEm", "wp-eyeem"), $eyeem->getUser()->nickname);
    4848        $ret .= "</div>";
    4949           
Note: See TracChangeset for help on using the changeset viewer.