getdokan / dokan-wpml

WPML compatibility with dokan plugin
5 stars 10 forks source link

⚠️ SHIPPING - SHIPPING METHODS NAME NOT TRANSLATED as displayed on CART/CHECHOUT/ORDER DETAILS in the language that the seller has added his methods #65

Open Sophie-2e opened 7 months ago

Sophie-2e commented 7 months ago

Another issues related to the Shipping Module not well translated:

I noticed that the Shipping Methods Name of vendors are not translated and are instead displayed in the language that the seller used to add his shipping methods.

So let's say a french seller add his shipping methods from his french dashboard, then all customers we see the vendor shipping method names in french even if they order from the english or dutch websites.

The issue occurs on:

And here is other ticket related to Shipping Methods translation issue: https://github.com/getdokan/dokan-wpml/issues/62 + https://github.com/getdokan/dokan-wpml/issues/35

J-H-Mojumder commented 2 months ago

It would be nice to have an update here.

@MdAsifHossainNadim

pronob1010 commented 1 month ago

image

/**
 * Get rate label.
 *
 * @return string
 */
public function get_label() {
    return apply_filters( 'woocommerce_shipping_rate_label', $this->data['label'], $this );
}

WooCommerce doesn't send this label in a translatable way. We don't have the privilege to update this method label. If you have any examples or plugins that can create a shipping method or translate this string, please share the reference.

@J-H-Mojumder

pronob1010 commented 1 month ago

@J-H-Mojumder

Here are the steps to translate specific texts that are not being translated even when detected in the string list using WPML:

  1. Go to WPML → String Translation.
  2. Click on the "Translate texts in admin screens" link at the bottom of the page.
  3. On the next page, search for the text you want to translate.
  4. Select the text and click "Add to String Translation".
  5. Go back to String Translation and proceed to translate the selected text.

I hope this helps resolve your issue! 👍🏻

Sophie-2e commented 1 month ago

Hello @pronob1010, @J-H-Mojumder, no I already tried this previously, and I just tried again to be sure with Dokan v3.12.3 + Pro v3.12.4, after rescanning all Dokan plugins in WPML, but we still cannot find the strings there either. Any other option?

As the shipping methods are associated to the sellers, can we not just make the 'label' translatable for sellers' shipping methods in Dokan plugin files?

Sophie-2e commented 1 month ago

@pronob1010 @J-H-Mojumder just saw the PR related to it so I see that your dev team is working on a fix with WPML 🎉 Thank for pushing the issue through 🙌