public function getTranslations($localeCode)
    {
        $locale = $this->getLocaleByCode($localeCode);

        if (!$locale->hasPoFile()) {
            throw new Exception(sprintf(__("The project has never been scanned for %s.", 'strata'), $locale->getNativeLabel()));
        }

        return Translations::fromPoFile($locale->getPoFilePath());
    }
public function getTranslations($localeCode)
    {
        $locale = $this->getLocaleByCode($localeCode);

        if (!$locale->hasPoFile()) {
            throw new Exception(sprintf(__("The project has never been scanned for %s.", 'strata'), $locale->getNativeLabel()));
        }

        return Translations::fromPoFile($locale->getPoFilePath());
    }
public function getTranslations ( $ localeCode ) { $ locale = $ this -> getLocaleByCode ( $ localeCode ) ; if ( ! $ locale -> hasPoFile ( ) ) { throw new Exception ( sprintf ( __ ( "The project has never been scanned for %s." , 'strata' ) , $ locale -> getNativeLabel ( ) ) ) ; } return Translations :: fromPoFile ( $ locale -> getPoFilePath ( ) ) ; }
Loads the translations from the locale's PO file and returns the list.
@param  string $localeCode
@return array
Loads the translations from the locale s PO file and returns the list .