Get translation

@param string $key
@param array $params
@param string $default
@return string
967128
public static function translate($key, array $params = [], $default = '')
    {
        $result = Application::$instance->getComponent('i18n')->translate($key,
            $params);

        return empty($result) ? self::prepareValueS($default, $params) : $result;
    }
378534
public static function get($key=null,$default=null){
    return $key ? (filter_input(INPUT_GET,$key) ?: (is_callable($default)?call_user_func($default):$default)) : $_GET;
  }
1171564
public function getParam($param, $default = null) 
    {
        if(array_key_exists($param, $this->params)) {
            return $this->params[$param];
        }
        
        return $default;
    }
1027246
private static function get($key = null, $default = null) {

		if(null !== $key && isset(static :: $method['method'], static :: $method['data'])) {

			if(static :: isMethod(static :: $method['method'])) {

				$helper  = new StringToArray();
				$data 	 = $helper -> execute($key, $default, static :: $method['data']);

				//Trim string
				if(true === isset(static :: $options[self :: TRIM_STRING])) {

					if(is_string($data) === 0) {
						$data = trim($data);
					}
				}

				//Convert empty string to NULL
				if(true === isset(static :: $options[self :: EMPTY_STRING_TO_NULL])) {

					if(is_string($data) && strlen($data) === 0) {
						$data = null;
					}
				}

				//Convert empty array to NULL
				if(true === isset(static :: $options[self :: EMPTY_ARRAY_TO_NULL])) {

					if(is_array($data) && count($data) === 0) {
						$data = null;
					}
				}

				$default = null === $data ? $default : $data;
			}

			static :: $method = [];
		}

		return $default;
	}
372878
public static function get($key, $default = NULL) {
        if (isset(self::$configs[$key]))
            return self::$configs[$key];

        return $default;

    }
1002125
public function getMessage( $key, $params = [], $language = null ) {

		// Retrieve Message
		$message = $this->messageDb[ $key ];

		// Return formatted message
		return $this->formatter->format( $message, $params, $language );
	}
271162
public function getRecursive($key, $default = null)
    {
        $params = $this->parameters;
        if(!strpos($key, '.')) {
            return $this->get($key, $default);
        }

        $array = explode('.', $key);
        foreach ($array as $entry) {
            if(array_key_exists($entry, $params)) {
                $params = $params[$entry];
            }else {
                return $default;
            }
        }

        return isset($params) ? $params : $default;
    }
1122491
protected function translate($key, array $arguments = null)
    {
        $ret = LocalizationUtility::translate($key, $this->extensionName, $arguments);

        // Not translated handling
        if ($ret === null) {
            $ret = '[-' . $key . '-]';
        }

        return $ret;
    }
35334
public static function getString(
        array $params,
        string $key,
        $default = null
    ) {
        if (self::has($params, $key)) {
            return (string)$params[$key];
        }

        return $default;
    }
1262858
public function translate(string $key) {
        if (!$this->supports($key)) {
            return $key;
        }

        return $this->translations[$key];
    }
966547
public static function get(
        array $options,
        string $key,
        $default = null
    ) {
        if (array_key_exists($key, $options)) {
            return $options[$key];
        }

        return $default;
    }
1043935
public function getArgument($key, $default = null)
    {
        return array_key_exists($key, $this->arguments) ? $this->arguments[$key] : $default;
    }
390673
public function get($key, $default = null)
    {
        $values = parent::get(static::normalizeKey($key), $default);

        if (is_array($values) && count($values) === 1) {
            return $values[0];
        }
        return $values;
    }
718822
public static function get($key, $default = null)
    {
        if (is_null($key)) {
            return $default;
        }

        return (isset($_GET[$key]) ? $_GET[$key] : $default);
    }
863565
public static function get($key, $default = null, $locale = null)
    {
        return self::all($locale)->get($key, $default);
    }
142366
public static function get($key, $params = array()) {
        if (static::$message === NULL) {
            static::setLanguage('en');
        }

        $rs = isset(static::$message[$key]) ? static::$message[$key] : $key;

        $names = array_keys($params);
        $names = array_map(array('\\PhalApi\\Translator', 'formatVar'), $names);

        return str_replace($names, array_values($params), $rs);
    }
1188638
public function getCustomParam($key, $default = null)
    {
        return array_key_exists($key, $this->customParams) ? $this->customParams[$key] : $default;
    }