Support » Plugin: TeraWallet - For WooCommerce » I want to translate some text

  • Resolved hana23417

    (@hana23417)


    I was translated your plugin by loco-translate. Some texts couln’t translate at “class-woo-wallet-wallet.php”‘s texts by unknown reason. So, I’d like to translate by php file.

    /** debit cashback amount * */
    if (apply_filters(‘woo_wallet_debit_cashback_upon_cancellation’, get_total_order_cashback_amount($order_id))) {
    $total_cashback_amount = get_total_order_cashback_amount($order_id);
    if ($total_cashback_amount) {
    if ($this->debit($order->get_customer_id(), $total_cashback_amount, sprintf(__(‘Cashback for #%s has been debited upon cancellation’, ‘woo-wallet’), $order->get_order_number()))) {
    delete_post_meta($order_id, ‘_general_cashback_transaction_id’);
    delete_post_meta($order_id, ‘_coupon_cashback_transaction_id’);
    }

    At that function, I changed “Cashback for #%s has been debited upon cancellation”, and ANSI> UTF-8. But it was not changed.

    How can i handle it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Subrata Mal

    (@subratamal)

    @hana23417,
    The original string was inserted into database before you translated that’s why it is not reflected. Please try to make another transaction it will work as expected. Hope this is clear to you.

    @subratamal

    Thank you for your answer but i don’t understand that “Please try to make another transaction it will work as expected. “

    Plugin Author Subrata Mal

    (@subratamal)

    @hana23417,

    After you translated that string have you tried to see if it is working or not with making a new canceled order?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘I want to translate some text’ is closed to new replies.