I am building a new application that will need the support of multilanguaging so I was wondering how to use the Phalcon\Translation\Adapter\Gettext Class in a normal app using Volt. My initial idea was to just register it:
    $di->set('message', function() {
        return new Phalcon\Translate\Adapter\Gettext(array(
            'category'      => LC_ALL,
            'locale'        => 'en_US',
            'defaultDomain' => 'messages',
            'directory'     => __DIR__ . '../locale/'
        ));
    });
But this approach raises two Problems:
First: I get a warning every time i use {{ message.query('Hello') }}: PHP Warning:  func_get_arg():  Argument 2 not passed to function in .....
Second: In previous applications without phalcon i used xgettext to find all strings. Is there a similar way possible with the phalcon implementation?