Skip to content

Commit

Permalink
Fixed issue #10368: Missing translations
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Feb 12, 2016
1 parent edb8645 commit 297b104
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion application/controllers/admin/participantsaction.php
Expand Up @@ -159,7 +159,7 @@ protected function csvExportCount($search = null)
$count = Participant::model()->getParticipantsCount($attid, $search, $iUserID);

if ($count > 0) {
return sprintf(ngT("Export %s participant to CSV|Export %s participants to CSV", $count),$count);
return sprintf(ngT("Export %s participant to CSV","Export %s participants to CSV", $count),$count);
} else {
return $count;
}
Expand Down
4 changes: 2 additions & 2 deletions application/helpers/common_helper.php
Expand Up @@ -56,9 +56,9 @@ function eT($sToTranslate, $sEscapeMode = 'html', $sLanguage = NULL)
* @param integer $iCount
* @param string $sEscapeMode
*/
function ngT($sToTranslate, $iCount, $sEscapeMode = 'html')
function ngT($sTextToTranslateSingular,$sTextToTranslatePlural, $iCount, $sEscapeMode = 'html')
{
return quoteText(Yii::t('',$sToTranslate,$iCount),$sEscapeMode);
return quoteText(Yii::t('',$sTextToTranslateSingular.'|'.$sTextToTranslatePlural,$iCount),$sEscapeMode);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions application/helpers/expressions/em_manager_helper.php
Expand Up @@ -8156,9 +8156,9 @@ private function gT($string, $escapemode = 'html')
}


private function ngT($sText, $number, $escapemode = 'html')
private function ngT($sTextToTranslateSingular, $sTextToTranslatePlural, $number, $escapemode = 'html')
{
return ngT($sText, $number, $escapemode);
return ngT($sTextToTranslateSingular, $sTextToTranslatePlural, $number, $escapemode);
}

/**
Expand Down

0 comments on commit 297b104

Please sign in to comment.