We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
We're in the process of translating a prebuilt wordpress site that uses _e to echo translations.
_e
Currently we're using your extractor, by pushing a custom function to the extractor config using
Gettext\Extractors\PhpCode::$options['functions']['_e'] = 'gettext';
Is there an official method/api to do this? Or would this be considered as acceptable?
Thanks
The text was updated successfully, but these errors were encountered:
Hi. This is the only way in version v3.x In v4 you can pass the options as an argument:
$translations = Translations::fromPhpCodeFile('my-file.php', [ 'functions' => [ '_e' => 'gettext' ] ]);
Sorry, something went wrong.
@OwenMelbz You might be also interested in https://github.com/wp-cli/i18n-command and how we did that there.
No branches or pull requests
Hi,
We're in the process of translating a prebuilt wordpress site that uses
_e
to echo translations.Currently we're using your extractor, by pushing a custom function to the extractor config using
Is there an official method/api to do this? Or would this be considered as acceptable?
Thanks
The text was updated successfully, but these errors were encountered: