You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run `wp i18n make-pot wp-content/plugins/hello-world wp-content/plugins/hello-world/languages/hello-world.pot --headers='{"Report-Msgid-Bugs-To":"https://github.com/hello-world/hello-world/"}'`
167
-
And the wp-content/plugins/hello-world/languages/hello-world.pot file should contain:
161
+
And I run `wp i18n make-pot wp-content/plugins/hello-world wp-content/plugins/hello-world/languages/hello-world.pot --headers='{"Report-Msgid-Bugs-To":"https://github.com/hello-world/hello-world/"}'`
162
+
Then the wp-content/plugins/hello-world/languages/hello-world.pot file should contain:
@@ -175,26 +170,23 @@ Feature: Generate a POT file of a WordPress project
175
170
176
171
Scenario: Sets custom header
177
172
When I run `wp scaffold plugin hello-world`
178
-
179
-
When I run `wp i18n make-pot wp-content/plugins/hello-world wp-content/plugins/hello-world/languages/hello-world.pot --headers='{"X-Poedit-Basepath":".."}'`
180
-
And the wp-content/plugins/hello-world/languages/hello-world.pot file should contain:
173
+
And I run `wp i18n make-pot wp-content/plugins/hello-world wp-content/plugins/hello-world/languages/hello-world.pot --headers='{"X-Poedit-Basepath":".."}'`
174
+
Then the wp-content/plugins/hello-world/languages/hello-world.pot file should contain:
181
175
"""
182
176
"X-Poedit-Basepath: ..\n"
183
177
"""
184
178
185
179
Scenario: Sets a placeholder PO-Revision-Date header
186
180
When I run `wp scaffold plugin hello-world`
187
-
188
-
When I run `wp i18n make-pot wp-content/plugins/hello-world wp-content/plugins/hello-world/languages/hello-world.pot`
181
+
And I run `wp i18n make-pot wp-content/plugins/hello-world wp-content/plugins/hello-world/languages/hello-world.pot`
189
182
Then the wp-content/plugins/hello-world/languages/hello-world.pot file should contain:
190
183
"""
191
184
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
192
185
"""
193
186
194
187
Scenario: Sets the last translator and the language team
195
188
When I run `wp scaffold plugin hello-world`
196
-
197
-
When I run `wp i18n make-pot wp-content/plugins/hello-world wp-content/plugins/hello-world/languages/hello-world.pot`
189
+
And I run `wp i18n make-pot wp-content/plugins/hello-world wp-content/plugins/hello-world/languages/hello-world.pot`
198
190
Then the wp-content/plugins/hello-world/languages/hello-world.pot file should contain:
199
191
"""
200
192
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
@@ -203,8 +195,7 @@ Feature: Generate a POT file of a WordPress project
203
195
204
196
Scenario: Sets the generator header
205
197
When I run `wp scaffold plugin hello-world`
206
-
207
-
When I run `wp i18n make-pot wp-content/plugins/hello-world wp-content/plugins/hello-world/languages/hello-world.pot`
198
+
And I run `wp i18n make-pot wp-content/plugins/hello-world wp-content/plugins/hello-world/languages/hello-world.pot`
208
199
Then the contents of the wp-content/plugins/hello-world/languages/hello-world.pot file should match /X-Generator:\s/
209
200
210
201
Scenario: Ignores any other text domain
@@ -589,7 +580,7 @@ Feature: Generate a POT file of a WordPress project
589
580
Scenario: Extract translator comments
590
581
Given I run `echo "\t"`
591
582
And save STDOUT as {TAB}
592
-
Givenan empty foo-plugin directory
583
+
Andan empty foo-plugin directory
593
584
And a foo-plugin/foo-plugin.php file:
594
585
"""
595
586
<?php
@@ -1018,7 +1009,7 @@ Feature: Generate a POT file of a WordPress project
1018
1009
"""
1019
1010
Extracted 4 strings
1020
1011
"""
1021
-
Thenthe foo-plugin.pot file should not contain:
1012
+
Andthe foo-plugin.pot file should not contain:
1022
1013
"""
1023
1014
I am being ignored
1024
1015
"""
@@ -1057,7 +1048,7 @@ Feature: Generate a POT file of a WordPress project
1057
1048
<?php
1058
1049
__( 'I am being ignored', 'foo-plugin' );
1059
1050
"""
1060
-
And a foo-plugin/bar/ignored.js file:
1051
+
And a foo-plugin/bar/ignored.js file:
1061
1052
"""
1062
1053
__( 'I am being ignored', 'foo-plugin' );
1063
1054
"""
@@ -1554,7 +1545,7 @@ Feature: Generate a POT file of a WordPress project
1554
1545
1555
1546
When I run `wp i18n make-pot wp-content/plugins/hello-world wp-content/plugins/hello-world/languages/hello-world.pot --merge=foo-plugin/foo-plugin.pot`
1556
1547
Then the wp-content/plugins/hello-world/languages/hello-world.pot file should exist
1557
-
ThenSTDOUT should be:
1548
+
AndSTDOUT should be:
1558
1549
"""
1559
1550
Plugin file detected.
1560
1551
Success: POT file successfully generated.
@@ -1625,7 +1616,7 @@ Feature: Generate a POT file of a WordPress project
1625
1616
1626
1617
When I run `wp i18n make-pot wp-content/plugins/hello-world wp-content/plugins/hello-world/languages/hello-world.pot --merge=foo-plugin/foo-plugin.pot,foo-plugin/bar-plugin.pot`
1627
1618
Then the wp-content/plugins/hello-world/languages/hello-world.pot file should exist
1628
-
ThenSTDOUT should be:
1619
+
AndSTDOUT should be:
1629
1620
"""
1630
1621
Plugin file detected.
1631
1622
Success: POT file successfully generated.
@@ -1734,7 +1725,7 @@ Feature: Generate a POT file of a WordPress project
1734
1725
1735
1726
When I run `wp i18n make-pot wp-content/plugins/hello-world wp-content/plugins/hello-world/languages/hello-world.pot --merge=foo-plugin/foo-plugin.pot`
1736
1727
Then the wp-content/plugins/hello-world/languages/hello-world.pot file should exist
1737
-
ThenSTDOUT should be:
1728
+
AndSTDOUT should be:
1738
1729
"""
1739
1730
Plugin file detected.
1740
1731
Success: POT file successfully generated.
@@ -2324,7 +2315,7 @@ Feature: Generate a POT file of a WordPress project
2324
2315
"""
2325
2316
msgid "bar"
2326
2317
"""
2327
-
And the foo-plugin.pot file should not contain:
2318
+
And the foo-plugin.pot file should not contain:
2328
2319
"""
2329
2320
msgid "Hello JSX"
2330
2321
"""
@@ -2462,7 +2453,7 @@ Feature: Generate a POT file of a WordPress project
2462
2453
"""
2463
2454
msgid "Hello World from PHP"
2464
2455
"""
2465
-
And the foo-plugin.pot file should contain:
2456
+
And the foo-plugin.pot file should contain:
2466
2457
"""
2467
2458
msgid "Hello World from JavaScript"
2468
2459
"""
@@ -3680,7 +3671,6 @@ Feature: Generate a POT file of a WordPress project
3680
3671
msgid "Black"
3681
3672
"""
3682
3673
3683
-
3684
3674
Scenario: Extract strings from the top-level section of theme.json files
0 commit comments