1. Home
  2. Knowledge Base
  3. Getting Started
  4. How To Translate Wholesale Suite Plugins

How To Translate Wholesale Suite Plugins

If you have a non-English site and you want to translate our Wholesale Suite plugins to a different language, our plugins are translation-ready and you can easily translate them with the help of this guide.

There are different ways to translate WordPress plugins and listed below are the recommended ways how to do it.

  1. Use of WPML plugins (paid plugins)
  2. Use of a free third-party translation plugin (preferably Loco Translate)
  3. Use of PoEdit (software translation tool)

1. WPML

WPML is a paid plugin that allows your WordPress site to be fully multilingual. You can translate WordPress pages, posts, plugins, and other WooCommerce-related strings when used with other WPML add-ons.

Before we start It’s highly recommended that you first scan our plugins, this is to ensure that all the available strings or sentences are found and translatable.

To do this simply go to WPML > Themes and plugins localization > search for the wholesale plugin you wish to translate tick the checkbox and click the scan button. You’ll know it’s done scanning when you receive a scanning result notification or when the notification stops spinning.

https://wpml.org/documentation/getting-started-guide/

In translating the Wholesale Suite plugins, it is required to install these 4 WPML plugins:

  • WooCommerce Multilingual
  • WPML Multilingual CMS
  • WPML String Translation
  • WPML Translation Management

Steps:

  1. On your Dashboard, go to WPML > String Translation
  2. On the “Select strings within domain“, select the Wholesale Suite plugin you want to translate.
  3. You can use the “Search for” option to easily locate the string you want to add the translation.
  4. Add the Translation and make sure that the code format remains similar to the original.
  5. Check the Translation is complete and click Save.

2. Loco Translate

https://wordpress.org/plugins/loco-translate/

Loco Translate is a free WordPress plugin that you can download and install to your Plugins page. Once installed, you can easily translate the strings from our plugin to the language you want.

Steps:

  1. On your Dashboard, go to Loco Translate > Plugin and find the Wholesale Suite plugin you want to translate.
  2. Choose the language and location where you want to save the translation file.
  3. Find the string you want to translate and its translation.
  4. Then hit the Save button.

For more information on how to use Loco Translate, please check their beginner’s guide here.

3. PoEdit

PoEdit is a translation tool that you can use to translate PO files and you can use this editor to translate strings of our Wholesale Suite plugins.

Steps:

1. Download and install PoEdit on your computer.

2. After installing, get the pot file of the plugin you want to translate.

In the image below, let’s say we want to translate strings from the WooCommerce Wholesale Prices Premium. You can get the pot file on the plugin folder of your site, then on /woocommerce-wholesale-prices-premium/languages/

3. Open the pot file using PoEdit and create the translation. You can use the search feature to easily locate strings.

4. After adding the translated string, please make sure that the coding format is retained. Once satisfied with the translation, click Save As and it is important that the file is named correctly.

There is a naming convention when saving Pot files to Po and Mo files. It should have the original name and followed by the suffix of the translated language.

In the example below, I’m translating the original English string to the Spanish language so I need to use es_ES suffix.

5. After saving, the Mo and Po translation file should be generated and you can upload it to your site using FTP and place it inside the same language folder of the translated Pot file.

Additional Notes:

WordPress has a repository of translated plugins by the contributors for the free plugin. You can search our WooCommerce Wholesale Prices plugin if there’s a contributor that started a project to translate our plugin. You can check plugin projects here: https://translate.wordpress.org/

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support