Fix i18n issues.
Fix incorrect variable usage in messages.
This commit is contained in:
@@ -205,8 +205,8 @@ class QnA_Answer extends Managed_DataObject
|
||||
{
|
||||
$notice = $question->getNotice();
|
||||
|
||||
$fmt = '<span class="answer_author"><a href="%1s">answer</a> by <a href="%2s">%3s</a></span>';
|
||||
$fmt .= '<span class="answer_content">%4s</span>';
|
||||
$fmt = '<span class="answer_author"><a href="%1$s">answer</a> by <a href="%2$s">%3$s</a></span>';
|
||||
$fmt .= '<span class="answer_content">%4$s</span>';
|
||||
|
||||
return sprintf(
|
||||
$fmt,
|
||||
@@ -221,8 +221,8 @@ class QnA_Answer extends Managed_DataObject
|
||||
{
|
||||
$notice = $question->getNotice();
|
||||
|
||||
$fmt = _(
|
||||
'%1s answered the question "%2s": %3s'
|
||||
$fmt = _m(
|
||||
'%1$s answered the question "%2$s": %3$s'
|
||||
);
|
||||
|
||||
return sprintf(
|
||||
|
||||
@@ -222,9 +222,9 @@ class QnA_Question extends Managed_DataObject
|
||||
$notice = $question->getNotice();
|
||||
|
||||
$fmt = '<div class="qna_question">';
|
||||
$fmt .= '<span class="question_title"><a href="%1s">%2s</a></span>';
|
||||
$fmt .= '<span class="question_description">%3s</span>';
|
||||
$fmt .= '<span class="question_author">asked by <a href="%4s">%5s</a></span>';
|
||||
$fmt .= '<span class="question_title"><a href="%1$s">%2$s</a></span>';
|
||||
$fmt .= '<span class="question_description">%3$s</span>';
|
||||
$fmt .= '<span class="question_author">asked by <a href="%4$s">%5$s</a></span>';
|
||||
$fmt .= '</div>';
|
||||
|
||||
$q = sprintf(
|
||||
@@ -251,8 +251,8 @@ class QnA_Question extends Managed_DataObject
|
||||
|
||||
static function toString($profile, $question, $answers)
|
||||
{
|
||||
$fmt = _(
|
||||
'%1s asked the question "%2s": %3s'
|
||||
$fmt = _m(
|
||||
'%1$s asked the question "%2$s": %3$s'
|
||||
);
|
||||
|
||||
return sprintf(
|
||||
|
||||
Reference in New Issue
Block a user