i18n/L10n updates

Translator documentation added
This commit is contained in:
Siebrand Mazeland
2011-03-11 19:05:28 +01:00
parent a70914cd57
commit 843ace580d
8 changed files with 52 additions and 17 deletions

View File

@@ -235,12 +235,15 @@ class Poll extends Managed_DataObject
common_log(LOG_DEBUG, "Saving poll: $p->id $p->uri");
$p->insert();
$content = sprintf(_m('Poll: %s %s'),
// TRANS: Notice content creating a poll.
// TRANS: %1$s is the poll question, %2$s is a link to the poll.
$content = sprintf(_m('Poll: %1$s %2$s'),
$question,
$p->uri);
$rendered = sprintf(_m('Poll: <a href="%s">%s</a>'),
htmlspecialchars($p->uri),
htmlspecialchars($question));
$link = '<a href="' . htmlspecialchars($p->uri) . '">' . htmlspecialchars($question) . '</a>';
// TRANS: Rendered version of the notice content creating a poll.
// TRANS: %s a link to the poll with the question as link description.
$rendered = sprintf(_m('Poll: %s'), $link);
$tags = array('poll');
$replies = array();