Prado\I18N\core\MessageSource_MySQL::getCatalogueList PHP Method

getCatalogueList() protected method

Get all the variants of a particular catalogue.
protected getCatalogueList ( $catalogue ) : array
return array list of all variants for this catalogue.
    protected function getCatalogueList($catalogue)
    {
        $variants = explode('_', $this->culture);
        $catalogues = array($catalogue);
        $variant = null;
        for ($i = 0, $k = count($variants); $i < $k; ++$i) {
            if (isset($variants[$i][0])) {
                $variant .= $variant ? '_' . $variants[$i] : $variants[$i];
                $catalogues[] = $catalogue . '.' . $variant;
            }
        }
        return array_reverse($catalogues);
    }