code/libraries/joomlatools/library/translator/abstract.php
protected function _replaceParameters($string, array $parameters = array())
    {
        //Adds curly braces around keys to make strtr work in replaceParameters method
        $replace_keys = function ($key) {
            return  '{'.$key.'}';
        };

        $keys       = array_map($replace_keys, array_keys($parameters));
        $parameters = array_combine($keys, $parameters);

        return strtr($string, $parameters);
    }
protected function _replaceParameters($string, array $parameters = array())
    {
        //Adds curly braces around keys to make strtr work in replaceParameters method
        $replace_keys = function ($key) {
            return  '{'.$key.'}';
        };

        $keys       = array_map($replace_keys, array_keys($parameters));
        $parameters = array_combine($keys, $parameters);

        return strtr($string, $parameters);
    }
protected function _replaceParameters ( $ string , array $ parameters = array ( ) ) { //Adds curly braces around keys to make strtr work in replaceParameters method $ replace_keys = function ( $ key ) { return '{' . $ key . '}' ; } ; $ keys = array_map ( $ replace_keys , array_keys ( $ parameters ) ) ; $ parameters = array_combine ( $ keys , $ parameters ) ; return strtr ( $ string , $ parameters ) ; }
Handles parameter replacements

@param string $string String
@param array  $parameters An array of parameters
@return string String after replacing the parameters
Handles parameter replacements