Skip to content

Commit

Permalink
Merge pull request #348 from wp-cli/fix/344
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy authored Dec 9, 2022
2 parents c1beab8 + e0b374a commit 22f7e6a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions features/makepot.feature
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,10 @@ Feature: Generate a POT file of a WordPress project
__unsupported_func( '__unsupported_func', 'foo-plugin' );
__( 'wrong-domain', 'wrong-domain' );
// See https://github.com/wp-cli/i18n-command/issues/344
\__( '\__', 'foo-plugin' );
\_e( '\_e', 'foo-plugin' );
"""

When I run `wp i18n make-pot foo-plugin`
Expand Down Expand Up @@ -539,6 +543,14 @@ Feature: Generate a POT file of a WordPress project
"""
msgid "wrong-domain"
"""
And the foo-plugin/foo-plugin.pot file should contain:
"""
msgid "\\__"
"""
And the foo-plugin/foo-plugin.pot file should contain:
"""
msgid "\\_e"
"""

Scenario: Extract translator comments
Given I run `echo "\t"`
Expand Down

0 comments on commit 22f7e6a

Please sign in to comment.