src/Form/LocalizationSettingsFieldset.php
public function init()
    {
        $this->setLabel('general settings');
        
        $this->add(
            array(
                'type' => 'Core\Form\Element\Select',
                'name' => 'language',
                'options' => array(
                        'label' => /* @translate */ 'choose your language',
                        'value_options' => array(
                                'en' => /* @translate */ 'English',
                                'fr' => /* @translate */ 'French',
                                'de' => /* @translate */ 'German',
                                'it' => /* @translate */ 'Italian',
                                'po' => /* @translate */ 'Polish',
                                'ru' => /* @translate */ 'Russian',
                                'tr' => /* @translate */ 'Turkish',
                                'es' => /* @translate */ 'Spanish',
                        ),
                        'description' => /* @translate */ 'defines the languages of this frontend.'
                ),
            )
        );

        $timezones=array_merge(
            \DateTimeZone::listIdentifiers(\DateTimeZone::AFRICA),
            \DateTimeZone::listIdentifiers(\DateTimeZone::AMERICA),
            \DateTimeZone::listIdentifiers(\DateTimeZone::ASIA),
            \DateTimeZone::listIdentifiers(\DateTimeZone::ATLANTIC),
            \DateTimeZone::listIdentifiers(\DateTimeZone::AUSTRALIA),
            \DateTimeZone::listIdentifiers(\DateTimeZone::EUROPE),
            \DateTimeZone::listIdentifiers(\DateTimeZone::INDIAN),
            \DateTimeZone::listIdentifiers(\DateTimeZone::PACIFIC)
        );
        
        $this->add(
            array(
                'type' => 'Core\Form\Element\Select',
                'name' => 'timezone',
                'options' => array(
                        'label' => /* @translate */ 'choose your timzone',
                        'value_options' => $timezones,
                        'description' => /* @translate */ 'defines your local timezone.'
                ),
            )
        );
    }
public function init()
    {
        $this->setLabel('general settings');
        
        $this->add(
            array(
                'type' => 'Core\Form\Element\Select',
                'name' => 'language',
                'options' => array(
                        'label' => /* @translate */ 'choose your language',
                        'value_options' => array(
                                'en' => /* @translate */ 'English',
                                'fr' => /* @translate */ 'French',
                                'de' => /* @translate */ 'German',
                                'it' => /* @translate */ 'Italian',
                                'po' => /* @translate */ 'Polish',
                                'ru' => /* @translate */ 'Russian',
                                'tr' => /* @translate */ 'Turkish',
                                'es' => /* @translate */ 'Spanish',
                        ),
                        'description' => /* @translate */ 'defines the languages of this frontend.'
                ),
            )
        );

        $timezones=array_merge(
            \DateTimeZone::listIdentifiers(\DateTimeZone::AFRICA),
            \DateTimeZone::listIdentifiers(\DateTimeZone::AMERICA),
            \DateTimeZone::listIdentifiers(\DateTimeZone::ASIA),
            \DateTimeZone::listIdentifiers(\DateTimeZone::ATLANTIC),
            \DateTimeZone::listIdentifiers(\DateTimeZone::AUSTRALIA),
            \DateTimeZone::listIdentifiers(\DateTimeZone::EUROPE),
            \DateTimeZone::listIdentifiers(\DateTimeZone::INDIAN),
            \DateTimeZone::listIdentifiers(\DateTimeZone::PACIFIC)
        );
        
        $this->add(
            array(
                'type' => 'Core\Form\Element\Select',
                'name' => 'timezone',
                'options' => array(
                        'label' => /* @translate */ 'choose your timzone',
                        'value_options' => $timezones,
                        'description' => /* @translate */ 'defines your local timezone.'
                ),
            )
        );
    }
public function init ( ) { $ this -> setLabel ( 'general settings' ) ; $ this -> add ( array ( 'type' => 'Core\Form\Element\Select' , 'name' => 'language' , 'options' => array ( 'label' => /* @translate */ 'choose your language' , 'value_options' => array ( 'en' => /* @translate */ 'English' , 'fr' => /* @translate */ 'French' , 'de' => /* @translate */ 'German' , 'it' => /* @translate */ 'Italian' , 'po' => /* @translate */ 'Polish' , 'ru' => /* @translate */ 'Russian' , 'tr' => /* @translate */ 'Turkish' , 'es' => /* @translate */ 'Spanish' , ) , 'description' => /* @translate */ 'defines the languages of this frontend.' ) , ) ) ; $ timezones = array_merge ( \ DateTimeZone :: listIdentifiers ( \ DateTimeZone :: AFRICA ) , \ DateTimeZone :: listIdentifiers ( \ DateTimeZone :: AMERICA ) , \ DateTimeZone :: listIdentifiers ( \ DateTimeZone :: ASIA ) , \ DateTimeZone :: listIdentifiers ( \ DateTimeZone :: ATLANTIC ) , \ DateTimeZone :: listIdentifiers ( \ DateTimeZone :: AUSTRALIA ) , \ DateTimeZone :: listIdentifiers ( \ DateTimeZone :: EUROPE ) , \ DateTimeZone :: listIdentifiers ( \ DateTimeZone :: INDIAN ) , \ DateTimeZone :: listIdentifiers ( \ DateTimeZone :: PACIFIC ) ) ; $ this -> add ( array ( 'type' => 'Core\Form\Element\Select' , 'name' => 'timezone' , 'options' => array ( 'label' => /* @translate */ 'choose your timzone' , 'value_options' => $ timezones , 'description' => /* @translate */ 'defines your local timezone.' ) , ) ) ; }
Initialize the Sele
Initialize the Sele