How translate plugin with WPML
With WPML you can translate the plugin strings in the desired language.
When we talk about strings, we are referring to all those labels and related contents, from option and widget names to all the texts showed to users with the plugin features.
As a first step go to WPML -> Theme and plugins localization, select the plugin and click on "Scan the selected plugins for strings" (we used YITH Plugin as an example)
Click on String Translation, the entry you can find in the WPML sub-menu.
In the top part of the page, WPML lets you select the "context" in which search for the strings, and to specify the string you want to translate.
To translate the string that you search, select the plugin text domain. our sample plugin text-domain is "yith-sample-plugin".
Add the string in the related search field.
Select the entry you want to translate, add the translated string, tick the Translation is complete option and click the Savebutton.
Now the status will be Translation Complete and the string will be correctly displayed in the selected language.
Please note: if the string you are looking for is related to the value associated to an option of the plugin, you need to select a different text domain since these strings are connected to the database and not to the plugin .po file.
For each string related to an option of the plugin there is a specific associated text-domain that you need to select from the list. This kind of text-domain starts with the admin_texts_ and is followed by a plugin identifier and tag.
For example: admin_texts_ywsp_sample_text.