public static function show($value, $name = null)
    {
        /** lang file */
        $file = __DIR__.'/../../'.DIR_LANGUAGE . LANGUAGE_CODE . DS . "$name.php";

        /** check if is readable */
        if (is_readable($file)) {
            /** require file */
//            $array = include($file);
        } else {
            /** display error */
           echo Exception::langNotLoad();
        }

        if (!empty($array[$value])) {
            return $array[$value];
        } else {
            return $value;
        }
    }
public static function show($value, $name = null)
    {
        /** lang file */
        $file = __DIR__.'/../../'.DIR_LANGUAGE . LANGUAGE_CODE . DS . "$name.php";

        /** check if is readable */
        if (is_readable($file)) {
            /** require file */
//            $array = include($file);
        } else {
            /** display error */
           echo Exception::langNotLoad();
        }

        if (!empty($array[$value])) {
            return $array[$value];
        } else {
            return $value;
        }
    }
public static function show ( $ value , $ name = null ) { /** lang file */ $ file = __DIR__ . '/../../' . DIR_LANGUAGE . LANGUAGE_CODE . DS . "$name.php" ; /** check if is readable */ if ( is_readable ( $ file ) ) { /** require file */ //            $array = include($file); } else { /** display error */ echo Exception :: langNotLoad ( ) ; } if ( ! empty ( $ array [ $ value ] ) ) { return $ array [ $ value ] ; } else { return $ value ; } }
Get lang for views.

@param  string $value this is "word" value from language file
@param  string $name name of file with language
@param  string $code optional, language code

@return string
Get lang for views .