From ba5a30e657cecc8ca0c30fe11eeab07e5be488e9 Mon Sep 17 00:00:00 2001 From: koenemann Date: Tue, 28 Nov 2017 09:04:07 +0100 Subject: [PATCH] Changing woo commerce text domain --- inc/woocommerce.php | 2 +- package.json | 2 +- style.css | 2 +- woocommerce/cart/cart-empty.php | 2 +- woocommerce/cart/cart.php | 24 +++++++++---------- woocommerce/cart/mini-cart.php | 6 ++--- .../cart/proceed-to-checkout-button.php | 2 +- woocommerce/checkout/form-checkout.php | 4 ++-- woocommerce/checkout/form-coupon.php | 6 ++--- woocommerce/checkout/form-pay.php | 8 +++---- woocommerce/checkout/payment.php | 6 ++--- woocommerce/global/form-login.php | 10 ++++---- woocommerce/global/quantity-input.php | 4 ++-- woocommerce/myaccount/downloads.php | 4 ++-- woocommerce/myaccount/form-edit-account.php | 16 ++++++------- woocommerce/myaccount/form-edit-address.php | 4 ++-- woocommerce/myaccount/form-login.php | 22 ++++++++--------- woocommerce/myaccount/form-lost-password.php | 6 ++--- woocommerce/myaccount/form-reset-password.php | 8 +++---- woocommerce/myaccount/my-address.php | 12 +++++----- woocommerce/myaccount/my-orders.php | 20 ++++++++-------- woocommerce/myaccount/orders.php | 12 +++++----- woocommerce/product-searchform.php | 4 ++-- woocommerce/single-product/rating.php | 2 +- 24 files changed, 94 insertions(+), 94 deletions(-) diff --git a/inc/woocommerce.php b/inc/woocommerce.php index a237057..7c89d19 100644 --- a/inc/woocommerce.php +++ b/inc/woocommerce.php @@ -10,7 +10,7 @@ if ( ! function_exists( 'understrap_woocommerce_support' ) ) { * Declares WooCommerce theme support. */ function understrap_woocommerce_support() { - add_theme_support( 'woocommerce' ); + add_theme_support( 'understrap' ); // Add New Woocommerce 3.0.0 Product Gallery support add_theme_support( 'wc-product-gallery-lightbox' ); diff --git a/package.json b/package.json index 7a7516d..1403af6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "understrap", - "version": "0.6.8", + "version": "0.6.8.1", "description": "WordPress Theme framework", "main": "index.js", "scripts": { diff --git a/style.css b/style.css index f9fc209..3558a2d 100644 --- a/style.css +++ b/style.css @@ -8,7 +8,7 @@ Description: Combination of AutomatticĀ“s _s theme and Bootstrap 4. Made as a so That downloads everything and moves it in place so that you can recompile your CSS and JS files; A developer version (with Gulp/node and Sass sources) is available on gitHub: https://github.com/holger1411/understrap A child theme is available on Github, too: https://github.com/holger1411/understrap-child; -Version: 0.6.8 +Version: 0.6.8.1 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Text Domain: understrap diff --git a/woocommerce/cart/cart-empty.php b/woocommerce/cart/cart-empty.php index 001cf99..07a5fd1 100644 --- a/woocommerce/cart/cart-empty.php +++ b/woocommerce/cart/cart-empty.php @@ -30,7 +30,7 @@ do_action( 'woocommerce_cart_is_empty' ); if ( wc_get_page_id( 'shop' ) > 0 ) : ?>

- +

diff --git a/woocommerce/cart/cart.php b/woocommerce/cart/cart.php index 9430814..3a047b5 100644 --- a/woocommerce/cart/cart.php +++ b/woocommerce/cart/cart.php @@ -32,10 +32,10 @@ do_action( 'woocommerce_before_cart' ); ?>     - - - - + + + + @@ -56,7 +56,7 @@ do_action( 'woocommerce_before_cart' ); ?> echo apply_filters( 'woocommerce_cart_item_remove_link', sprintf( '×', esc_url( WC()->cart->get_remove_url( $cart_item_key ) ), - esc_attr__( 'Remove this item', 'woocommerce' ), + esc_attr__( 'Remove this item', 'understrap' ), esc_attr( $product_id ), esc_attr( $_product->get_sku() ) ), $cart_item_key ); @@ -75,7 +75,7 @@ do_action( 'woocommerce_before_cart' ); ?> ?> - + get_name(), $cart_item, $cart_item_key ) . ' '; @@ -88,18 +88,18 @@ do_action( 'woocommerce_before_cart' ); ?> // Backorder notification if ( $_product->backorders_require_notification() && $_product->is_on_backorder( $cart_item['quantity'] ) ) { - echo '

' . esc_html__( 'Available on backorder', 'woocommerce' ) . '

'; + echo '

' . esc_html__( 'Available on backorder', 'understrap' ) . '

'; } ?> - + cart->get_product_price( $_product ), $cart_item, $cart_item_key ); ?> - + is_sold_individually() ) { $product_quantity = sprintf( '1 ', $cart_item_key ); @@ -116,7 +116,7 @@ do_action( 'woocommerce_before_cart' ); ?> ?> - + cart->get_product_subtotal( $_product, $cart_item['quantity'] ), $cart_item, $cart_item_key ); ?> @@ -134,12 +134,12 @@ do_action( 'woocommerce_before_cart' ); ?>
- +
- + diff --git a/woocommerce/cart/mini-cart.php b/woocommerce/cart/mini-cart.php index f7679de..de4f275 100644 --- a/woocommerce/cart/mini-cart.php +++ b/woocommerce/cart/mini-cart.php @@ -44,7 +44,7 @@ do_action( 'woocommerce_before_mini_cart' ); ?> echo apply_filters( 'woocommerce_cart_item_remove_link', sprintf( '×', esc_url( WC()->cart->get_remove_url( $cart_item_key ) ), - __( 'Remove this item', 'woocommerce' ), + __( 'Remove this item', 'understrap' ), esc_attr( $product_id ), esc_attr( $cart_item_key ), esc_attr( $_product->get_sku() ) @@ -69,7 +69,7 @@ do_action( 'woocommerce_before_mini_cart' ); ?> ?> -

: cart->get_cart_subtotal(); ?>

+

: cart->get_cart_subtotal(); ?>

@@ -77,7 +77,7 @@ do_action( 'woocommerce_before_mini_cart' ); ?> -

+

diff --git a/woocommerce/cart/proceed-to-checkout-button.php b/woocommerce/cart/proceed-to-checkout-button.php index be155e5..611c6b8 100644 --- a/woocommerce/cart/proceed-to-checkout-button.php +++ b/woocommerce/cart/proceed-to-checkout-button.php @@ -24,5 +24,5 @@ if ( ! defined( 'ABSPATH' ) ) { ?> - + diff --git a/woocommerce/checkout/form-checkout.php b/woocommerce/checkout/form-checkout.php index 56e2678..2533b65 100644 --- a/woocommerce/checkout/form-checkout.php +++ b/woocommerce/checkout/form-checkout.php @@ -26,7 +26,7 @@ do_action( 'woocommerce_before_checkout_form', $checkout ); // If checkout registration is disabled and not logged in, the user cannot checkout. if ( ! $checkout->enable_signup && ! $checkout->enable_guest_checkout && ! is_user_logged_in() ) { - echo apply_filters( 'woocommerce_checkout_must_be_logged_in_message', __( 'You must be logged in to checkout.', 'woocommerce' ) ); + echo apply_filters( 'woocommerce_checkout_must_be_logged_in_message', __( 'You must be logged in to checkout.', 'understrap' ) ); return; } @@ -52,7 +52,7 @@ if ( ! $checkout->enable_signup && ! $checkout->enable_guest_checkout && ! is_us -

+

diff --git a/woocommerce/checkout/form-coupon.php b/woocommerce/checkout/form-coupon.php index 9ca97fa..c256269 100644 --- a/woocommerce/checkout/form-coupon.php +++ b/woocommerce/checkout/form-coupon.php @@ -25,7 +25,7 @@ if ( ! wc_coupons_enabled() ) { } if ( empty( WC()->cart->applied_coupons ) ) { - $info_message = apply_filters( 'woocommerce_checkout_coupon_message', __( 'Have a coupon?', 'woocommerce' ) . ' ' . __( 'Click here to enter your code', 'woocommerce' ) . '' ); + $info_message = apply_filters( 'woocommerce_checkout_coupon_message', __( 'Have a coupon?', 'understrap' ) . ' ' . __( 'Click here to enter your code', 'understrap' ) . '' ); wc_print_notice( $info_message, 'notice' ); } ?> @@ -33,11 +33,11 @@ if ( empty( WC()->cart->applied_coupons ) ) {