Let's take an example of translating dashboard content:

Step 1: After installing WPML

Go to WPML -> String Translation

Step 2:

Select our plugin core file in "in domain" section and after loading, you can search for the string (for example: add new rule) and click on the search option

Step 3:

Then you can add the translation for respective language by clicking on add and enter

Step 4:

Now, translated string will be reflected.

Frequently Asked Questions:

The string is not shown when I try to search, what should I do?

If the string is not shown, you might have to first add the string in our plugin .po file and import it, so that the string will be added to the string table.

For example: Let's try to translate the discount bar text "Buy any 2 products and get 10% discount."

Step 1:

Extract our core plugin (woo-discount-rules-pro-v2.3.13 ie.., version may vary, you can extract recent pack) and follow the below path to find pot file.

Here is the path:

woo-discount-rules-pro-v2.3.13 -> woo-discount-rules -> i18n -> languages -> woo-discount-rules.pot

Step 2:

After opening the woo-discount-rules.pot file, you will find this code at the end.

#: v2/App/Views/Templates/discount_table.php:136

msgid " (in cart)"

msgstr ""

In the above code you can copy and paste the last two lines just below the mentioned code.

Something like below:

#: v2/App/Views/Templates/discount_table.php:136

msgid " (in cart)"

msgstr ""

msgid " (in cart)"

msgstr ""

Step 3:

In the pasted code, you can enter our dynamic text that we are trying to translate.

For example: The text we are trying to translate is: Buy any 2 products and get 10% discount.

Hence the code will look like this:

#: v2/App/Views/Templates/discount_table.php:136

msgid " (in cart)"

msgstr ""

msgid "Buy any 2 products and get 10% discount"

msgstr ""

Here is the example screenshot:

(Refer to line no: 4989, 4990 in the image)

Step 4:

Now, save the pot file and import and submit it.

Then you can select that string we are trying to translate and click on "add selected strings."

Step 5:

The imported string will be added the table and we can translate it.

Note:

If our site language default language is English, then it is suggestible to create rules/ enter discount table/ bar information in English in rule setup and then we can translate to other languages like French.

Still unclear?
Please submit a support request. We are always happy to assist you :)

Did this answer your question?