Skip to content

Comment extraction not working in certain cases #8

@lbarbula

Description

@lbarbula

Trying to leverage the comment extraction functionality of the PhpScanner class. I am having a hard time getting anything except in the simplest of cases.
Working:

//Translators: foo
gettext('bar');
//Translators: bar
echo gettext('foo');

Not Working:

//Translators: foo
$foo = gettext('foo');
//Translators: bar
$bar = sprintf(_('bar %s', 'foo'));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions