Cleanup and minor fixes

This commit is contained in:
Frederic Guillot
2015-10-19 21:05:41 -04:00
parent 43cffe2828
commit 7303a79b50
23 changed files with 255 additions and 286 deletions

View File

@@ -41,14 +41,3 @@ function dt($format, $timestamp)
{
return Translator::getInstance()->datetime($format, $timestamp);
}
/**
* Handle plurals, return $t2 if $value > 1
*
* @todo Improve this function
* @return mixed
*/
function p($value, $t1, $t2)
{
return $value > 1 ? $t2 : $t1;
}