Skip to content

Commit

Permalink
Sharing: Use the proper translation function.
Browse files Browse the repository at this point in the history
Fixes #9, props @jeherve, @deckerweb
  • Loading branch information
georgestephanis committed Jan 1, 2014
1 parent f6c261d commit 0c6e0b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/sharedaddy/sharing-sources.php
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ public function get_display( $post ) {
if ( $this->smart )
return '<div class="reddit_button"><iframe src="http://www.reddit.com/static/button/button1.html?width=120&amp;url=' . rawurlencode( $this->get_share_url( $post->ID ) ) . '&amp;title=' . rawurlencode( $post->post_title ) . '" height="22" width="120" scrolling="no" frameborder="0"></iframe></div>';
else
return $this->get_link( get_permalink( $post->ID ), __( 'Reddit', 'share to', 'jetpack' ), __( 'Click to share on Reddit', 'jetpack' ), 'share=reddit' );
return $this->get_link( get_permalink( $post->ID ), _x( 'Reddit', 'share to', 'jetpack' ), __( 'Click to share on Reddit', 'jetpack' ), 'share=reddit' );
}

public function process_request( $post, array $post_data ) {
Expand Down

0 comments on commit 0c6e0b3

Please sign in to comment.