Added translations to post reactions rule.

Closes issue #23
This commit is contained in:
Zachary Doll 2014-03-17 13:00:48 -05:00
parent 773ff80e2c
commit 4c5be6dcf1
2 changed files with 7 additions and 2 deletions

View File

@ -53,11 +53,11 @@ class PostReactions implements YagaRule {
$ActionList = '';
foreach($Actions as $Action) {
$ActionList .= Wrap(sprintf(T("# of %s's:"), $Action->Name) . ' ' . $Form->Textbox('ActionID_' . $Action->ActionID, array('class' => 'SmallInput')), 'li');
$ActionList .= Wrap(sprintf(T('Yaga.Rules.PostReactions.LabelFormat'), $Action->Name) . ' ' . $Form->Textbox('ActionID_' . $Action->ActionID, array('class' => 'SmallInput')), 'li');
}
if($ActionList == '') {
$String .= 'No actions defined.';
$String .= T('Yaga.Error.NoActions');
}
else {
$String .= Wrap($ActionList, 'ul');

View File

@ -78,6 +78,7 @@ $Definition['Promoted Content'] = 'Promoted Content';
$Definition['Yaga.Error.ReactToOwn'] = 'You cannot react to your own content.';
$Definition['Yaga.Error.NoRules'] = 'You cannot add or edit badges without rules!';
$Definition['Yaga.Error.Rule404'] = 'Rule not found.';
$Definition['Yaga.Error.NoActions'] = 'There are no actions defined.';
$Definition['Yaga.Error.NoBadges'] = 'You cannot award badges without any badges defined.';
$Definition['Yaga.Error.NoRanks'] = 'You cannot promote users without any ranks defined.';
$Definition['Yaga.Error.NeedJS'] = 'That must be done via Javascript';
@ -174,6 +175,10 @@ $Definition['Yaga.Rules.NewbieComment.Desc'] = 'Award this badge if a comment is
$Definition['Yaga.Rules.NewbieComment.Criteria.Head'] = 'User Newbness';
$Definition['Yaga.Rules.PhotoExists'] = 'User has Avatar';
$Definition['Yaga.Rules.PhotoExists.Desc'] = 'Award this badge if the user has uploaded a profile photo.';
$Definition['Yaga.Rules.PostReactions'] = 'Post Reaction Count';
$Definition['Yaga.Rules.PostReactions.Desc'] = 'Award this badge if the user has a single post with the specified reaction counts.';
$Definition['Yaga.Rules.PostReactions.Criteria.Head'] = 'Reaction Counts';
$Definition['Yaga.Rules.PostReactions.LabelFormat'] = "# of %s's:";
$Definition['Yaga.Rules.QnAAnserCount'] = 'Accepted Answers (QnA Plugin required)';
$Definition['Yaga.Rules.QnAAnserCount.Desc'] = 'Award this badge if the user has accepted answers that fit the criteria.';
$Definition['Yaga.Rules.QnAAnserCount.Criteria.Head'] = 'How many accepted answers?';