Hello,
I'm trying to use the \Phalcon\Translate\Adapter\NativeArray
with placeholders like in this simple example:
$t = new \Phalcon\Translate\Adapter\NativeArray(['content' => ['test' => 'Hello #name#!']]);
var_export($t->_('test', ['name' => 'John Doe']));
But the translated string is Hello #name#!
and not as expected Hello John Doe!
.
According to the abstract Adapter all strings sourrounded with #
should be repalceable.
What am I doing wrong?