src/mg/Ding/MessageSource/Impl/MessageSourceImpl.php
public function getMessage($bundle, $message, array $arguments, $locale = 'default')
    {
        if (!isset($this->_basenames[$bundle][$locale])) {
            $resource = $this->_resourceLoader->getResource(
                'includepath://' .
                implode('_', array($bundle, $locale)) . '.properties'
            );
            $contents = stream_get_contents($resource->getStream());
            $contents = parse_ini_string($contents);
            $this->_basenames[$bundle][$locale] = $contents;
        }
        if (isset($this->_basenames[$bundle][$locale][$message])) {
            $message = $this->_basenames[$bundle][$locale][$message];
            $i = 1;
            foreach ($arguments as $argument) {
                $message = str_replace('{' . $i . '}', $argument, $message);
                $i++;
            }
        } else {
            return false;
        }
        return $message;
    }
public function getMessage($bundle, $message, array $arguments, $locale = 'default')
    {
        if (!isset($this->_basenames[$bundle][$locale])) {
            $resource = $this->_resourceLoader->getResource(
                'includepath://' .
                implode('_', array($bundle, $locale)) . '.properties'
            );
            $contents = stream_get_contents($resource->getStream());
            $contents = parse_ini_string($contents);
            $this->_basenames[$bundle][$locale] = $contents;
        }
        if (isset($this->_basenames[$bundle][$locale][$message])) {
            $message = $this->_basenames[$bundle][$locale][$message];
            $i = 1;
            foreach ($arguments as $argument) {
                $message = str_replace('{' . $i . '}', $argument, $message);
                $i++;
            }
        } else {
            return false;
        }
        return $message;
    }
(non-PHPdoc)
@see Ding\MessageSource.IMessageSource::getMessage()