Throughout my plugin I&#39;m constructing sentences like this:<br><br><span style="font-family: courier new,monospace;">    if ($user_id == $author_id)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        $author = &#39;their own&#39;;</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">    elseif ($user_id == 0)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        $author = &#39;an&#39;;</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">    else</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        $author = bp_core_get_userlink( $author_id ) . &quot;&#39;s&quot;;</span><br style="font-family: courier new,monospace;">

<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    $action = bp_core_get_userlink( $user_id ) . &#39; likes &#39; . $author . &#39; &lt;a href=&quot;&#39; . bp_activity_get_permalink($activity_id) . &#39;&quot;&gt;activity&lt;/a&gt;&#39;;</span><br>

<br>What would be the best way of making this translatable? Something like this perhaps:<br><br><span style="font-family: courier new,monospace;">    if ($user_id == $author_id) :</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">        $liker = bp_core_get_userlink( $user_id );</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        $activity_url = bp_activity_get_permalink($activity_id);</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">        $action = sprintf(__(&#39;%s likes their own &lt;a href=&quot;%s&quot;&gt;activity&lt;/a&gt;&#39;), $liker, $activity_url);</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">    elseif ($user_id == 0) :</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        $liker = bp_core_get_userlink( $user_id );</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">        $activity_url = bp_activity_get_permalink($activity_id);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        $action = sprintf(__(&#39;%s likes an &lt;a href=&quot;%s&quot;&gt;activity&lt;/a&gt;&#39;), $liker, $activity_url);</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">    else :</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        $liker = bp_core_get_userlink( $user_id );</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">        $author = bp_core_get_userlink( $author_id );</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        $activity_url = bp_activity_get_permalink($activity_id);</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">        $action = sprintf(__(&#39;%s likes %s\&#39;s &lt;a href=&quot;%s&quot;&gt;activity&lt;/a&gt;&#39;), $liker, $author, $activity_url);</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">    endif;</span><br><br>My only worry is that the sentences are almost identical, I don&#39;t want translators having to do too much repetition.<br><br clear="all">-- Alex  (Hempsworth)<br>