Core/Framework/Amvc/App/Language.php
public function get(string $key)
    { //
        $result = $this->strings[$key] ?? $key;

        // Is there a redirection to another string?
        if (is_string($result) && substr($result, 0, 2) == '@@') {
            $result = $this->get(substr($result, 2));
        }

        if ($result == $key && isset($this->fallback_language)) {
            $result = $this->fallback_language->get($key);
        }

        return $result;
    }
public function get(string $key)
    { //
        $result = $this->strings[$key] ?? $key;

        // Is there a redirection to another string?
        if (is_string($result) && substr($result, 0, 2) == '@@') {
            $result = $this->get(substr($result, 2));
        }

        if ($result == $key && isset($this->fallback_language)) {
            $result = $this->fallback_language->get($key);
        }

        return $result;
    }
public function get ( string $ key ) { // $ result = $ this -> strings [ $ key ] ?? $ key ; // Is there a redirection to another string? if ( is_string ( $ result ) && substr ( $ result , 0 , 2 ) == '@@' ) { $ result = $ this -> get ( substr ( $ result , 2 ) ) ; } if ( $ result == $ key && isset ( $ this -> fallback_language ) ) { $ result = $ this -> fallback_language -> get ( $ key ) ; } return $ result ; }
Returns the string of string of a specific language key or an array of strings flagge as preserved

You can create linked strings by setting '@@your.linked.string' as result in your language file.

Will query a set fallback language object when the requested key is not set in apps language strings.
This way it is possible to create a chain of fallback request from one app to another.

Important: Do not create circle requests!

@param string $key

@return string|array
Returns the string of string of a specific language key or an array of strings flagge as preserved