Skip to content

Commit

Permalink
Fixed issue #6020: Fatal error: Call to undefined method LimeExpressi…
Browse files Browse the repository at this point in the history
…onManager::ngT()
  • Loading branch information
c-schmitz committed Apr 17, 2012
1 parent 4ddfdb7 commit a9e7a44
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions application/helpers/expressions/em_core_helper.php
Expand Up @@ -3019,6 +3019,27 @@ function gT($string)
return $string;
}
}


/**
* Stub to access LimeSurvey's functions for internationalizing strings
*
* @param string $single
* @param string $plural
* @param integer $number
*/
function ngT($single, $plural, $number)
{
// ultimately should call i8n functiouns
global $clang;
if (isset($clang)) {
return $clang->ngT($single, $plural, $number);
}
else {
return $string;
}
}

}

/**
Expand Down

0 comments on commit a9e7a44

Please sign in to comment.