WPML

Overview of the Issue

Some strings in the Dokan vendor dashboard did not appear in WPMLString Translation, so you could not translate them. It affected the shipping and verification settings pages. Those pages are built in JavaScript, and WPML could not read strings from JavaScript files at the time of the report.

Workaround

This issue is fixed in WPML String Translation 3.5.0. Updating solves it on your site, so you only need this workaround if you can’t update yet.

The strings on these pages come from JavaScript files. WPML reads them once you let it scan JavaScript, which is off by default:

  1. Go to WPMLSettings and turn on Detect strings in JavaScript files.
  2. Open the vendor dashboard pages that hold the strings, for example /dashboard/settings/verification/. WPML only tracks the JavaScript files that your pages actually load.
  3. Go to WPMLTheme and plugins localization and scan Dokan.
  4. Translate the strings at WPMLString Translation.
  5. Go back to WPMLSettings and turn Detect strings in JavaScript files off again. It slows the site down while it is on, and the strings stay registered.

The strings on the shipping page come from WooCommerce, not from Dokan. Search for them in WPMLString Translation under the WooCommerce domain. Translating them there also changes the vendor dashboard.

You no longer need to edit any file inside the plugin. The older version of this page asked you to add the strings to wp-content/plugins/dokan-pro/languages/dokan.php. Do not do that: a plugin update removes the change.

All known issues

Still Seeing This Issue?

If updating doesn’t fix it, ask a support question and we’ll look into it with you.