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
How can I achieve the following with \Gettext\Generators\Po::toFile ?
\Gettext\Generators\Po::toFile
'--no-location’ Do not write ‘#: filename:line’ lines.
I want to remove strings locations from code files in generated PO file. Thanks.
Ref: https://www.gnu.org/software/gettext/manual/html_node/msgattrib-Invocation.html
The text was updated successfully, but these errors were encountered:
Currently this is not supported, but it's easy to implement. Meanwhile, you can remote the references before generate the PO file:
foreach ($translations as $translation) { $translation->deleteReferences(); } $translations->toPoFile('locales.po');
Sorry, something went wrong.
I've added this option to po generator (ref: 97d7b7d):
$translations->toPoFile('locales.po', ['noLocation' => true]);
It will be released in the new version.
No branches or pull requests
How can I achieve the following with
\Gettext\Generators\Po::toFile
?I want to remove strings locations from code files in generated PO file.
Thanks.
Ref: https://www.gnu.org/software/gettext/manual/html_node/msgattrib-Invocation.html
The text was updated successfully, but these errors were encountered: