i18n: Remove the babel makepot & pot-to-php scripts (https://github.com/woocommerce/woocommerce-blocks/pull/385)

* Remove the babel makepot & pot-to-php scripts

These aren’t needed because WP.org will now pull from JS files for glotpress translations.

* Remove pot file from gitignore
This commit is contained in:
Kelly Dwan 2019-01-31 15:59:13 -05:00 committed by GitHub
parent 5f4b6c74db
commit c41ceff9fc
4 changed files with 1 additions and 413 deletions

View File

@ -14,12 +14,6 @@
"source": "@wordpress/element",
"isDefault": false
}
],
[
"@wordpress/babel-plugin-makepot",
{
"output": "languages/woo-gutenberg-products-block.pot"
}
]
]
}

View File

@ -47,4 +47,3 @@ tests/cli/vendor
# Built files
/build/
languages/woo-gutenberg-products-block.pot

View File

@ -1,403 +0,0 @@
<?php
/* THIS IS A GENERATED FILE. DO NOT EDIT DIRECTLY. */
$generated_i18n_strings = array(
// Reference: assets/js/blocks/featured-product/block.js:124
__( 'Product', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/featured-product/block.js:135
__( 'Content', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/featured-product/block.js:137
__( 'Show description', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/featured-product/block.js:142
__( 'Show price', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/featured-product/block.js:148
__( 'Overlay', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/featured-product/block.js:153
__( 'Overlay Color', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/featured-product/block.js:158
__( 'Background Opacity', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/featured-product/block.js:175
__( 'Showing Featured Product block preview.', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/featured-product/block.js:188
__( 'Visually highlight a product and encourage prompt action', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/featured-product/block.js:201
// Reference: assets/js/blocks/handpicked-products/block.js:151
// Reference: assets/js/blocks/product-category/block.js:173
// Reference: assets/js/legacy/products-block.jsx:325
__( 'Done', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/featured-product/block.js:251
// Reference: assets/js/blocks/handpicked-products/block.js:182
// Reference: assets/js/blocks/product-category/block.js:215
// Reference: assets/js/legacy/products-block.jsx:828
__( 'Edit', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/featured-product/block.js:268
__( 'Edit media', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/featured-product/block.js:315
// Reference: assets/js/blocks/featured-product/index.js:17
__( 'Featured Product', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/featured-product/block.js:320
__( 'No product is selected.', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/featured-product/index.js:20
// Reference: assets/js/blocks/handpicked-products/index.js:20
// Reference: assets/js/blocks/product-best-sellers/index.js:20
// Reference: assets/js/blocks/product-category/index.js:23
// Reference: assets/js/blocks/product-new/index.js:20
// Reference: assets/js/blocks/product-on-sale/index.js:20
// Reference: assets/js/blocks/product-top-rated/index.js:20
__( 'WooCommerce', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/featured-product/index.js:21
__( 'Visually highlight a product and encourage prompt action.', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/featured-product/index.js:88
__( 'Shop now', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/handpicked-products/block.js:105
// Reference: assets/js/components/product-control/index.js:44
// Reference: assets/js/components/products-control/index.js:43
// Reference: assets/js/legacy/products-block.jsx:904
__( 'Products', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/handpicked-products/block.js:125
__( 'Showing Hand-picked Products block preview.', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/handpicked-products/block.js:138
__( 'Display a selection of hand-picked products in a grid', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/handpicked-products/block.js:201
// Reference: assets/js/blocks/handpicked-products/index.js:17
__( 'Hand-picked Products', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/handpicked-products/block.js:209
__( 'No products are selected.', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/handpicked-products/block.js:84
// Reference: assets/js/blocks/product-best-sellers/block.js:78
// Reference: assets/js/blocks/product-category/block.js:107
// Reference: assets/js/blocks/product-new/block.js:77
// Reference: assets/js/blocks/product-on-sale/block.js:82
// Reference: assets/js/blocks/product-top-rated/block.js:77
// Reference: assets/js/legacy/products-block.jsx:766
__( 'Layout', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/handpicked-products/block.js:88
// Reference: assets/js/blocks/product-best-sellers/block.js:82
// Reference: assets/js/blocks/product-category/block.js:111
// Reference: assets/js/blocks/product-new/block.js:81
// Reference: assets/js/blocks/product-on-sale/block.js:86
// Reference: assets/js/blocks/product-top-rated/block.js:81
// Reference: assets/js/legacy/products-block.jsx:703
__( 'Columns', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/handpicked-products/block.js:96
// Reference: assets/js/blocks/product-category/block.js:126
// Reference: assets/js/blocks/product-on-sale/block.js:101
__( 'Order By', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/handpicked-products/index.js:21
__( 'Display a selection of hand-picked products in a grid.', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/product-best-sellers/block.js:148
// Reference: assets/js/blocks/product-best-sellers/index.js:17
__( 'Best Selling Products', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/product-best-sellers/block.js:156
// Reference: assets/js/blocks/product-new/block.js:149
// Reference: assets/js/blocks/product-on-sale/block.js:163
// Reference: assets/js/blocks/product-top-rated/block.js:149
__( 'No products found.', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/product-best-sellers/block.js:89
// Reference: assets/js/blocks/product-category/block.js:118
// Reference: assets/js/blocks/product-new/block.js:88
// Reference: assets/js/blocks/product-on-sale/block.js:93
// Reference: assets/js/blocks/product-top-rated/block.js:88
// Reference: assets/js/legacy/products-block.jsx:754
__( 'Rows', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/product-best-sellers/block.js:97
// Reference: assets/js/blocks/product-new/block.js:96
// Reference: assets/js/blocks/product-on-sale/block.js:110
// Reference: assets/js/blocks/product-top-rated/block.js:96
__( 'Filter by Product Category', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/product-best-sellers/index.js:21
__( 'Display a grid of your all-time best selling products.', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/product-category/block.js:143
__( 'Showing Products by Category block preview.', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/product-category/block.js:156
__( 'Display a grid of products from your selected categories', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/product-category/block.js:197
__( 'Select at least one category to display its products.', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/product-category/block.js:201
_n_noop( 'No products in this category.', 'No products in these categories.', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/product-category/block.js:234
// Reference: assets/js/blocks/product-category/index.js:20
__( 'Products by Category', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/product-category/block.js:91
__( 'Product Category', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/product-category/index.js:24
__( 'Display a grid of products from your selected categories.', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/product-new/block.js:144
// Reference: assets/js/blocks/product-new/index.js:17
__( 'Newest Products', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/product-new/index.js:21
__( 'Display a grid of your newest products.', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/product-on-sale/block.js:158
// Reference: assets/js/blocks/product-on-sale/index.js:17
__( 'On Sale Products', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/product-on-sale/index.js:21
__( 'Display a grid of on sale products.', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/product-top-rated/block.js:144
// Reference: assets/js/blocks/product-top-rated/index.js:17
__( 'Top Rated Products', 'woo-gutenberg-products-block' ),
// Reference: assets/js/blocks/product-top-rated/index.js:21
__( 'Display a grid of your top rated products.', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/product-category-control/index.js:101
__( 'Category search results updated.', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/product-category-control/index.js:123
__( 'Display products matching', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/product-category-control/index.js:124
__( 'Pick at least two categories to use this setting.', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/product-category-control/index.js:129
__( 'Any selected categories', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/product-category-control/index.js:133
__( 'All selected categories', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/product-category-control/index.js:63
_n_noop( '%s, has %d product', '%s, has %d products', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/product-category-control/index.js:81
__( 'Clear all product categories', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/product-category-control/index.js:82
__( 'Product Categories', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/product-category-control/index.js:83
__( 'Your store doesn\'t have any product categories.', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/product-category-control/index.js:87
__( 'Search for product categories', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/product-category-control/index.js:93
_n_noop( '%d category selected', '%d categories selected', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/product-control/index.js:45
// Reference: assets/js/components/products-control/index.js:44
__( 'Your store doesn\'t have any products.', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/product-control/index.js:49
__( 'Search for a product to display', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/product-control/index.js:53
// Reference: assets/js/components/products-control/index.js:62
__( 'Product search results updated.', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/product-orderby-control/index.js:14
__( 'Order products by', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/product-orderby-control/index.js:18
// Reference: assets/js/legacy/products-block.jsx:720
__( 'Newness - newest first', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/product-orderby-control/index.js:22
// Reference: assets/js/legacy/products-block.jsx:724
__( 'Price - low to high', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/product-orderby-control/index.js:26
// Reference: assets/js/legacy/products-block.jsx:728
__( 'Price - high to low', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/product-orderby-control/index.js:30
// Reference: assets/js/legacy/products-block.jsx:732
__( 'Rating - highest first', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/product-orderby-control/index.js:34
// Reference: assets/js/legacy/products-block.jsx:736
__( 'Sales - most first', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/product-orderby-control/index.js:38
// Reference: assets/js/legacy/products-block.jsx:740
__( 'Title - alphabetical', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/product-orderby-control/index.js:42
__( 'Menu Order', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/product-preview/index.js:31
// Reference: assets/js/legacy/products-block.jsx:365
__( 'Add to cart', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/products-control/index.js:42
__( 'Clear all products', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/products-control/index.js:48
// Reference: assets/js/legacy/views/specific-select.jsx:159
__( 'Search for products to display', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/products-control/index.js:54
_n_noop( '%d product selected', '%d products selected', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/search-list-control/index.js:186
__( 'Clear all', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/search-list-control/index.js:27
__( 'Clear all selected items', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/search-list-control/index.js:28
__( 'Results', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/search-list-control/index.js:29
__( 'No items found.', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/search-list-control/index.js:30
__( 'No results for %s', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/search-list-control/index.js:31
__( 'Search for items', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/search-list-control/index.js:33
_n_noop( '%d item selected', '%d items selected', 'woo-gutenberg-products-block' ),
// Reference: assets/js/components/search-list-control/index.js:34
__( 'Search results updated.', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/products-block.jsx:194
__( 'Choose which products you\'d like to display:', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/products-block.jsx:24
__( 'Individual products', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/products-block.jsx:25
__( 'Hand-pick which products to display', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/products-block.jsx:29
__( 'Product category', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/products-block.jsx:297
__( 'Display different products', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/products-block.jsx:30
__( 'Display products from a specific category or multiple categories', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/products-block.jsx:304
__( 'Displaying ', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/products-block.jsx:317
__( 'Please select which products you\'d like to display', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/products-block.jsx:318
__( 'Please search for and select products to display', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/products-block.jsx:319
__( 'Please select at least one category to display', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/products-block.jsx:320
__( 'Please select an attribute', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/products-block.jsx:34
__( 'Filter products', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/products-block.jsx:35
__( 'E.g. featured products, or products with a specific attribute like size or color', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/products-block.jsx:40
__( 'Featured products', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/products-block.jsx:45
__( 'On sale', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/products-block.jsx:485
// Reference: assets/js/legacy/views/attribute-select.jsx:420
// Reference: assets/js/legacy/views/category-select.jsx:199
__( 'Loading', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/products-block.jsx:489
// Reference: assets/js/legacy/views/specific-select.jsx:261
__( 'No products found', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/products-block.jsx:50
__( 'Best sellers', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/products-block.jsx:56
__( 'Top rated', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/products-block.jsx:62
__( 'Attribute', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/products-block.jsx:637
__( 'Product categories: ', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/products-block.jsx:651
__( 'Attribute: ', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/products-block.jsx:655
__( 'Terms: ', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/products-block.jsx:67
__( 'All products', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/products-block.jsx:68
__( 'Display all products ordered chronologically, alphabetically, by price, by rating or by sales', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/products-block.jsx:716
__( 'Order Products By', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/products-block.jsx:836
__( 'Current Source', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/products-block.jsx:907
__( 'Display a grid of products from a variety of sources.', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/views/attribute-select.jsx:154
__( 'Search for attributes', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/views/attribute-select.jsx:237
__( 'No attributes found', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/views/attribute-select.jsx:424
__( 'No terms found', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/views/category-select.jsx:120
__( 'Search for categories', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/views/category-select.jsx:203
__( 'No categories found', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/views/specific-select.jsx:316
__( 'Products list', 'woo-gutenberg-products-block' ),
// Reference: assets/js/legacy/views/specific-select.jsx:488
__( 'Selected products', 'woo-gutenberg-products-block' )
);
/* THIS IS THE END OF THE GENERATED FILE */

View File

@ -10,9 +10,8 @@
"license": "GPL-3.0+",
"main": "Gruntfile.js",
"scripts": {
"build": "cross-env BABEL_ENV=default NODE_ENV=production webpack && npm run i18n:php",
"build": "cross-env BABEL_ENV=default NODE_ENV=production webpack",
"start": "cross-env BABEL_ENV=default webpack --watch",
"i18n:php": "pot-to-php ./languages/woo-gutenberg-products-block.pot ./languages/woo-gutenberg-products-block.php woo-gutenberg-products-block",
"lint": "npm run lint:css && npm run lint:js",
"lint:css": "stylelint assets/css",
"lint:js": "eslint assets/js --ext=js,jsx",
@ -24,7 +23,6 @@
"devDependencies": {
"@babel/core": "7.2.2",
"@wordpress/babel-plugin-import-jsx-pragma": "1.1.3",
"@wordpress/babel-plugin-makepot": "2.1.3",
"@wordpress/babel-preset-default": "3.0.2",
"@wordpress/blocks": "5.3.1",
"@wordpress/components": "7.0.8",