Add context to strings #4986
This commit is contained in:
parent
aab4ad52bf
commit
84a42f16cb
|
@ -249,7 +249,7 @@ class WC_Meta_Box_Product_Data {
|
|||
woocommerce_wp_select( array( 'id' => '_tax_status', 'label' => __( 'Tax Status', 'woocommerce' ), 'options' => array(
|
||||
'taxable' => __( 'Taxable', 'woocommerce' ),
|
||||
'shipping' => __( 'Shipping only', 'woocommerce' ),
|
||||
'none' => __( 'None', 'woocommerce' )
|
||||
'none' => _x( 'None', 'Tax status', 'woocommerce' )
|
||||
) ) );
|
||||
|
||||
$tax_classes = array_filter( array_map( 'trim', explode( "\n", get_option( 'woocommerce_tax_classes' ) ) ) );
|
||||
|
|
|
@ -75,7 +75,7 @@ class WC_Settings_Payment_Gateways extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Checkout', 'woocommerce' ),
|
||||
'title' => _x( 'Checkout', 'Settings group label', 'woocommerce' ),
|
||||
'desc' => __( 'Enable guest checkout', 'woocommerce' ),
|
||||
'desc_tip' => __( 'Allows customers to checkout without creating an account.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_enable_guest_checkout',
|
||||
|
|
|
@ -286,19 +286,19 @@
|
|||
<tbody>
|
||||
<?php
|
||||
$check_pages = array(
|
||||
__( 'Shop Base', 'woocommerce' ) => array(
|
||||
_x( 'Shop Base', 'Page setting', 'woocommerce' ) => array(
|
||||
'option' => 'woocommerce_shop_page_id',
|
||||
'shortcode' => ''
|
||||
),
|
||||
__( 'Cart', 'woocommerce' ) => array(
|
||||
_x( 'Cart', 'Page setting', 'woocommerce' ) => array(
|
||||
'option' => 'woocommerce_cart_page_id',
|
||||
'shortcode' => '[' . apply_filters( 'woocommerce_cart_shortcode_tag', 'woocommerce_cart' ) . ']'
|
||||
),
|
||||
__( 'Checkout', 'woocommerce' ) => array(
|
||||
_x( 'Checkout', 'Page setting', 'woocommerce' ) => array(
|
||||
'option' => 'woocommerce_checkout_page_id',
|
||||
'shortcode' => '[' . apply_filters( 'woocommerce_checkout_shortcode_tag', 'woocommerce_checkout' ) . ']'
|
||||
),
|
||||
__( 'My Account', 'woocommerce' ) => array(
|
||||
_x( 'My Account', 'Page setting', 'woocommerce' ) => array(
|
||||
'option' => 'woocommerce_myaccount_page_id',
|
||||
'shortcode' => '[' . apply_filters( 'woocommerce_my_account_shortcode_tag', 'woocommerce_my_account' ) . ']'
|
||||
)
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
'' => __( '— No Change —', 'woocommerce' ),
|
||||
'taxable' => __( 'Taxable', 'woocommerce' ),
|
||||
'shipping' => __( 'Shipping only', 'woocommerce' ),
|
||||
'none' => __( 'None', 'woocommerce' )
|
||||
'none' => _x( 'None', 'Tax status', 'woocommerce' )
|
||||
);
|
||||
foreach ($options as $key => $value) {
|
||||
echo '<option value="' . esc_attr( $key ) . '">' . $value . '</option>';
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
$options = array(
|
||||
'taxable' => __( 'Taxable', 'woocommerce' ),
|
||||
'shipping' => __( 'Shipping only', 'woocommerce' ),
|
||||
'none' => __( 'None', 'woocommerce' )
|
||||
'none' => _x( 'None', 'Tax status', 'woocommerce' )
|
||||
);
|
||||
foreach ($options as $key => $value) {
|
||||
echo '<option value="' . esc_attr( $key ) . '">' . $value . '</option>';
|
||||
|
|
|
@ -214,23 +214,23 @@ class WC_Install {
|
|||
public static function create_pages() {
|
||||
$pages = apply_filters( 'woocommerce_create_pages', array(
|
||||
'shop' => array(
|
||||
'name' => _x( 'shop', 'page_slug', 'woocommerce' ),
|
||||
'title' => __( 'Shop', 'woocommerce' ),
|
||||
'name' => _x( 'shop', 'Page slug', 'woocommerce' ),
|
||||
'title' => _x( 'Shop', 'Page title', 'woocommerce' ),
|
||||
'content' => ''
|
||||
),
|
||||
'cart' => array(
|
||||
'name' => _x( 'cart', 'page_slug', 'woocommerce' ),
|
||||
'title' => __( 'Cart', 'woocommerce' ),
|
||||
'name' => _x( 'cart', 'Page slug', 'woocommerce' ),
|
||||
'title' => _x( 'Cart', 'Page title', 'woocommerce' ),
|
||||
'content' => '[' . apply_filters( 'woocommerce_cart_shortcode_tag', 'woocommerce_cart' ) . ']'
|
||||
),
|
||||
'checkout' => array(
|
||||
'name' => _x( 'checkout', 'page_slug', 'woocommerce' ),
|
||||
'title' => __( 'Checkout', 'woocommerce' ),
|
||||
'name' => _x( 'checkout', 'Paeg slug', 'woocommerce' ),
|
||||
'title' => _x( 'Checkout', 'Page title', 'woocommerce' ),
|
||||
'content' => '[' . apply_filters( 'woocommerce_checkout_shortcode_tag', 'woocommerce_checkout' ) . ']'
|
||||
),
|
||||
'myaccount' => array(
|
||||
'name' => _x( 'my-account', 'page_slug', 'woocommerce' ),
|
||||
'title' => __( 'My Account', 'woocommerce' ),
|
||||
'name' => _x( 'my-account', 'Page slug', 'woocommerce' ),
|
||||
'title' => _x( 'My Account', 'Page title', 'woocommerce' ),
|
||||
'content' => '[' . apply_filters( 'woocommerce_my_account_shortcode_tag', 'woocommerce_my_account' ) . ']'
|
||||
)
|
||||
) );
|
||||
|
|
|
@ -111,7 +111,7 @@ class WC_Shipping_Flat_Rate extends WC_Shipping_Method {
|
|||
'default' => 'taxable',
|
||||
'options' => array(
|
||||
'taxable' => __( 'Taxable', 'woocommerce' ),
|
||||
'none' => __( 'None', 'woocommerce' ),
|
||||
'none' => _x( 'None', 'Tax status', 'woocommerce' )
|
||||
),
|
||||
),
|
||||
'cost_per_order' => array(
|
||||
|
|
|
@ -85,7 +85,7 @@ class WC_Shipping_International_Delivery extends WC_Shipping_Flat_Rate {
|
|||
'default' => 'taxable',
|
||||
'options' => array(
|
||||
'taxable' => __( 'Taxable', 'woocommerce' ),
|
||||
'none' => __( 'None', 'woocommerce' )
|
||||
'none' => _x( 'None', 'Tax status', 'woocommerce' )
|
||||
)
|
||||
),
|
||||
'type' => array(
|
||||
|
|
Loading…
Reference in New Issue