<?php
namespace Craft;

class FeedMeHelper
{
    // Public Methods
    // =========================================================================

    public static function parseBoolean($value)
    {
        $result = filter_var($value, FILTER_VALIDATE_BOOLEAN);

        // Also check for translated values of boolean-like terms
        if (strtolower($value) === Craft::t('yes')) {
            $result = true;
        }
        
        if (strtolower($value) === Craft::t('on')) {
            $result = true;
        }
        
        if (strtolower($value) === Craft::t('open')) {
            $result = true;
        }


        if (strtolower($value) === Craft::t('no')) {
            $result = false;
        }

        if (strtolower($value) === Craft::t('off')) {
            $result = false;
        }

        if (strtolower($value) === Craft::t('closed')) {
            $result = false;
        }

        return $result;
    }

}

<?php
namespace Craft;

class FeedMeHelper
{
    // Public Methods
    // =========================================================================

    public static function parseBoolean($value)
    {
        $result = filter_var($value, FILTER_VALIDATE_BOOLEAN);

        // Also check for translated values of boolean-like terms
        if (strtolower($value) === Craft::t('yes')) {
            $result = true;
        }
        
        if (strtolower($value) === Craft::t('on')) {
            $result = true;
        }
        
        if (strtolower($value) === Craft::t('open')) {
            $result = true;
        }
        
        if (strtolower($value) === Craft::t('enabled')) {
            $result = true;
        }
        
        if (strtolower($value) === Craft::t('live')) {
            $result = true;
        }


        if (strtolower($value) === Craft::t('no')) {
            $result = false;
        }

        if (strtolower($value) === Craft::t('off')) {
            $result = false;
        }

        if (strtolower($value) === Craft::t('closed')) {
            $result = false;
        }

        if (strtolower($value) === Craft::t('disabled')) {
            $result = false;
        }

        return $result;
    }

}

Add extra truthy detections for ‘live’ and ‘enabled’
Add extra truthy detections for ‘live’ and ‘enabled’
