I'm using poEdit with the xgettext-Parser to parse my PHP source files and detect all translatable strings. By default, xgettext only recognizes strings in function calls like translate("foo")
,
if "translate" is specified as a keyword for xgettext.
Now I have some translatable strings in PHP-arrays, like
array(
'label' => 'foo',
);
or DocBlocks like
/**
* @FormElement(type="text", options={
* "label"="Foobar",
* })
*/
How can I manage to recognize these translatable strings "foo" or "Foobar" with xgettext?
Thanks in advance!