Skip to content

Commit 22f7e6a

Browse files
authored
Merge pull request #348 from wp-cli/fix/344
2 parents c1beab8 + e0b374a commit 22f7e6a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

features/makepot.feature

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,10 @@ Feature: Generate a POT file of a WordPress project
378378
379379
__unsupported_func( '__unsupported_func', 'foo-plugin' );
380380
__( 'wrong-domain', 'wrong-domain' );
381+
382+
// See https://github.com/wp-cli/i18n-command/issues/344
383+
\__( '\__', 'foo-plugin' );
384+
\_e( '\_e', 'foo-plugin' );
381385
"""
382386

383387
When I run `wp i18n make-pot foo-plugin`
@@ -539,6 +543,14 @@ Feature: Generate a POT file of a WordPress project
539543
"""
540544
msgid "wrong-domain"
541545
"""
546+
And the foo-plugin/foo-plugin.pot file should contain:
547+
"""
548+
msgid "\\__"
549+
"""
550+
And the foo-plugin/foo-plugin.pot file should contain:
551+
"""
552+
msgid "\\_e"
553+
"""
542554

543555
Scenario: Extract translator comments
544556
Given I run `echo "\t"`

0 commit comments

Comments
 (0)