Support » Plugins » Localizing my plugin

  • Alex

    (@hempsworth)


    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?

  • The topic ‘Localizing my plugin’ is closed to new replies.