Zebra_Form::language PHP Method

language() public method

The default language is English.
public language ( string $language ) : void
$language string The name of the language file to be used, from the "languages" folder. Must be specified without extension ("german" for the german language not "german.php")! @var string @return void
return void
    function language($language)
    {
        // include the language file
        require rtrim(dirname(__FILE__), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . 'languages/' . strtolower(trim($language)) . '.php';
        // make the language available in the control
        $this->form_properties['language'] =& $this->language;
    }