public function getTranslations(Locale $locale)
    {
        $localeID = $locale->getID();
        $translations = isset($this->translations[$localeID]) ? $this->translations[$localeID][1] : null;
        if ($translations === null) {
            $translations = clone $this->getSourceStrings(true);
            $translations->setLanguage($locale->getID());
            $this->setTranslations($locale, $translations);
        }

        return $translations;
    }
public function getTranslations(Locale $locale)
    {
        $localeID = $locale->getID();
        $translations = isset($this->translations[$localeID]) ? $this->translations[$localeID][1] : null;
        if ($translations === null) {
            $translations = clone $this->getSourceStrings(true);
            $translations->setLanguage($locale->getID());
            $this->setTranslations($locale, $translations);
        }

        return $translations;
    }
public function getTranslations ( Locale $ locale ) { $ localeID = $ locale -> getID ( ) ; $ translations = isset ( $ this -> translations [ $ localeID ] ) ? $ this -> translations [ $ localeID ] [ 1 ] : null ; if ( $ translations === null ) { $ translations = clone $ this -> getSourceStrings ( true ) ; $ translations -> setLanguage ( $ locale -> getID ( ) ) ; $ this -> setTranslations ( $ locale , $ translations ) ; } return $ translations ; }
Get the translations for a specific locale.

@param Locale $locale
Get the translations for a specific locale .