Home Forums Theme Support Dokan Missing translations

This topic is: not resolved

This topic contains 6 replies, has 2 voices, and was last updated by  Nayem 3 years, 11 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #45492

    Anas Basalamah
    Member
    Post count: 160

    Hi

    These are missing translation please tell me how to fix that

    you can find it in dashbord- > orders

    thanks

    #45507

    Nayem
    Moderator
    Post count: 6480

    Hello Anas,

    Those string are coming from WooCommerce. So you can try to translate WooCOmmerce.

    Thanks.

    #45706

    Anas Basalamah
    Member
    Post count: 160

    no the problem from dokan

    check out the file plugin/dokan/templates/my-orders.php line 38 you will see that dokan is calling woocomerce for status list

    $statuses = wc_get_order_statuses();

    which is in the woocomerce file woocommerce/includes/wc-order-functions.php

    function wc_get_order_statuses() {
    $order_statuses = array(
    ‘wc-pending' => _x( ‘Pending Payment', ‘Order status', ‘woocommerce' ),
    ‘wc-processing' => _x( ‘Processing', ‘Order status', ‘woocommerce' ),
    ‘wc-on-hold' => _x( ‘On Hold', ‘Order status', ‘woocommerce' ),
    ‘wc-completed' => _x( ‘Completed', ‘Order status', ‘woocommerce' ),
    ‘wc-cancelled' => _x( ‘Cancelled', ‘Order status', ‘woocommerce' ),
    ‘wc-refunded' => _x( ‘Refunded', ‘Order status', ‘woocommerce' ),
    ‘wc-failed' => _x( ‘Failed', ‘Order status', ‘woocommerce' ),
    );
    return apply_filters( ‘wc_order_statuses', $order_statuses );
    }

    now what dokan get is from woocomerce is ‘wc-on-hold' insted of ‘On Hold'

    look again in the photo upward you will see the status is on-hold not On Hold

    how can i fix this !? O_O”

    #45708

    Anas Basalamah
    Member
    Post count: 160

    also this prove it

    from file order-function.php

    // make sure order status contains “wc-” prefix
    if ( stripos( $new_status, ‘wc-‘ ) === false ) {
    $new_status = ‘wc-‘ . $new_status;
    }

    now tell me how to translate this list?

    its dokan problem now ๐Ÿ™‚

    #45752

    Nayem
    Moderator
    Post count: 6480

    Hello Anas,

    Thank you for pointing me those thing. I have notified to our team about those string. We will add those string in the language file in our next update.

    Thanks.

    #45753

    Anas Basalamah
    Member
    Post count: 160

    please send me the language file as soon as you fix the problem its urgent to me

    thansk

    #45754

    Nayem
    Moderator
    Post count: 6480

    Hello Anans,

    As soon as possible i will provide you the update about this translation issue. Please keep patience.

    Thanks.

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Missing translations’ is closed to new replies.