public function testGettext() { $this->assertEquals('Typ', _gettext('Type')); $this->assertEquals('Typ', __('Type')); $this->assertEquals('%d sekundy', _ngettext('%d second', '%d seconds', 2)); $this->assertEquals('%d seconds', _npgettext('context', '%d second', '%d seconds', 2)); $this->assertEquals('Tabulka', _pgettext('Display format', 'Table')); }
function npgettext($context, $singular, $plural, $number) { return _npgettext($context, $singular, $plural, $number); }