1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
<?php
global $delivery_translations, $delivery_lang;
function prdd_get_delivery_t( $str ) {
global $delivery_translations, $delivery_lang;
$delivery_lang = 'en';
$delivery_translations = array(
'en' => array(
'delivery_date-label' => __( "Delivery Date", "woocommerce-prdd" ),
'delivery_time-label' => __( "Delivery Time", "woocommerce-prdd" ),
'delivery_item-comments' => __( "Comments", "woocommerce-prdd" ),
'delivery_limited-delivery-msg1' => __( " has only ", "woocommerce-prdd" ),
'delivery_limited-delivery-msg2' => __( " deliveries available for the time slot ", "woocommerce-prdd" ),
'delivery_limited-delivery-msg3' => __( " delivery available for the time slot ", "woocommerce-prdd" ),
'delivery_no-delivery-msg1' => __( "For ", "woocommerce-prdd" ),
'delivery_no-delivery-msg2' => __( ", the timeslot of ", "woocommerce-prdd" ),
'delivery_no-delivery-msg3' => __( " has been fully booked. Please try another time slot.", "woocommerce-prdd" ),
'delivery_item-meta-date' => __( "Delivery Date", "woocommerce-prdd" ),
'delivery_item-meta-time' => __( "Delivery Time", "woocommerce-prdd" ),
'delivery_item-cart-date' => __( "Delivery Date", "woocommerce-prdd" ),
'delivery_item-cart-time' => __( "Delivery Time", "woocommerce-prdd" ),
'delivery_limited-delivery-date-msg1' => __( " has only ", "woocommerce-prdd" ),
'delivery_limited-delivery-date-msg2' => __( " deliveries available for the date ", "woocommerce-prdd" ),
'delivery_limited-delivery-date-msg3' => __( " delivery available for the date ", "woocommerce-prdd" ),
'delivery_no-delivery-date-msg1' => __( "For ", "woocommerce-prdd" ),
'delivery_no-delivery-date-msg2' => __( ", the date of ", "woocommerce-prdd" ),
'delivery_no-delivery-date-msg3' => __( " has been fully booked. Please try another date.", "woocommerce-prdd" ),
'delivery_item-partial-total' => __( "Total ", "woocommerce-prdd" ),
'delivery_item-partial-deposit' => __( "Partial Deposit ", "woocommerce-prdd" ),
'delivery_item-partial-remaining' => __( "Amount Remaining", "woocommerce-prdd" ),
'delivery_partial-payment-heading'=> __( "Partial Payment", "woocommerce-prdd" ),
'delivery_item-total-total' => __( "Total ", "woocommerce-prdd" ),
'delivery_item-total-deposit' => __( "Total Deposit ", "woocommerce-prdd" ),
'delivery_item-total-remaining' => __( "Amount Remaining", "woocommerce-prdd" ),
'delivery_total-payment-heading'=> __( "Total Payment", "woocommerce-prdd" ),
'delivery_stock-total' => __( " stock total", "woocommerce-prdd" ),
'delivery_available-stock' => __( " deliveries are available on ", "woocommerce-prdd" ),
'delivery_available-stock-time-msg1' => __( " deliveries are available for the slot ", "woocommerce-prdd" ),
'delivery_available-stock-time-msg2' => __( " on ", "woocommerce-prdd" ),
),
);
return $delivery_translations[$delivery_lang][$str];
}
?>