-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
Add support for comments in PhpCode extractor #100
Comments
I'm agree. I knew there were comments in gettext but I didn't know that they had to be placed there. |
From <?php
echo __(
/* i18n: Test comment 1 */
'test 1'
);
echo __(
// i18n: Test comment 2
'test 2'
);
echo __(
# i18n: Test comment 3
'test 3'
);
#. i18n: Test comment 1
#: test.php:5
msgid "test 1"
msgstr ""
#. i18n: Test comment 2
#: test.php:10
msgid "test 2"
msgstr ""
#. i18n: Test comment 3
#: test.php:15
msgid "test 3"
msgstr "" |
nice! |
I guess this can be closed |
👍 |
This was referenced Dec 14, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using xgettext to extract translatable strings from PHP files we have the option to extract comments (the
-add-comments
option):For instance, let's say we have this
test.php
fileIf you run this command:
Here's the output:
What about adding support to extract such comments?
The text was updated successfully, but these errors were encountered: