Exemple #1
0
 public function test_translate_and_pluralize()
 {
     $this->assertEquals('2 messages', SI18n::translate_and_pluralize('inbox', 2));
     $this->assertEquals('2 messages', _p('inbox', 2));
 }
Exemple #2
0
function _p($key, $count = 0)
{
    return SI18n::translate_and_pluralize($key, $count);
}