WordPress.org

Ready to get started?Download WordPress

Forums

Localizing my plugin (1 post)

  1. Hempsworth
    Member
    Posted 4 years ago #

    Throughout my plugin I am constructing sentences to output in the following way:

    if ($user_id == $author_id)
    	$author = 'their own';
    elseif ($user_id == 0)
    	$author = 'an';
    else
    	$author = bp_core_get_userlink( $author_id ) . "'s";
    
    $action = bp_core_get_userlink( $user_id ) . ' likes ' . $author . ' <a href="' . bp_activity_get_permalink($activity_id) . '">activity</a>';

    How would I make this translatable?

Topic Closed

This topic has been closed to new replies.

About this Topic