public function getTranslation($lang, $key, $array_support = false)
    {
        $translation = Grav::instance()['languages']->get($lang . '.' . $key, null);
        if (!$array_support && is_array($translation)) {
            return (string)array_shift($translation);
        }

        return $translation;
    }
public function getTranslation($lang, $key, $array_support = false)
    {
        $translation = Grav::instance()['languages']->get($lang . '.' . $key, null);
        if (!$array_support && is_array($translation)) {
            return (string)array_shift($translation);
        }

        return $translation;
    }
public function getTranslation ( $ lang , $ key , $ array_support = false ) { $ translation = Grav :: instance ( ) [ 'languages' ] -> get ( $ lang . '.' . $ key , null ) ; if ( ! $ array_support && is_array ( $ translation ) ) { return ( string ) array_shift ( $ translation ) ; } return $ translation ; }
Lookup the translation text for a given lang and key

@param string $lang lang code
@param string $key  key to lookup with
@param bool $array_support

@return string
Lookup the translation text for a given lang and key