-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
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
Translator comments are not extracted if they are not directly followed by a gettext function #4
Comments
I'll try to investigate this a bit. Perhaps this needs to be reported upstream? |
Here's the gettext spec, for reference: https://www.gnu.org/savannah-checkouts/gnu/gettext/manual/html_node/xgettext-Invocation.html#Operation-mode It mentions a case like /* translators: this comment is ignored */
__(
'foo',
'test-plugin'
); but not /* translators: TRANSLATORS!! */
$foo = __( 'foo', 'test-plugin' ); |
Okay so |
This specific case is now addressed. php-gettext/Gettext#166 now aims to improve support for multi-line comments and comments on the same line as the function. I'll continue to address this in #23. |
Example plugin file:
Running the makpot command creates this POT file:
Note the missing comment for "foo".
The text was updated successfully, but these errors were encountered: