Skip to content

Commit 66b61e0

Browse files
authored
Merge pull request #86 from wp-cli/71-refresh-labels
Refresh scaffolded taxonomy labels
2 parents aeb539c + 5e55278 commit 66b61e0

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

features/scaffold-taxonomy.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Feature: Scaffold a custom taxonomy
66
When I run `wp scaffold taxonomy fungus --raw`
77
Then STDOUT should contain:
88
"""
9-
__( 'Popular fungi'
9+
__( 'Popular Fungi'
1010
"""
1111

1212
Scenario: Extended scaffolded taxonomy includes term_updated_messages

templates/taxonomy.mustache

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,26 @@
1515
'labels' => array(
1616
'name' => __( '{{label_plural_ucfirst}}', '{{textdomain}}' ),
1717
'singular_name' => _x( '{{label_ucfirst}}', 'taxonomy general name', '{{textdomain}}' ),
18-
'search_items' => __( 'Search {{label_plural}}', '{{textdomain}}' ),
19-
'popular_items' => __( 'Popular {{label_plural}}', '{{textdomain}}' ),
20-
'all_items' => __( 'All {{label_plural}}', '{{textdomain}}' ),
21-
'parent_item' => __( 'Parent {{label}}', '{{textdomain}}' ),
22-
'parent_item_colon' => __( 'Parent {{label}}:', '{{textdomain}}' ),
23-
'edit_item' => __( 'Edit {{label}}', '{{textdomain}}' ),
24-
'update_item' => __( 'Update {{label}}', '{{textdomain}}' ),
25-
'add_new_item' => __( 'New {{label}}', '{{textdomain}}' ),
26-
'new_item_name' => __( 'New {{label}}', '{{textdomain}}' ),
18+
'search_items' => __( 'Search {{label_plural_ucfirst}}', '{{textdomain}}' ),
19+
'popular_items' => __( 'Popular {{label_plural_ucfirst}}', '{{textdomain}}' ),
20+
'all_items' => __( 'All {{label_plural_ucfirst}}', '{{textdomain}}' ),
21+
'parent_item' => __( 'Parent {{label_ucfirst}}', '{{textdomain}}' ),
22+
'parent_item_colon' => __( 'Parent {{label_ucfirst}}:', '{{textdomain}}' ),
23+
'edit_item' => __( 'Edit {{label_ucfirst}}', '{{textdomain}}' ),
24+
'update_item' => __( 'Update {{label_ucfirst}}', '{{textdomain}}' ),
25+
'view_item' => __( 'View {{label_ucfirst}}', '{{textdomain}}' ),
26+
'add_new_item' => __( 'New {{label_ucfirst}}', '{{textdomain}}' ),
27+
'new_item_name' => __( 'New {{label_ucfirst}}', '{{textdomain}}' ),
2728
'separate_items_with_commas' => __( 'Separate {{label_plural}} with commas', '{{textdomain}}' ),
2829
'add_or_remove_items' => __( 'Add or remove {{label_plural}}', '{{textdomain}}' ),
2930
'choose_from_most_used' => __( 'Choose from the most used {{label_plural}}', '{{textdomain}}' ),
3031
'not_found' => __( 'No {{label_plural}} found.', '{{textdomain}}' ),
32+
'no_terms' => __( 'No {{label_plural}}', '{{textdomain}}' ),
3133
'menu_name' => __( '{{label_plural_ucfirst}}', '{{textdomain}}' ),
34+
'items_list_navigation' => __( '{{label_plural_ucfirst}} list navigation', '{{textdomain}}' ),
35+
'items_list' => __( '{{label_plural_ucfirst}} list', '{{textdomain}}' ),
36+
'most_used' => _x( 'Most Used', '{{slug}}', '{{textdomain}}' ),
37+
'back_to_items' => __( '← Back to {{label_plural_ucfirst}}', '{{textdomain}}' ),
3238
),
3339
'show_in_rest' => true,
3440
'rest_base' => '{{slug}}',

0 commit comments

Comments
 (0)