$helpers
$helpers : array
Helpers
Outputs a country select list and/or a language select list. Automatically detects language and country codes from browser headers.
Usage...
echo $lang->countrySelect('Foo.country'); echo $lang->languageSelect('Foo.language');
You can override defaults such as:
echo $lang->countrySelect('Foo.country', array( 'label' => __('Choose a Country', true), 'default' => 'ru', 'class' => 'some-class' ));
echo $lang->languageSelect('Foo.language', array( 'label' => __('Choose a Language', true), 'default' => 'sp', 'class' => 'some-class' ));
Note that the 'default' option is only used if the form was not previously submitted, and country/language information could not be extracted from the HTTP request.