public function setLocale($locale, array $alternates = array())
    {
        $this->insertMeta('set', 'locale', $locale);

        if (!empty($alternates)) {
            foreach ($alternates as $alternate) {
                $this->insertStructure('append', 'locale', array(
                    'alternate' => $alternate
                ));
            }
        }

        return $this;
    }
public function setLocale($locale, array $alternates = array())
    {
        $this->insertMeta('set', 'locale', $locale);

        if (!empty($alternates)) {
            foreach ($alternates as $alternate) {
                $this->insertStructure('append', 'locale', array(
                    'alternate' => $alternate
                ));
            }
        }

        return $this;
    }
public function setLocale ( $ locale , array $ alternates = array ( ) ) { $ this -> insertMeta ( 'set' , 'locale' , $ locale ) ; if ( ! empty ( $ alternates ) ) { foreach ( $ alternates as $ alternate ) { $ this -> insertStructure ( 'append' , 'locale' , array ( 'alternate' => $ alternate ) ) ; } } return $ this ; }
Set 'locale' property.

@param string $locale Default locale
@param array $alternates Alternate locales array
@return self
Set locale property .