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

getVariants() private method

Get the variant for a catalogue depending on the current culture.
See also: save()
See also: update()
See also: delete()
private getVariants ( $catalogue = 'messages' ) : string
return string the variant.
    private function getVariants($catalogue = 'messages')
    {
        if ($catalogue === null) {
            $catalogue = 'messages';
        }
        foreach ($this->getCatalogueList($catalogue) as $variant) {
            $file = $this->getSource($variant);
            $po = $this->getPOFile($file);
            if (is_file($file) || is_file($po)) {
                return array($variant, $file, $po);
            }
        }
        return false;
    }