File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -378,6 +378,10 @@ Feature: Generate a POT file of a WordPress project
378
378
379
379
__unsupported_func( '__unsupported_func', 'foo-plugin' );
380
380
__( 'wrong-domain', 'wrong-domain' );
381
+
382
+ // See https://github.com/wp-cli/i18n-command/issues/344
383
+ \__( '\__', 'foo-plugin' );
384
+ \_e( '\_e', 'foo-plugin' );
381
385
"""
382
386
383
387
When I run `wp i18n make-pot foo-plugin`
@@ -539,6 +543,14 @@ Feature: Generate a POT file of a WordPress project
539
543
"""
540
544
msgid "wrong-domain"
541
545
"""
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
+ """
542
554
543
555
Scenario : Extract translator comments
544
556
Given I run `echo "\t " `
You can’t perform that action at this time.
0 commit comments