Prado\I18N\core\MessageSource_gettext::getCatalogueByDir PHP Method

getCatalogueByDir() private method

This should only be called by getCatalogueList()
See also: getCatalogueList()
private getCatalogueByDir ( $catalogue ) : array
return array a list of catalogues.
    private function getCatalogueByDir($catalogue)
    {
        $variants = explode('_', $this->culture);
        $catalogues = array();
        $variant = null;
        for ($i = 0, $k = count($variants); $i < $k; ++$i) {
            if (isset($variants[$i][0])) {
                $variant .= $variant ? '_' . $variants[$i] : $variants[$i];
                $catalogues[] = $variant . '/' . $catalogue . $this->dataExt;
            }
        }
        return array_reverse($catalogues);
    }