Update translator documentation.

Update L10n.
Update whitespace.
This commit is contained in:
Siebrand Mazeland
2011-04-29 19:22:44 +02:00
parent 4651c9d94a
commit 558a512ac7
5 changed files with 9 additions and 8 deletions

View File

@@ -227,12 +227,12 @@ class PollPlugin extends MicroAppPlugin
if (!$pollUri) {
// TRANS: Exception thrown trying to respond to a poll without a poll reference.
throw new Exception(_m('Invalid poll response: no poll reference.'));
throw new Exception(_m('Invalid poll response: No poll reference.'));
}
$poll = Poll::staticGet('uri', $pollUri);
if (!$poll) {
// TRANS: Exception thrown trying to respond to a non-existing poll.
throw new Exception(_m('Invalid poll response: poll is unknown.'));
throw new Exception(_m('Invalid poll response: Poll is unknown.'));
}
try {
$notice = Poll_response::saveNew($profile, $poll, $selection, $options);
@@ -258,7 +258,7 @@ class PollPlugin extends MicroAppPlugin
return $this->activityObjectFromNoticePollResponse($notice);
default:
// TRANS: Exception thrown when performing an unexpected action on a poll.
// TRANS: %s is the unpexpected object type.
// TRANS: %s is the unexpected object type.
throw new Exception(sprintf(_m('Unexpected type for poll plugin: %s.'), $notice->object_type));
}
}
@@ -416,7 +416,7 @@ class PollPlugin extends MicroAppPlugin
return $this->showNoticePollResponse($notice, $out);
default:
// TRANS: Exception thrown when performing an unexpected action on a poll.
// TRANS: %s is the unpexpected object type.
// TRANS: %s is the unexpected object type.
throw new Exception(sprintf(_m('Unexpected type for poll plugin: %s.'), $notice->object_type));
}
}
@@ -444,6 +444,7 @@ class PollPlugin extends MicroAppPlugin
$form->show();
}
} else {
// TRANS: Error text displayed if no poll data could be found.
$out->text(_m('Poll data is missing'));
}
$out->elementEnd('div');