SimpleSAML\Locale\Translate::translatePluralGettext PHP Method

translatePluralGettext() public static method

public static translatePluralGettext ( $original, $plural, $value )
    public static function translatePluralGettext($original, $plural, $value)
    {
        $text = \Gettext\BaseTranslator::$current->ngettext($original, $plural, $value);
        if (func_num_args() === 3) {
            return $text;
        }
        $args = array_slice(func_get_args(), 3);
        return strtr($text, is_array($args[0]) ? $args[0] : $args);
    }