src/I18n/Gettext/Translation.php
public function getPluralTranslations($size = null)
    {
        if ($size === null) {
            return $this->pluralTranslation;
        }

        $current = \count($this->pluralTranslation);

        if ($size > $current) {
            return $this->pluralTranslation + \array_fill(0, $size, '');
        }

        if ($size < $current) {
            return \array_slice($this->pluralTranslation, 0, $size);
        }

        return $this->pluralTranslation;
    }
public function getPluralTranslations($size = null)
    {
        if ($size === null) {
            return $this->pluralTranslation;
        }

        $current = \count($this->pluralTranslation);

        if ($size > $current) {
            return $this->pluralTranslation + \array_fill(0, $size, '');
        }

        if ($size < $current) {
            return \array_slice($this->pluralTranslation, 0, $size);
        }

        return $this->pluralTranslation;
    }
public function getPluralTranslations ( $ size = null ) { if ( $ size === null ) { return $ this -> pluralTranslation ; } $ current = \ count ( $ this -> pluralTranslation ) ; if ( $ size > $ current ) { return $ this -> pluralTranslation + \ array_fill ( 0 , $ size , '' ) ; } if ( $ size < $ current ) { return \ array_slice ( $ this -> pluralTranslation , 0 , $ size ) ; } return $ this -> pluralTranslation ; }
Gets all plural translations.

@param int $size

@return array
Gets all plural translations .