ShipPlus

Translation

Estimated reading: 3 minutes

WPML Translation

WPML can be used to translate our plugin more easily and fast. you will need to have WPML’s CMS package for this process. Follow the below steps to use WPML with InnovativeWP plugins. 

Prerequisites:

Before you start translating, you must have the following:

Translation Process:

You will need to translate all the strings into your language.

Strings are the text that appears on the web page that will be translated.

Steps:

  • Go to WPML > String Translation
  • Set Display > All Strings
  • Choose Domain – Plugin’s name that we are translating

Here, You will need to find the plugin’s name related domain.

After you open the strings for a specific domain, you will find all the strings for the plugin.

  • Click on the plus icon and translate that string to your desired language.
  • Hit enter to save strings.

All Done!

Troubleshooting – If you face any missing strings then you will need to see this WPML’s instruction page.

Poedit Translation

We’re going to be using the free version of Poedit. You will need to install and activate the software before the process. It is more of an alternative option as per your requirements.

Prerequisites:

Before you start translating, you must have the following:

  • .POT file – You will find this in the plugin folder > Languages > .pot file
  • A free version of POEdit software.

Translation Process:

You need to use POEdit to open the.POT file to create .po(Portable Object) file and transform it into.mo(Machine Object) files.

Here, .POT is the file created when you translate your POT file to a particular language. For example, fr_FR.po.

.MO is the file that the machine can read, it’s a binary file. You’ll have to convert your .po file to .mo file. For example, fr_FR.mo.

Steps:

  • Get your .pot file from the languages folder
  • open the file into poedit software
  • Select the language in which you want to translate the plugin.

  • Now translate the strings one by one. Once finished, click on the “Save” button and rename the file adding the slug of the plugin.

the .po and .mo files will be created automatically in the “languages” folder of the plugin.

Change the language of your WordPress site from Settings > General > Language

All Done.

Loco Translate

Loco Translate allows you to create language files via WordPress admin. Follow the below steps to translate InnovativeWP plugins into your language.

Prerequisites:

Before you start translating, you must have the following:

  • POT file in /plugin-name/languages/ directory – you generated it before.
  • Install and activate the Loco Translate plugin. 

Translation Process:

  • Navigate to wp-admin → Loco Translate → Plugins
  • You can see available plugins on this page, click on a plugin name that you want to translate.

Click on the Advanced tab and configure the following options.

  • Text Domain
  • Template File (Relative path from bundle root to the POT file you generated)
  • Click on + New Language button.
  • Choose a language & click on the Start Translating button.
  • Now select strings, translate and save the translation.

All done, now you have the plugin strings translated to your language.

EASY ACCESS