woocommerce_pos_i18n

Translators: woocommerce.

Description

apply_filters( 'woocommerce_pos_i18n', (callback) $array ); 

Parameters (1)

0. $array — Optional. (callback) => array( 'titles' => array( 'browser' => _x( 'Browser', 'system status: browser capabilities', 'woocommerce-pos' ), 'cart' => __( 'Cart', 'woocommerce' ), 'checkout' => __( 'Checkout', 'woocommerce' ), 'coupons' => __( 'Coupons', 'woocommerce' ), 'customers' => __( 'Customers', 'woocommerce' ), 'fee' => __( 'Fee', 'woocommerce' ), 'hotkeys' => _x( 'HotKeys', 'keyboard shortcuts', 'woocommerce-pos' ), 'order' => __( 'Order', 'woocommerce' ), 'orders' => __( 'Orders', 'woocommerce' ), 'products' => __( 'Products', 'woocommerce' ), 'receipt' => __( 'Receipt', 'woocommerce' ), 'shipping' => __( 'Shipping', 'woocommerce' ), 'to-pay' => __( 'To Pay', 'woocommerce-pos' ), 'paid' => __( 'Paid', 'woocommerce-pos' ), 'unpaid' => __( 'Unpaid', 'woocommerce-pos' ), 'email-receipt' => __( 'Email Receipt', 'woocommerce-pos' ), 'open' => _x( 'Open', 'order status, ie: open order in cart', 'woocommerce-pos' ), 'change' => _x( 'Change', 'Money returned from cash sale', 'woocommerce-pos' ), 'support-form' => __( 'Support Form', 'woocommerce-pos' ), 'system-status' => __( 'System Status', 'woocommerce' ), ), 'buttons' => array( 'checkout' => __( 'Checkout', 'woocommerce' ), 'clear' => _x( 'Clear', 'system status: delete local records', 'woocommerce-pos' ), 'close' => __( 'Close' ), 'coupon' => __( 'Coupon', 'woocommerce' ), 'discount' => __( 'Discount', 'woocommerce-pos' ), 'email' => __( 'Email' ), 'fee' => __( 'Fee', 'woocommerce' ), 'new-order' => __( 'New Order', 'woocommerce' ), 'note' => __( 'Note', 'woocommerce' ), 'print' => __( 'Print' ), 'process-payment' => __( 'Process Payment', 'woocommerce-pos' ), 'refresh' => __( 'Refresh' ), 'restore' => _x( 'Restore defaults', 'restore default settings', 'woocommerce-pos' ), 'return' => _x( 'return', 'Numpad return key', 'woocommerce-pos' ), 'return-to-sale' => __( 'Return to Sale', 'woocommerce-pos' ), 'save' => __( 'Save Changes', 'woocommerce' ), 'send' => __( 'Send', 'woocommerce-pos' ), 'shipping' => __( 'Shipping', 'woocommerce' ), 'void' => __( 'Void', 'woocommerce-pos' ), 'expand-all' => __( 'Expand all', 'woocommerce' ), 'close-all' => __( 'Close all', 'woocommerce' ), 'legacy' => __( 'Enable legacy server support', 'woocommerce-pos' ), ), 'messages' => array( 'choose' => __( 'Choose an option', 'woocommerce' ), 'error' => __( 'Sorry, there has been an error.', 'woocommerce' ), 'loading' => __( 'Loading ...' ), 'success' => __( 'Your changes have been saved.', 'woocommerce' ), 'browser' => __( 'Your browser is not supported!', 'woocommerce-pos' ), 'legacy' => __( 'Unable to use RESTful HTTP methods', 'woocommerce-pos' ), 'no-products' => __( 'No Products found', 'woocommerce' ), 'cart-empty' => __( 'Your cart is currently empty.', 'woocommerce' ), 'no-gateway' => __( 'No payment gateways enabled.', 'woocommerce-pos' ), 'no-customer' => __( 'Customer not found', 'woocommerce' ) ), 'plural' => array( 'records' => _x( 'record |||| records', 'eg: 23 records', 'woocommerce-pos' ), ) )
The array.

Usage

To run the hook, copy the example below.
  1. $array = apply_filters( 'woocommerce_pos_i18n', $array ); 
  2.  
  3. if ( !empty( $array ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the woocommerce_pos_i18n callback 
  2. function filter_woocommerce_pos_i18n( $array ) { 
  3. // make filter magic happen here... 
  4. return $array
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'woocommerce_pos_i18n', 'filter_woocommerce_pos_i18n', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'woocommerce_pos_i18n', 'filter_woocommerce_pos_i18n', 10, 1 ); 

Defined (1)

The filter is defined in the following location(s).

/includes/class-wc-pos-i18n.php  
  1. return apply_filters( 'woocommerce_pos_i18n', array(