public static function show($value, $name, $code = null)
    {

        if (is_null($code)) $code = self::$_languageCode;

        // Lang file
        $file = "../App/Language/$code/$name.php";

        // Check if is readable
        if (is_readable($file)) {

            // Require file
            $_array = include($file);

        } else {

            // Display error
            echo \Core\Error::display("Could not load language file '$code/$name.php'");
            die;

        }

        if (!empty($_array[$value])) {
            return $_array[$value];
        } else {
            return $value;
        }
    }
public static function show($value, $name, $code = null)
    {

        if (is_null($code)) $code = self::$_languageCode;

        // Lang file
        $file = "../App/Language/$code/$name.php";

        // Check if is readable
        if (is_readable($file)) {

            // Require file
            $_array = include($file);

        } else {

            // Display error
            echo \Core\Error::display("Could not load language file '$code/$name.php'");
            die;

        }

        if (!empty($_array[$value])) {
            return $_array[$value];
        } else {
            return $value;
        }
    }
public static function show ( $ value , $ name , $ code = null ) { if ( is_null ( $ code ) ) $ code = self :: $ _languageCode ; // Lang file $ file = "../App/Language/$code/$name.php" ; // Check if is readable if ( is_readable ( $ file ) ) { // Require file $ _array = include ( $ file ) ; } else { // Display error echo \ Core \ Error :: display ( "Could not load language file '$code/$name.php'" ) ; die ; } if ( ! empty ( $ _array [ $ value ] ) ) { return $ _array [ $ value ] ; } else { return $ value ; } }
Get language 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 language for views