From: Siebrand Mazeland Date: Tue, 30 Aug 2011 09:37:20 +0000 (+0200) Subject: Add translator documentation. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c9139cc6e0bd3eb4e146fb83801a0e0934418a64;p=quix0rs-gnu-social.git Add translator documentation. Update punctuation for a few messages. Leading tabs to spaces. --- diff --git a/plugins/Activity/ActivityPlugin.php b/plugins/Activity/ActivityPlugin.php index 21f1cf9ab8..b3c3817858 100644 --- a/plugins/Activity/ActivityPlugin.php +++ b/plugins/Activity/ActivityPlugin.php @@ -83,11 +83,17 @@ class ActivityPlugin extends Plugin if (!empty($user)) { $sub = Subscription::pkeyGet(array('subscriber' => $subscriber->id, 'subscribed' => $other->id)); + // TRANS: Text for "started following" item in activity plugin. + // TRANS: %1$s is a profile URL, %2$s is a profile name, + // TRANS: %3$s is a profile URL, %4$s is a profile name. $rendered = sprintf(_m('%2$s started following %4$s.'), $subscriber->profileurl, $subscriber->getBestName(), $other->profileurl, $other->getBestName()); + // TRANS: Text for "started following" item in activity plugin. + // TRANS: %1$s is a profile name, %2$s is a profile URL, + // TRANS: %3$s is a profile name, %4$s is a profile URL. $content = sprintf(_m('%1$s (%2$s) started following %3$s (%4$s).'), $subscriber->getBestName(), $subscriber->profileurl, @@ -113,11 +119,17 @@ class ActivityPlugin extends Plugin if(!$this->StopFollowUser) return true; $user = $subscriber->getUser(); if (!empty($user)) { + // TRANS: Text for "stopped following" item in activity plugin. + // TRANS: %1$s is a profile URL, %2$s is a profile name, + // TRANS: %3$s is a profile URL, %4$s is a profile name. $rendered = sprintf(_m('%2$s stopped following %4$s.'), $subscriber->profileurl, $subscriber->getBestName(), $other->profileurl, $other->getBestName()); + // TRANS: Text for "stopped following" item in activity plugin. + // TRANS: %1$s is a profile name, %2$s is a profile URL, + // TRANS: %3$s is a profile name, %4$s is a profile URL. $content = sprintf(_m('%1$s (%2$s) stopped following %3$s (%4$s).'), $subscriber->getBestName(), $subscriber->profileurl, @@ -155,12 +167,18 @@ class ActivityPlugin extends Plugin $fave = Fave::pkeyGet(array('user_id' => $user->id, 'notice_id' => $notice->id)); + // TRANS: Text for "liked" item in activity plugin. + // TRANS: %1$s is a profile URL, %2$s is a profile name, + // TRANS: %3$s is a notice URL, %4$s is an author name. $rendered = sprintf(_m('%2$s liked %4$s\'s update.'), $profile->profileurl, $profile->getBestName(), $notice->bestUrl(), $author->getBestName()); - $content = sprintf(_m('%1$s (%2$s) liked %3$s\'s status (%4$s)'), + // TRANS: Text for "liked" item in activity plugin. + // TRANS: %1$s is a profile name, %2$s is a profile URL, + // TRANS: %3$s is an author name, %4$s is a notice URL. + $content = sprintf(_m('%1$s (%2$s) liked %3$s\'s status (%4$s).'), $profile->getBestName(), $profile->profileurl, $author->getBestName(), @@ -188,12 +206,18 @@ class ActivityPlugin extends Plugin if (!empty($user)) { $author = Profile::staticGet('id', $notice->profile_id); + // TRANS: Text for "stopped liking" item in activity plugin. + // TRANS: %1$s is a profile URL, %2$s is a profile name, + // TRANS: %3$s is a notice URL, %4$s is an author name. $rendered = sprintf(_m('%2$s stopped liking %4$s\'s update.'), $profile->profileurl, $profile->getBestName(), $notice->bestUrl(), $author->getBestName()); - $content = sprintf(_m('%1$s (%2$s) stopped liking %3$s\'s status (%4$s)'), + // TRANS: Text for "stopped liking" item in activity plugin. + // TRANS: %1$s is a profile name, %2$s is a profile URL, + // TRANS: %3$s is an author name, %4$s is a notice URL. + $content = sprintf(_m('%1$s (%2$s) stopped liking %3$s\'s status (%4$s).'), $profile->getBestName(), $profile->profileurl, $author->getBestName(), @@ -229,11 +253,17 @@ class ActivityPlugin extends Plugin return true; } + // TRANS: Text for "joined group" item in activity plugin. + // TRANS: %1$s is a profile URL, %2$s is a profile name, + // TRANS: %3$s is a group URL, %4$s is a group name. $rendered = sprintf(_m('%2$s joined the group %4$s.'), $profile->profileurl, $profile->getBestName(), $group->homeUrl(), $group->getBestName()); + // TRANS: Text for "joined group" item in activity plugin. + // TRANS: %1$s is a profile name, %2$s is a profile URL, + // TRANS: %3$s is a group name, %4$s is a group URL. $content = sprintf(_m('%1$s (%2$s) joined the group %3$s (%4$s).'), $profile->getBestName(), $profile->profileurl, @@ -266,12 +296,18 @@ class ActivityPlugin extends Plugin return true; } + // TRANS: Text for "left group" item in activity plugin. + // TRANS: %1$s is a profile URL, %2$s is a profile name, + // TRANS: %3$s is a group URL, %4$s is a group name. $rendered = sprintf(_m('%2$s left the group %4$s.'), $profile->profileurl, $profile->getBestName(), $group->homeUrl(), $group->getBestName()); - $content = sprintf(_m('%1$s (%2$s) left the group %3$s (%4$s)'), + // TRANS: Text for "left group" item in activity plugin. + // TRANS: %1$s is a profile name, %2$s is a profile URL, + // TRANS: %3$s is a group name, %4$s is a group URL. + $content = sprintf(_m('%1$s (%2$s) left the group %3$s (%4$s).'), $profile->getBestName(), $profile->profileurl, $group->getBestName(), diff --git a/plugins/Activity/joinlistitem.php b/plugins/Activity/joinlistitem.php index 8c11ff74ca..c795225ef8 100644 --- a/plugins/Activity/joinlistitem.php +++ b/plugins/Activity/joinlistitem.php @@ -51,17 +51,21 @@ class JoinListItem extends SystemListItem $notice = $this->nli->notice; $out = $this->nli->out; - $mem = Group_member::staticGet('uri', $notice->uri); + $mem = Group_member::staticGet('uri', $notice->uri); if (!empty($mem)) { $out->elementStart('div', 'join-activity'); - $profile = $mem->getMember(); - $group = $mem->getGroup(); - $out->raw(sprintf(_m('%2$s joined the group %4$s.'), - $profile->profileurl, - $profile->getBestName(), - $group->homeUrl(), - $group->getBestName())); + $profile = $mem->getMember(); + $group = $mem->getGroup(); + + // TRANS: Text for "joined list" item in activity plugin. + // TRANS: %1$s is a profile URL, %2$s is a profile name, + // TRANS: %3$s is a group home URL, %4$s is a group name. + $out->raw(sprintf(_m('%2$s joined the group %4$s.'), + $profile->profileurl, + $profile->getBestName(), + $group->homeUrl(), + $group->getBestName())); $out->elementEnd('div'); } else {